diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Customization/Models/BotServicePrivateLinkResourceData.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Customization/Models/BotServicePrivateLinkResourceData.cs
new file mode 100644
index 000000000000..4dcf73812b8c
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Customization/Models/BotServicePrivateLinkResourceData.cs
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ public partial class BotServicePrivateLinkResourceData
+ {
+ /// Initializes a new instance of .
+ public BotServicePrivateLinkResourceData()
+ {
+ RequiredMembers = new ChangeTrackingList();
+ RequiredZoneNames = new ChangeTrackingList();
+ }
+
+ /// The private link resource Private link DNS zone name.
+ public IList RequiredZoneNames { get; }
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/ArmBotServiceModelFactory.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/ArmBotServiceModelFactory.cs
index cfb71b347d72..b41e5fee87df 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/ArmBotServiceModelFactory.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/ArmBotServiceModelFactory.cs
@@ -7,15 +7,27 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.Linq;
using Azure.Core;
using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.BotService.Models
{
/// Model factory for models.
public static partial class ArmBotServiceModelFactory
{
+ /// Initializes a new instance of .
+ /// indicates if the bot name is valid.
+ /// additional message from the bot management api showing why a bot name is not available.
+ /// response code from ABS.
+ /// A new instance for mocking.
+ public static BotServiceNameAvailabilityResult BotServiceNameAvailabilityResult(bool? isValid = null, string message = null, string absCode = null)
+ {
+ return new BotServiceNameAvailabilityResult(isValid, message, absCode, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -81,12 +93,13 @@ public static BotData BotData(ResourceIdentifier id = null, string name = null,
/// The channel schema transformation version for the bot.
/// The storage resourceId for the bot.
/// List of Private Endpoint Connections configured for the bot.
+ /// List of Network Security Perimeter configurations for the bot.
/// The hint to browser (e.g. protocol handler) on how to open the bot for authoring.
/// The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.
/// Provisioning state of the resource.
/// Publishing credentials of the resource.
/// A new instance for mocking.
- public static BotProperties BotProperties(string displayName = null, string description = null, Uri iconUri = null, Uri endpoint = null, string endpointVersion = null, IDictionary allSettings = null, IDictionary parameters = null, Uri manifestUri = null, BotMsaAppType? msaAppType = null, string msaAppId = null, string msaAppTenantId = null, ResourceIdentifier msaAppMSIResourceId = null, IEnumerable configuredChannels = null, IEnumerable enabledChannels = null, string developerAppInsightKey = null, string developerAppInsightsApiKey = null, string developerAppInsightsApplicationId = null, IEnumerable luisAppIds = null, string luisKey = null, bool? isCmekEnabled = null, Uri cmekKeyVaultUri = null, string cmekEncryptionStatus = null, Guid? tenantId = null, BotServicePublicNetworkAccess? publicNetworkAccess = null, bool? isStreamingSupported = null, bool? isDeveloperAppInsightsApiKeySet = null, string migrationToken = null, bool? isLocalAuthDisabled = null, string schemaTransformationVersion = null, ResourceIdentifier storageResourceId = null, IEnumerable privateEndpointConnections = null, string openWithHint = null, string appPasswordHint = null, string provisioningState = null, string publishingCredentials = null)
+ public static BotProperties BotProperties(string displayName = null, string description = null, Uri iconUri = null, Uri endpoint = null, string endpointVersion = null, IDictionary allSettings = null, IDictionary parameters = null, Uri manifestUri = null, BotMsaAppType? msaAppType = null, string msaAppId = null, string msaAppTenantId = null, ResourceIdentifier msaAppMSIResourceId = null, IEnumerable configuredChannels = null, IEnumerable enabledChannels = null, string developerAppInsightKey = null, string developerAppInsightsApiKey = null, string developerAppInsightsApplicationId = null, IEnumerable luisAppIds = null, string luisKey = null, bool? isCmekEnabled = null, Uri cmekKeyVaultUri = null, string cmekEncryptionStatus = null, Guid? tenantId = null, BotServicePublicNetworkAccess? publicNetworkAccess = null, bool? isStreamingSupported = null, bool? isDeveloperAppInsightsApiKeySet = null, string migrationToken = null, bool? isLocalAuthDisabled = null, string schemaTransformationVersion = null, ResourceIdentifier storageResourceId = null, IEnumerable privateEndpointConnections = null, IEnumerable networkSecurityPerimeterConfigurations = null, string openWithHint = null, string appPasswordHint = null, string provisioningState = null, string publishingCredentials = null)
{
allSettings ??= new Dictionary();
parameters ??= new Dictionary();
@@ -94,6 +107,7 @@ public static BotProperties BotProperties(string displayName = null, string desc
enabledChannels ??= new List();
luisAppIds ??= new List();
privateEndpointConnections ??= new List();
+ networkSecurityPerimeterConfigurations ??= new List();
return new BotProperties(
displayName,
@@ -127,6 +141,7 @@ public static BotProperties BotProperties(string displayName = null, string desc
schemaTransformationVersion,
storageResourceId,
privateEndpointConnections?.ToList(),
+ networkSecurityPerimeterConfigurations?.ToList(),
openWithHint,
appPasswordHint,
provisioningState,
@@ -160,6 +175,152 @@ public static BotServicePrivateEndpointConnectionData BotServicePrivateEndpointC
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Properties of the Network Security Perimeter configuration.
+ /// A new instance for mocking.
+ public static NetworkSecurityPerimeterConfigurationData NetworkSecurityPerimeterConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NetworkSecurityPerimeterConfigurationProperties properties = null)
+ {
+ return new NetworkSecurityPerimeterConfigurationData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ ///
+ /// List of Provisioning Issues if any.
+ /// Information about Network Security Perimeter.
+ /// Information about resource association.
+ /// Information about profile.
+ /// A new instance for mocking.
+ public static NetworkSecurityPerimeterConfigurationProperties NetworkSecurityPerimeterConfigurationProperties(ProvisioningState? provisioningState = null, IEnumerable provisioningIssues = null, NetworkSecurityPerimeter networkSecurityPerimeter = null, ResourceAssociation resourceAssociation = null, Profile profile = null)
+ {
+ provisioningIssues ??= new List();
+
+ return new NetworkSecurityPerimeterConfigurationProperties(
+ provisioningState,
+ provisioningIssues?.ToList(),
+ networkSecurityPerimeter,
+ resourceAssociation,
+ profile,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the issue.
+ /// Properties of Provisioning Issue.
+ /// A new instance for mocking.
+ public static ProvisioningIssue ProvisioningIssue(string name = null, ProvisioningIssueProperties properties = null)
+ {
+ return new ProvisioningIssue(name, properties, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Type of Issue.
+ /// Provisioning state of Network Security Perimeter configuration propagation.
+ /// Description of the issue.
+ /// ARM IDs of resources that can be associated to the same perimeter to remediate the issue.
+ /// Access rules that can be added to the same profile to remediate the issue.
+ /// A new instance for mocking.
+ public static ProvisioningIssueProperties ProvisioningIssueProperties(string issueType = null, Severity? severity = null, string description = null, IEnumerable suggestedResourceIds = null, IEnumerable suggestedAccessRules = null)
+ {
+ suggestedResourceIds ??= new List();
+ suggestedAccessRules ??= new List();
+
+ return new ProvisioningIssueProperties(
+ issueType,
+ severity,
+ description,
+ suggestedResourceIds?.ToList(),
+ suggestedAccessRules?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the access rule.
+ /// Properties of Access Rule.
+ /// A new instance for mocking.
+ public static NspAccessRule NspAccessRule(string name = null, NspAccessRuleProperties properties = null)
+ {
+ return new NspAccessRule(name, properties, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Direction of Access Rule.
+ /// Address prefixes in the CIDR format for inbound rules.
+ /// Subscriptions for inbound rules.
+ /// NetworkSecurityPerimeters for inbound rules.
+ /// FQDN for outbound rules.
+ /// Email addresses for outbound rules.
+ /// Phone numbers for outbound rules.
+ /// A new instance for mocking.
+ public static NspAccessRuleProperties NspAccessRuleProperties(NspAccessRuleDirection? direction = null, IEnumerable addressPrefixes = null, IEnumerable subscriptions = null, IEnumerable networkSecurityPerimeters = null, IEnumerable fullyQualifiedDomainNames = null, IEnumerable emailAddresses = null, IEnumerable phoneNumbers = null)
+ {
+ addressPrefixes ??= new List();
+ subscriptions ??= new List();
+ networkSecurityPerimeters ??= new List();
+ fullyQualifiedDomainNames ??= new List();
+ emailAddresses ??= new List();
+ phoneNumbers ??= new List();
+
+ return new NspAccessRuleProperties(
+ direction,
+ addressPrefixes?.ToList(),
+ subscriptions?.ToList(),
+ networkSecurityPerimeters?.ToList(),
+ fullyQualifiedDomainNames?.ToList(),
+ emailAddresses?.ToList(),
+ phoneNumbers?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
+ /// Guid of the Network Security Perimeter.
+ /// Location of the Network Security Perimeter.
+ /// A new instance for mocking.
+ public static NetworkSecurityPerimeter NetworkSecurityPerimeter(ResourceIdentifier id = null, string perimeterGuid = null, AzureLocation? location = null)
+ {
+ return new NetworkSecurityPerimeter(id, perimeterGuid, location, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the resource association.
+ /// Access Mode of the resource association.
+ /// A new instance for mocking.
+ public static ResourceAssociation ResourceAssociation(string name = null, AccessMode? accessMode = null)
+ {
+ return new ResourceAssociation(name, accessMode, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the profile.
+ /// Current access rules version.
+ /// List of Access Rules.
+ /// Current diagnostic settings version.
+ /// List of log categories.
+ /// A new instance for mocking.
+ public static Profile Profile(string name = null, long? accessRulesVersion = null, IEnumerable accessRules = null, long? diagnosticSettingsVersion = null, IEnumerable enabledLogCategories = null)
+ {
+ accessRules ??= new List();
+ enabledLogCategories ??= new List();
+
+ return new Profile(
+ name,
+ accessRulesVersion,
+ accessRules?.ToList(),
+ diagnosticSettingsVersion,
+ enabledLogCategories?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The sku name.
/// Gets the sku tier. This is based on the SKU name.
@@ -169,6 +330,93 @@ public static BotServiceSku BotServiceSku(BotServiceSkuName name = default, BotS
return new BotServiceSku(name, tier, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// For in-conversation bot user authentication.
+ /// For verifying incoming tokens from the channels.
+ /// For verifying incoming tokens from the channels.
+ /// For verifying incoming tokens from bot emulator.
+ /// For getting access token to channels from bot host.
+ /// For getting access token to channels from bot host.
+ /// Per cloud OAuth setting on whether authority is validated.
+ /// Same as toBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12.
+ /// A new instance for mocking.
+ public static BotServiceHostSettingsResult BotServiceHostSettingsResult(Uri oAuthUri = null, Uri toBotFromChannelOpenIdMetadataUri = null, string toBotFromChannelTokenIssuer = null, Uri toBotFromEmulatorOpenIdMetadataUri = null, Uri toChannelFromBotLoginUri = null, string toChannelFromBotOAuthScope = null, bool? validateAuthority = null, string botOpenIdMetadata = null)
+ {
+ return new BotServiceHostSettingsResult(
+ oAuthUri,
+ toBotFromChannelOpenIdMetadataUri,
+ toBotFromChannelTokenIssuer,
+ toBotFromEmulatorOpenIdMetadataUri,
+ toChannelFromBotLoginUri,
+ toChannelFromBotOAuthScope,
+ validateAuthority,
+ botOpenIdMetadata,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The Properties of a Service Provider Object.
+ /// A new instance for mocking.
+ public static BotServiceProvider BotServiceProvider(BotServiceProviderProperties properties = null)
+ {
+ return new BotServiceProvider(properties, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Id for 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.
+ /// A new instance for mocking.
+ public static BotServiceProviderProperties BotServiceProviderProperties(string id = null, string displayName = null, string serviceProviderName = null, Uri devPortalUri = null, Uri iconUri = null, IEnumerable parameters = null)
+ {
+ parameters ??= new List();
+
+ return new BotServiceProviderProperties(
+ id,
+ displayName,
+ serviceProviderName,
+ devPortalUri,
+ iconUri,
+ parameters?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the Service Provider.
+ /// Type of the Service Provider.
+ /// Display Name of the Service Provider.
+ /// Description of the Service Provider.
+ /// Help Url for the Service Provider.
+ /// Default Name for the Service Provider.
+ /// Meta data for the Service Provider.
+ /// A new instance for mocking.
+ public static BotServiceProviderParameter BotServiceProviderParameter(string name = null, string serviceProviderParameterType = null, string displayName = null, string description = null, Uri helpUri = null, string @default = null, bool? isRequired = null)
+ {
+ return new BotServiceProviderParameter(
+ name,
+ serviceProviderParameterType,
+ displayName,
+ description,
+ helpUri,
+ @default,
+ isRequired != null ? new ServiceProviderParameterMetadata(new ServiceProviderParameterMetadataConstraints(isRequired, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Primary Access Key.
+ /// Secondary Access Key.
+ /// Current version of runtime.
+ /// Latest version of runtime.
+ /// A new instance for mocking.
+ public static GetBotServiceQnAMakerEndpointKeyResult GetBotServiceQnAMakerEndpointKeyResult(string primaryEndpointKey = null, string secondaryEndpointKey = null, string installedVersion = null, string lastStableVersion = null)
+ {
+ return new GetBotServiceQnAMakerEndpointKeyResult(primaryEndpointKey, secondaryEndpointKey, installedVersion, lastStableVersion, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -316,89 +564,6 @@ public static BotChannelSite BotChannelSite(Guid? tenantId = null, string siteId
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Specifies the resource ID.
- /// Specifies the location of the resource.
- /// The set of properties specific to sign in url.
- /// A new instance for mocking.
- public static BotCreateEmailSignInUriResult BotCreateEmailSignInUriResult(ResourceIdentifier id = null, AzureLocation? location = null, Uri createEmailSignInUrlResponseUri = null)
- {
- return new BotCreateEmailSignInUriResult(id, location, createEmailSignInUrlResponseUri != null ? new CreateEmailSignInUrlResponseProperties(createEmailSignInUrlResponseUri, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// indicates if the bot name is valid.
- /// additional message from the bot management api showing why a bot name is not available.
- /// response code from ABS.
- /// A new instance for mocking.
- public static BotServiceNameAvailabilityResult BotServiceNameAvailabilityResult(bool? isValid = null, string message = null, string absCode = null)
- {
- return new BotServiceNameAvailabilityResult(isValid, message, absCode, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The Properties of a Service Provider Object.
- /// A new instance for mocking.
- public static BotServiceProvider BotServiceProvider(BotServiceProviderProperties properties = null)
- {
- return new BotServiceProvider(properties, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Id for 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.
- /// A new instance for mocking.
- public static BotServiceProviderProperties BotServiceProviderProperties(string id = null, string displayName = null, string serviceProviderName = null, Uri devPortalUri = null, Uri iconUri = null, IEnumerable parameters = null)
- {
- parameters ??= new List();
-
- return new BotServiceProviderProperties(
- id,
- displayName,
- serviceProviderName,
- devPortalUri,
- iconUri,
- parameters?.ToList(),
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Name of the Service Provider.
- /// Type of the Service Provider.
- /// Display Name of the Service Provider.
- /// Description of the Service Provider.
- /// Help Url for the Service Provider.
- /// Default Name for the Service Provider.
- /// Meta data for the Service Provider.
- /// A new instance for mocking.
- public static BotServiceProviderParameter BotServiceProviderParameter(string name = null, string serviceProviderParameterType = null, string displayName = null, string description = null, Uri helpUri = null, string @default = null, bool? isRequired = null)
- {
- return new BotServiceProviderParameter(
- name,
- serviceProviderParameterType,
- displayName,
- description,
- helpUri,
- @default,
- isRequired != null ? new ServiceProviderParameterMetadata(new ServiceProviderParameterMetadataConstraints(isRequired, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Primary Access Key.
- /// Secondary Access Key.
- /// Current version of runtime.
- /// Latest version of runtime.
- /// A new instance for mocking.
- public static GetBotServiceQnAMakerEndpointKeyResult GetBotServiceQnAMakerEndpointKeyResult(string primaryEndpointKey = null, string secondaryEndpointKey = null, string installedVersion = null, string lastStableVersion = null)
- {
- return new GetBotServiceQnAMakerEndpointKeyResult(primaryEndpointKey, secondaryEndpointKey, installedVersion, lastStableVersion, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -433,6 +598,8 @@ public static BotConnectionSettingData BotConnectionSettingData(ResourceIdentifi
}
/// Initializes a new instance of .
+ /// Id of the Connection Setting.
+ /// Name of 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.
@@ -442,11 +609,13 @@ public static BotConnectionSettingData BotConnectionSettingData(ResourceIdentifi
/// Service Provider Parameters associated with the Connection Setting.
/// Provisioning state of the resource.
/// A new instance for mocking.
- public static BotConnectionSettingProperties BotConnectionSettingProperties(string clientId = null, string settingId = null, string clientSecret = null, string scopes = null, string serviceProviderId = null, string serviceProviderDisplayName = null, IEnumerable parameters = null, string provisioningState = null)
+ public static BotConnectionSettingProperties BotConnectionSettingProperties(string id = null, string name = null, string clientId = null, string settingId = null, string clientSecret = null, string scopes = null, string serviceProviderId = null, string serviceProviderDisplayName = null, IEnumerable parameters = null, string provisioningState = null)
{
parameters ??= new List();
return new BotConnectionSettingProperties(
+ id,
+ name,
clientId,
settingId,
clientSecret,
@@ -458,28 +627,14 @@ public static BotConnectionSettingProperties BotConnectionSettingProperties(stri
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// For in-conversation bot user authentication.
- /// For verifying incoming tokens from the channels.
- /// For verifying incoming tokens from the channels.
- /// For verifying incoming tokens from bot emulator.
- /// For getting access token to channels from bot host.
- /// For getting access token to channels from bot host.
- /// Per cloud OAuth setting on whether authority is validated.
- /// Same as toBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12.
- /// A new instance for mocking.
- public static BotServiceHostSettingsResult BotServiceHostSettingsResult(Uri oAuthUri = null, Uri toBotFromChannelOpenIdMetadataUri = null, string toBotFromChannelTokenIssuer = null, Uri toBotFromEmulatorOpenIdMetadataUri = null, Uri toChannelFromBotLoginUri = null, string toChannelFromBotOAuthScope = null, bool? validateAuthority = null, string botOpenIdMetadata = null)
+ /// Initializes a new instance of .
+ /// Specifies the resource ID.
+ /// Specifies the location of the resource.
+ /// The set of properties specific to sign in url.
+ /// A new instance for mocking.
+ public static BotCreateEmailSignInUriResult BotCreateEmailSignInUriResult(ResourceIdentifier id = null, AzureLocation? location = null, Uri createEmailSignInUrlResponseUri = null)
{
- return new BotServiceHostSettingsResult(
- oAuthUri,
- toBotFromChannelOpenIdMetadataUri,
- toBotFromChannelTokenIssuer,
- toBotFromEmulatorOpenIdMetadataUri,
- toChannelFromBotLoginUri,
- toChannelFromBotOAuthScope,
- validateAuthority,
- botOpenIdMetadata,
- serializedAdditionalRawData: null);
+ return new BotCreateEmailSignInUriResult(id, location, createEmailSignInUrlResponseUri != null ? new CreateEmailSignInUrlResponseProperties(createEmailSignInUrlResponseUri, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -507,6 +662,16 @@ public static BotServicePrivateLinkResourceData BotServicePrivateLinkResourceDat
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// A new instance for mocking.
+ public static AcsChatChannel AcsChatChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ {
+ return new AcsChatChannel("AcsChatChannel", etag, provisioningState, location, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
@@ -535,6 +700,105 @@ public static AlexaChannelProperties AlexaChannelProperties(string alexaSkillId
return new AlexaChannelProperties(alexaSkillId, uriFragment, serviceEndpointUri, isEnabled, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// The set of properties specific to Direct Line channel resource.
+ /// A new instance for mocking.
+ public static DirectLineChannel DirectLineChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, DirectLineChannelProperties properties = null)
+ {
+ return new DirectLineChannel(
+ "DirectLineChannel",
+ etag,
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
+ }
+
+ /// Initializes a new instance of .
+ /// Tenant Id.
+ /// Site Id.
+ /// Site name.
+ /// Primary key. Value only returned through POST to the action Channel List API, otherwise empty.
+ /// Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.
+ /// Whether this site is enabled for DirectLine channel.
+ /// Whether this site is token enabled for channel.
+ /// Whether this site is EndpointParameters enabled for channel.
+ /// Whether this site is disabled detailed logging for.
+ /// Whether this site is enabled for block user upload.
+ /// Whether this no-storage site is disabled detailed logging for.
+ /// Entity Tag.
+ /// DirectLine application id.
+ /// 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.
+ /// A new instance for mocking.
+ public static DirectLineSite DirectLineSite(Guid? tenantId = null, string siteId = null, string siteName = null, string key = null, string key2 = null, bool isEnabled = default, bool? isTokenEnabled = null, bool? isEndpointParametersEnabled = null, bool? isDetailedLoggingEnabled = null, bool? isBlockUserUploadEnabled = null, bool? isNoStorageEnabled = null, ETag? etag = null, string appId = null, bool? isV1Enabled = null, bool? isV3Enabled = null, bool? isSecureSiteEnabled = null, IEnumerable trustedOrigins = null, bool? isWebChatSpeechEnabled = null, bool? isWebchatPreviewEnabled = null)
+ {
+ trustedOrigins ??= new List();
+
+ return new DirectLineSite(
+ tenantId,
+ siteId,
+ siteName,
+ key,
+ key2,
+ isEnabled,
+ isTokenEnabled,
+ isEndpointParametersEnabled,
+ isDetailedLoggingEnabled,
+ isBlockUserUploadEnabled,
+ isNoStorageEnabled,
+ etag,
+ appId,
+ isV1Enabled,
+ isV3Enabled,
+ isSecureSiteEnabled,
+ trustedOrigins?.ToList(),
+ isWebChatSpeechEnabled,
+ isWebchatPreviewEnabled,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// The set of properties specific to DirectLine Speech channel resource.
+ /// A new instance for mocking.
+ public static DirectLineSpeechChannel DirectLineSpeechChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, DirectLineSpeechChannelProperties properties = null)
+ {
+ return new DirectLineSpeechChannel(
+ "DirectLineSpeechChannel",
+ etag,
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
+ }
+
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// The set of properties specific to email channel resource.
+ /// A new instance for mocking.
+ public static EmailChannel EmailChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, EmailChannelProperties properties = null)
+ {
+ return new EmailChannel(
+ "EmailChannel",
+ etag,
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
+ }
+
/// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
@@ -574,16 +838,16 @@ public static FacebookChannelProperties FacebookChannelProperties(string verifyT
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
/// Specifies the location of the resource.
- /// The set of properties specific to email channel resource.
- /// A new instance for mocking.
- public static EmailChannel EmailChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, EmailChannelProperties properties = null)
+ /// The set of properties specific to Kik channel resource.
+ /// A new instance for mocking.
+ public static KikChannel KikChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, KikChannelProperties properties = null)
{
- return new EmailChannel(
- "EmailChannel",
+ return new KikChannel(
+ "KikChannel",
etag,
provisioningState,
location,
@@ -591,14 +855,53 @@ public static EmailChannel EmailChannel(ETag? etag = null, string provisioningSt
properties);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
/// Specifies the location of the resource.
- /// A new instance for mocking.
- public static OutlookChannel OutlookChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ /// The set of properties specific to line channel resource.
+ /// A new instance for mocking.
+ public static LineChannel LineChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, LineChannelProperties properties = null)
{
- return new OutlookChannel("OutlookChannel", etag, provisioningState, location, serializedAdditionalRawData: null);
+ return new LineChannel(
+ "LineChannel",
+ etag,
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
+ }
+
+ /// Initializes a new instance of .
+ /// The list of line channel registrations.
+ /// Callback Url to enter in line registration.
+ /// Whether this channel is validated for the bot.
+ /// A new instance for mocking.
+ public static LineChannelProperties LineChannelProperties(IEnumerable lineRegistrations = null, Uri callbackUri = null, bool? isValidated = null)
+ {
+ lineRegistrations ??= new List();
+
+ return new LineChannelProperties(lineRegistrations?.ToList(), callbackUri, isValidated, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Id generated for the line channel registration.
+ /// Secret for the line channel registration.
+ /// Access token for the line channel registration.
+ /// A new instance for mocking.
+ public static LineRegistration LineRegistration(string generatedId = null, string channelSecret = null, string channelAccessToken = null)
+ {
+ return new LineRegistration(generatedId, channelSecret, channelAccessToken, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// A new instance for mocking.
+ public static M365Extensions M365Extensions(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ {
+ return new M365Extensions("M365Extensions", etag, provisioningState, location, serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -618,6 +921,36 @@ public static MsTeamsChannel MsTeamsChannel(ETag? etag = null, string provisioni
properties);
}
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// A new instance for mocking.
+ public static Omnichannel Omnichannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ {
+ return new Omnichannel("Omnichannel", etag, provisioningState, location, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// A new instance for mocking.
+ public static OutlookChannel OutlookChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ {
+ return new OutlookChannel("OutlookChannel", etag, provisioningState, location, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// A new instance for mocking.
+ public static SearchAssistant SearchAssistant(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ {
+ return new SearchAssistant("SearchAssistant", etag, provisioningState, location, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
@@ -635,16 +968,16 @@ public static SkypeChannel SkypeChannel(ETag? etag = null, string provisioningSt
properties);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
/// Specifies the location of the resource.
- /// The set of properties specific to Kik channel resource.
- /// A new instance for mocking.
- public static KikChannel KikChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, KikChannelProperties properties = null)
+ /// The set of properties specific to Slack channel resource.
+ /// A new instance for mocking.
+ public static SlackChannel SlackChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, SlackChannelProperties properties = null)
{
- return new KikChannel(
- "KikChannel",
+ return new SlackChannel(
+ "SlackChannel",
etag,
provisioningState,
location,
@@ -652,16 +985,46 @@ public static KikChannel KikChannel(ETag? etag = null, string provisioningState
properties);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
+ /// The Slack client id.
+ /// The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.
+ /// The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.
+ /// The Slack permission scopes.
+ /// The Slack landing page Url.
+ /// The Slack redirect action.
+ /// The Sms auth token.
+ /// Whether to register the settings before OAuth validation is performed. Recommended to True.
+ /// Whether this channel is validated for the bot.
+ /// The Slack signing secret.
+ /// Whether this channel is enabled for the bot.
+ /// A new instance for mocking.
+ public static SlackChannelProperties SlackChannelProperties(string clientId = null, string clientSecret = null, string verificationToken = null, string scopes = null, Uri landingPageUri = null, string redirectAction = null, string lastSubmissionId = null, bool? registerBeforeOAuthFlow = null, bool? isValidated = null, string signingSecret = null, bool isEnabled = default)
+ {
+ return new SlackChannelProperties(
+ clientId,
+ clientSecret,
+ verificationToken,
+ scopes,
+ landingPageUri,
+ redirectAction,
+ lastSubmissionId,
+ registerBeforeOAuthFlow,
+ isValidated,
+ signingSecret,
+ isEnabled,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
/// Specifies the location of the resource.
- /// The set of properties specific to Web Chat channel resource.
- /// A new instance for mocking.
- public static WebChatChannel WebChatChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, WebChatChannelProperties properties = null)
+ /// The set of properties specific to Sms channel resource.
+ /// A new instance for mocking.
+ public static SmsChannel SmsChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, SmsChannelProperties properties = null)
{
- return new WebChatChannel(
- "WebChatChannel",
+ return new SmsChannel(
+ "SmsChannel",
etag,
provisioningState,
location,
@@ -669,75 +1032,50 @@ public static WebChatChannel WebChatChannel(ETag? etag = null, string provisioni
properties);
}
- /// Initializes a new instance of .
- /// Web chat control embed code.
- /// The list of Web Chat sites.
- /// A new instance for mocking.
- public static WebChatChannelProperties WebChatChannelProperties(string webChatEmbedCode = null, IEnumerable sites = null)
+ /// Initializes a new instance of .
+ /// Entity Tag of the resource.
+ /// Provisioning state of the resource.
+ /// Specifies the location of the resource.
+ /// The set of properties specific to Telegram channel resource.
+ /// A new instance for mocking.
+ public static TelegramChannel TelegramChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, TelegramChannelProperties properties = null)
{
- sites ??= new List();
-
- return new WebChatChannelProperties(webChatEmbedCode, sites?.ToList(), serializedAdditionalRawData: null);
+ return new TelegramChannel(
+ "TelegramChannel",
+ etag,
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
}
- /// Initializes a new instance of .
- /// Tenant Id.
- /// Site Id.
- /// Site name.
- /// Primary key. Value only returned through POST to the action Channel List API, otherwise empty.
- /// Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.
- /// Whether this site is enabled for DirectLine channel.
- /// Whether this site is token enabled for channel.
- /// Whether this site is EndpointParameters enabled for channel.
- /// Whether this site is disabled detailed logging for.
- /// Whether this site is enabled for block user upload.
- /// Whether this no-storage site is disabled detailed logging for.
- /// Entity Tag.
- /// DirectLine application id.
- /// 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.
- /// A new instance for mocking.
- public static WebChatSite WebChatSite(Guid? tenantId = null, string siteId = null, string siteName = null, string key = null, string key2 = null, bool isEnabled = default, bool? isTokenEnabled = null, bool? isEndpointParametersEnabled = null, bool? isDetailedLoggingEnabled = null, bool? isBlockUserUploadEnabled = null, bool? isNoStorageEnabled = null, ETag? etag = null, string appId = null, bool? isV1Enabled = null, bool? isV3Enabled = null, bool? isSecureSiteEnabled = null, IEnumerable trustedOrigins = null, bool? isWebChatSpeechEnabled = null, bool? isWebchatPreviewEnabled = null)
+ /// Initializes a new instance of .
+ /// 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.
+ /// A new instance for mocking.
+ public static TelephonyChannel TelephonyChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, TelephonyChannelProperties properties = null)
{
- trustedOrigins ??= new List();
-
- return new WebChatSite(
- tenantId,
- siteId,
- siteName,
- key,
- key2,
- isEnabled,
- isTokenEnabled,
- isEndpointParametersEnabled,
- isDetailedLoggingEnabled,
- isBlockUserUploadEnabled,
- isNoStorageEnabled,
+ return new TelephonyChannel(
+ "TelephonyChannel",
etag,
- appId,
- isV1Enabled,
- isV3Enabled,
- isSecureSiteEnabled,
- trustedOrigins?.ToList(),
- isWebChatSpeechEnabled,
- isWebchatPreviewEnabled,
- serializedAdditionalRawData: null);
+ provisioningState,
+ location,
+ serializedAdditionalRawData: null,
+ properties);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Entity Tag of the resource.
/// Provisioning state of the resource.
/// Specifies the location of the resource.
- /// The set of properties specific to Direct Line channel resource.
- /// A new instance for mocking.
- public static DirectLineChannel DirectLineChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, DirectLineChannelProperties properties = null)
+ /// The set of properties specific to Web Chat channel resource.
+ /// A new instance for mocking.
+ public static WebChatChannel WebChatChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, WebChatChannelProperties properties = null)
{
- return new DirectLineChannel(
- "DirectLineChannel",
+ return new WebChatChannel(
+ "WebChatChannel",
etag,
provisioningState,
location,
@@ -745,7 +1083,18 @@ public static DirectLineChannel DirectLineChannel(ETag? etag = null, string prov
properties);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
+ /// Web chat control embed code.
+ /// The list of Web Chat sites.
+ /// A new instance for mocking.
+ public static WebChatChannelProperties WebChatChannelProperties(string webChatEmbedCode = null, IEnumerable sites = null)
+ {
+ sites ??= new List();
+
+ return new WebChatChannelProperties(webChatEmbedCode, sites?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
/// Tenant Id.
/// Site Id.
/// Site name.
@@ -765,12 +1114,12 @@ public static DirectLineChannel DirectLineChannel(ETag? etag = null, string prov
/// 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.
- /// A new instance for mocking.
- public static DirectLineSite DirectLineSite(Guid? tenantId = null, string siteId = null, string siteName = null, string key = null, string key2 = null, bool isEnabled = default, bool? isTokenEnabled = null, bool? isEndpointParametersEnabled = null, bool? isDetailedLoggingEnabled = null, bool? isBlockUserUploadEnabled = null, bool? isNoStorageEnabled = null, ETag? etag = null, string appId = null, bool? isV1Enabled = null, bool? isV3Enabled = null, bool? isSecureSiteEnabled = null, IEnumerable trustedOrigins = null, bool? isWebChatSpeechEnabled = null, bool? isWebchatPreviewEnabled = null)
+ /// A new instance for mocking.
+ public static WebChatSite WebChatSite(Guid? tenantId = null, string siteId = null, string siteName = null, string key = null, string key2 = null, bool isEnabled = default, bool? isTokenEnabled = null, bool? isEndpointParametersEnabled = null, bool? isDetailedLoggingEnabled = null, bool? isBlockUserUploadEnabled = null, bool? isNoStorageEnabled = null, ETag? etag = null, string appId = null, bool? isV1Enabled = null, bool? isV3Enabled = null, bool? isSecureSiteEnabled = null, IEnumerable trustedOrigins = null, bool? isWebChatSpeechEnabled = null, bool? isWebchatPreviewEnabled = null)
{
trustedOrigins ??= new List();
- return new DirectLineSite(
+ return new WebChatSite(
tenantId,
siteId,
siteName,
@@ -793,198 +1142,63 @@ public static DirectLineSite DirectLineSite(Guid? tenantId = null, string siteId
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// The set of properties specific to Telegram channel resource.
- /// A new instance for mocking.
- public static TelegramChannel TelegramChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, TelegramChannelProperties properties = null)
- {
- return new TelegramChannel(
- "TelegramChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// The set of properties specific to Sms channel resource.
- /// A new instance for mocking.
- public static SmsChannel SmsChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, SmsChannelProperties properties = null)
- {
- return new SmsChannel(
- "SmsChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// The set of properties specific to Slack channel resource.
- /// A new instance for mocking.
- public static SlackChannel SlackChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, SlackChannelProperties properties = null)
- {
- return new SlackChannel(
- "SlackChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// The Slack client id.
- /// The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.
- /// The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.
- /// The Slack permission scopes.
- /// The Slack landing page Url.
- /// The Slack redirect action.
- /// The Sms auth token.
- /// Whether to register the settings before OAuth validation is performed. Recommended to True.
- /// Whether this channel is validated for the bot.
- /// The Slack signing secret.
- /// Whether this channel is enabled for the bot.
- /// A new instance for mocking.
- public static SlackChannelProperties SlackChannelProperties(string clientId = null, string clientSecret = null, string verificationToken = null, string scopes = null, Uri landingPageUri = null, string redirectAction = null, string lastSubmissionId = null, bool? registerBeforeOAuthFlow = null, bool? isValidated = null, string signingSecret = null, bool isEnabled = default)
- {
- return new SlackChannelProperties(
- clientId,
- clientSecret,
- verificationToken,
- scopes,
- landingPageUri,
- redirectAction,
- lastSubmissionId,
- registerBeforeOAuthFlow,
- isValidated,
- signingSecret,
- isEnabled,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// The set of properties specific to line channel resource.
- /// A new instance for mocking.
- public static LineChannel LineChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, LineChannelProperties properties = null)
- {
- return new LineChannel(
- "LineChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// The list of line channel registrations.
- /// Callback Url to enter in line registration.
- /// Whether this channel is validated for the bot.
- /// A new instance for mocking.
- public static LineChannelProperties LineChannelProperties(IEnumerable lineRegistrations = null, Uri callbackUri = null, bool? isValidated = null)
- {
- lineRegistrations ??= new List();
-
- return new LineChannelProperties(lineRegistrations?.ToList(), callbackUri, isValidated, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Id generated for the line channel registration.
- /// Secret for the line channel registration.
- /// Access token for the line channel registration.
- /// A new instance for mocking.
- public static LineRegistration LineRegistration(string generatedId = null, string channelSecret = null, string channelAccessToken = null)
- {
- return new LineRegistration(generatedId, channelSecret, channelAccessToken, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// The set of properties specific to DirectLine Speech channel resource.
- /// A new instance for mocking.
- public static DirectLineSpeechChannel DirectLineSpeechChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, DirectLineSpeechChannelProperties properties = null)
- {
- return new DirectLineSpeechChannel(
- "DirectLineSpeechChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// A new instance for mocking.
- public static Omnichannel Omnichannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
- {
- return new Omnichannel("Omnichannel", etag, provisioningState, location, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// 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.
- /// A new instance for mocking.
- public static TelephonyChannel TelephonyChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null, TelephonyChannelProperties properties = null)
- {
- return new TelephonyChannel(
- "TelephonyChannel",
- etag,
- provisioningState,
- location,
- serializedAdditionalRawData: null,
- properties);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
- /// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// A new instance for mocking.
- public static AcsChatChannel AcsChatChannel(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
- {
- return new AcsChatChannel("AcsChatChannel", etag, provisioningState, location, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
+ /// Initializes a new instance of .
+ /// The Name of the bot.
+ /// The description of the bot.
+ /// The Icon Url of the bot.
+ /// The bot's endpoint.
+ /// The bot's endpoint version.
+ /// Contains resource all settings defined as key/value pairs.
+ /// Contains resource parameters defined as key/value pairs.
+ /// The bot's manifest url.
+ /// Microsoft App Type for the bot.
+ /// Microsoft App Id for the bot.
+ /// Microsoft App Tenant Id for the bot.
+ /// Microsoft App Managed Identity Resource Id for the bot.
+ /// Collection of channels for which the bot is configured.
+ /// Collection of channels for which the bot is enabled.
+ /// The Application Insights key.
+ /// The Application Insights Api Key.
+ /// The Application Insights App Id.
+ /// Collection of LUIS App Ids.
+ /// The LUIS Key.
+ /// Whether Cmek is enabled.
+ /// The CMK Url.
+ /// The CMK encryption status.
+ /// The Tenant Id for the bot.
+ /// Whether the bot is in an isolated network.
+ /// Whether the bot is streaming supported.
+ /// Whether the bot is developerAppInsightsApiKey set.
+ /// Token used to migrate non Azure bot to azure subscription.
+ /// Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
+ /// The channel schema transformation version for the bot.
+ /// The storage resourceId for the bot.
+ /// List of Private Endpoint Connections configured for the bot.
+ /// The hint to browser (e.g. protocol handler) on how to open the bot for authoring.
+ /// The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.
/// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// A new instance for mocking.
- public static SearchAssistant SearchAssistant(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ /// Publishing credentials of the resource.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static BotProperties BotProperties(string displayName, string description, Uri iconUri, Uri endpoint, string endpointVersion, IDictionary allSettings, IDictionary parameters, Uri manifestUri, BotMsaAppType? msaAppType, string msaAppId, string msaAppTenantId, ResourceIdentifier msaAppMSIResourceId, IEnumerable configuredChannels, IEnumerable enabledChannels, string developerAppInsightKey, string developerAppInsightsApiKey, string developerAppInsightsApplicationId, IEnumerable luisAppIds, string luisKey, bool? isCmekEnabled, Uri cmekKeyVaultUri, string cmekEncryptionStatus, Guid? tenantId, BotServicePublicNetworkAccess? publicNetworkAccess, bool? isStreamingSupported, bool? isDeveloperAppInsightsApiKeySet, string migrationToken, bool? isLocalAuthDisabled, string schemaTransformationVersion, ResourceIdentifier storageResourceId, IEnumerable privateEndpointConnections, string openWithHint, string appPasswordHint, string provisioningState, string publishingCredentials)
{
- return new SearchAssistant("SearchAssistant", etag, provisioningState, location, serializedAdditionalRawData: null);
+ return BotProperties(displayName: displayName, description: description, iconUri: iconUri, endpoint: endpoint, endpointVersion: endpointVersion, allSettings: allSettings, parameters: parameters, manifestUri: manifestUri, msaAppType: msaAppType, msaAppId: msaAppId, msaAppTenantId: msaAppTenantId, msaAppMSIResourceId: msaAppMSIResourceId, configuredChannels: configuredChannels, enabledChannels: enabledChannels, developerAppInsightKey: developerAppInsightKey, developerAppInsightsApiKey: developerAppInsightsApiKey, developerAppInsightsApplicationId: developerAppInsightsApplicationId, luisAppIds: luisAppIds, luisKey: luisKey, isCmekEnabled: isCmekEnabled, cmekKeyVaultUri: cmekKeyVaultUri, cmekEncryptionStatus: cmekEncryptionStatus, tenantId: tenantId, publicNetworkAccess: publicNetworkAccess, isStreamingSupported: isStreamingSupported, isDeveloperAppInsightsApiKeySet: isDeveloperAppInsightsApiKeySet, migrationToken: migrationToken, isLocalAuthDisabled: isLocalAuthDisabled, schemaTransformationVersion: schemaTransformationVersion, storageResourceId: storageResourceId, privateEndpointConnections: privateEndpointConnections, networkSecurityPerimeterConfigurations: default, openWithHint: openWithHint, appPasswordHint: appPasswordHint, provisioningState: provisioningState, publishingCredentials: publishingCredentials);
}
- /// Initializes a new instance of .
- /// Entity Tag of the resource.
+ /// Initializes a new instance of .
+ /// Client Id associated with the Connection Setting.
+ /// Setting Id set by the service for the Connection Setting.
+ /// Client Secret associated with the Connection Setting.
+ /// Scopes associated with the Connection Setting.
+ /// Service Provider Id associated with the Connection Setting.
+ /// Service Provider Display Name associated with the Connection Setting.
+ /// Service Provider Parameters associated with the Connection Setting.
/// Provisioning state of the resource.
- /// Specifies the location of the resource.
- /// A new instance for mocking.
- public static M365Extensions M365Extensions(ETag? etag = null, string provisioningState = null, AzureLocation? location = null)
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static BotConnectionSettingProperties BotConnectionSettingProperties(string clientId, string settingId, string clientSecret, string scopes, string serviceProviderId, string serviceProviderDisplayName, IEnumerable parameters, string provisioningState)
{
- return new M365Extensions("M365Extensions", etag, provisioningState, location, serializedAdditionalRawData: null);
+ return BotConnectionSettingProperties(id: default, name: default, clientId: clientId, settingId: settingId, clientSecret: clientSecret, scopes: scopes, serviceProviderId: serviceProviderId, serviceProviderDisplayName: serviceProviderDisplayName, parameters: parameters, provisioningState: provisioningState);
}
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs
index 34b0627e8819..e8ba2c4799ad 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -75,7 +75,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The name of the Channel resource.
- /// The parameters to provide for the created bot.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, BotChannelName channelName, BotChannelData data, CancellationToken cancellationToken = default)
@@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -124,7 +124,7 @@ public virtual async Task> CreateOrUpdateAsync(
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The name of the Channel resource.
- /// The parameters to provide for the created bot.
+ /// Resource create parameters.
/// The cancellation token to use.
/// is null.
public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, BotChannelName channelName, BotChannelData data, CancellationToken cancellationToken = default)
@@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -204,7 +204,7 @@ public virtual async Task> GetAsync(BotChannelName
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -245,7 +245,7 @@ public virtual Response Get(BotChannelName channelName, Canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -275,7 +275,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -305,7 +305,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -344,7 +344,7 @@ public virtual async Task> ExistsAsync(BotChannelName channelName
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -383,7 +383,7 @@ public virtual Response Exists(BotChannelName channelName, CancellationTok
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -424,7 +424,7 @@ public virtual async Task> GetIfExistsAsync
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.Serialization.cs
index 441d938bf466..d5618ec2bb0a 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelData.Serialization.cs
@@ -50,15 +50,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
if (Optional.IsDefined(Kind))
{
- if (Kind != null)
- {
- writer.WritePropertyName("kind"u8);
- writer.WriteStringValue(Kind.Value.ToString());
- }
- else
- {
- writer.WriteNull("kind");
- }
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.Value.ToString());
}
if (Optional.IsDefined(ETag))
{
@@ -134,7 +127,6 @@ internal static BotChannelData DeserializeBotChannelData(JsonElement element, Mo
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
- kind = null;
continue;
}
kind = new BotServiceKind(property.Value.GetString());
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs
index fd3c52eaa023..131929cbc9d5 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotChannelResource.cs
@@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -143,7 +143,7 @@ public virtual async Task> GetAsync(CancellationTok
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellationTo
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(BotChannelDa
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -355,7 +355,7 @@ public virtual Response Update(BotChannelData data, Cancella
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -393,7 +393,7 @@ public virtual async Task> GetChannelWithK
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -431,7 +431,7 @@ public virtual Response GetChannelWithKeys(Cancella
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -493,7 +493,7 @@ public virtual async Task> AddTagAsync(string key,
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -555,7 +555,7 @@ public virtual Response AddTag(string key, string value, Can
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -612,7 +612,7 @@ public virtual async Task> SetTagsAsync(IDictionary
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -669,7 +669,7 @@ public virtual Response SetTags(IDictionary
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -729,7 +729,7 @@ public virtual async Task> RemoveTagAsync(string ke
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs
index 1b6c5155c078..b036c4c3a0e5 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsync(WaitUnt
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, str
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string resourceName, C
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual Response Get(string resourceName, CancellationToken
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancella
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToken
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string resourceName, Cance
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -403,7 +403,7 @@ public virtual Response Exists(string resourceName, CancellationToken canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAsync(string
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs
index 53b4b881c2e2..76c1f2dfdafd 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -115,7 +115,7 @@ public virtual async Task> CreateOrUp
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task> GetAsync(strin
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string connectionName,
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken c
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -402,7 +402,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -447,7 +447,7 @@ public virtual async Task> GetIfE
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingData.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingData.Serialization.cs
index 069fc54e28e6..d6b9932990e3 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingData.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingData.Serialization.cs
@@ -50,15 +50,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
if (Optional.IsDefined(Kind))
{
- if (Kind != null)
- {
- writer.WritePropertyName("kind"u8);
- writer.WriteStringValue(Kind.Value.ToString());
- }
- else
- {
- writer.WriteNull("kind");
- }
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.Value.ToString());
}
if (Optional.IsDefined(ETag))
{
@@ -134,7 +127,6 @@ internal static BotConnectionSettingData DeserializeBotConnectionSettingData(Jso
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
- kind = null;
continue;
}
kind = new BotServiceKind(property.Value.GetString());
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs
index 99bf5954c4cd..10af6c37d4ef 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotConnectionSettingResource.cs
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Bo
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -354,7 +354,7 @@ public virtual Response Update(BotConnectionSettin
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -392,7 +392,7 @@ public virtual async Task> GetWithSecrets
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -430,7 +430,7 @@ public virtual Response GetWithSecrets(Cancellatio
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -492,7 +492,7 @@ public virtual async Task> AddTagAsync(st
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -554,7 +554,7 @@ public virtual Response AddTag(string key, string
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -611,7 +611,7 @@ public virtual async Task> SetTagsAsync(I
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -668,7 +668,7 @@ public virtual Response SetTags(IDictionary
///
-
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -728,7 +728,7 @@ public virtual async Task> RemoveTagAsync
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotData.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotData.Serialization.cs
index a1371a1f2839..2db0e324a842 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotData.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotData.Serialization.cs
@@ -50,15 +50,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
if (Optional.IsDefined(Kind))
{
- if (Kind != null)
- {
- writer.WritePropertyName("kind"u8);
- writer.WriteStringValue(Kind.Value.ToString());
- }
- else
- {
- writer.WriteNull("kind");
- }
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.Value.ToString());
}
if (Optional.IsDefined(ETag))
{
@@ -134,7 +127,6 @@ internal static BotData DeserializeBotData(JsonElement element, ModelReaderWrite
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
- kind = null;
continue;
}
kind = new BotServiceKind(property.Value.GetString());
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs
index 46239c8b13c4..67c03c115fe2 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotResource.cs
@@ -103,6 +103,75 @@ internal static void ValidateResourceId(ResourceIdentifier id)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
+ /// Gets a collection of BotConnectionSettingResources in the Bot.
+ /// An object representing collection of BotConnectionSettingResources and their operations over a BotConnectionSettingResource.
+ public virtual BotConnectionSettingCollection GetBotConnectionSettings()
+ {
+ return GetCachedClient(client => new BotConnectionSettingCollection(client, Id));
+ }
+
+ ///
+ /// Get a Connection Setting registration for a Bot Service
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// BotConnection_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-15-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Bot Service Connection Setting resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetBotConnectionSettingAsync(string connectionName, CancellationToken cancellationToken = default)
+ {
+ return await GetBotConnectionSettings().GetAsync(connectionName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Connection Setting registration for a Bot Service
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// BotConnection_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-15-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Bot Service Connection Setting resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetBotConnectionSetting(string connectionName, CancellationToken cancellationToken = default)
+ {
+ return GetBotConnectionSettings().Get(connectionName, cancellationToken);
+ }
+
/// Gets a collection of BotChannelResources in the Bot.
/// An object representing collection of BotChannelResources and their operations over a BotChannelResource.
public virtual BotChannelCollection GetBotChannels()
@@ -123,7 +192,7 @@ public virtual BotChannelCollection GetBotChannels()
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -152,7 +221,7 @@ public virtual async Task> GetBotChannelAsync(BotCh
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -168,73 +237,73 @@ public virtual Response GetBotChannel(BotChannelName channel
return GetBotChannels().Get(channelName, cancellationToken);
}
- /// Gets a collection of BotConnectionSettingResources in the Bot.
- /// An object representing collection of BotConnectionSettingResources and their operations over a BotConnectionSettingResource.
- public virtual BotConnectionSettingCollection GetBotConnectionSettings()
+ /// Gets a collection of NetworkSecurityPerimeterConfigurationResources in the Bot.
+ /// An object representing collection of NetworkSecurityPerimeterConfigurationResources and their operations over a NetworkSecurityPerimeterConfigurationResource.
+ public virtual NetworkSecurityPerimeterConfigurationCollection GetNetworkSecurityPerimeterConfigurations()
{
- return GetCachedClient(client => new BotConnectionSettingCollection(client, Id));
+ return GetCachedClient(client => new NetworkSecurityPerimeterConfigurationCollection(client, Id));
}
///
- /// Get a Connection Setting registration for a Bot Service
+ /// Gets the specified Network Security Perimeter configuration associated with the Bot.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}
///
/// -
/// Operation Id
- /// BotConnection_Get
+ /// NetworkSecurityPerimeterConfigurations_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the Bot Service Connection Setting resource.
+ /// The resource association Name. Composed of parameter guid and association name.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetBotConnectionSettingAsync(string connectionName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetNetworkSecurityPerimeterConfigurationAsync(string networkSecurityPerimeterConfigurationName, CancellationToken cancellationToken = default)
{
- return await GetBotConnectionSettings().GetAsync(connectionName, cancellationToken).ConfigureAwait(false);
+ return await GetNetworkSecurityPerimeterConfigurations().GetAsync(networkSecurityPerimeterConfigurationName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a Connection Setting registration for a Bot Service
+ /// Gets the specified Network Security Perimeter configuration associated with the Bot.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}
///
/// -
/// Operation Id
- /// BotConnection_Get
+ /// NetworkSecurityPerimeterConfigurations_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the Bot Service Connection Setting resource.
+ /// The resource association Name. Composed of parameter guid and association name.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetBotConnectionSetting(string connectionName, CancellationToken cancellationToken = default)
+ public virtual Response GetNetworkSecurityPerimeterConfiguration(string networkSecurityPerimeterConfigurationName, CancellationToken cancellationToken = default)
{
- return GetBotConnectionSettings().Get(connectionName, cancellationToken);
+ return GetNetworkSecurityPerimeterConfigurations().Get(networkSecurityPerimeterConfigurationName, cancellationToken);
}
/// Gets a collection of BotServicePrivateEndpointConnectionResources in the Bot.
@@ -257,7 +326,7 @@ public virtual BotServicePrivateEndpointConnectionCollection GetBotServicePrivat
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -288,7 +357,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -319,7 +388,7 @@ public virtual Response GetBotServi
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -359,7 +428,7 @@ public virtual async Task> GetAsync(CancellationToken canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -399,7 +468,7 @@ public virtual Response Get(CancellationToken cancellationToken = d
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -443,7 +512,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -487,7 +556,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -529,7 +598,7 @@ public virtual async Task> UpdateAsync(BotData data, Cance
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -571,7 +640,7 @@ public virtual Response Update(BotData data, CancellationToken canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -610,7 +679,7 @@ public virtual async Task> GetBotChannelWithRegener
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -649,7 +718,7 @@ public virtual Response GetBotChannelWithRegenerateKeys(Rege
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -683,7 +752,7 @@ public virtual async Task> CreateEmailSi
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -717,7 +786,7 @@ public virtual Response CreateEmailSignInUri(Canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -742,7 +811,7 @@ public virtual AsyncPageable GetPrivateLinkRe
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
@@ -767,7 +836,7 @@ public virtual Pageable GetPrivateLinkResourc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -829,7 +898,7 @@ public virtual async Task> AddTagAsync(string key, string
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -891,7 +960,7 @@ public virtual Response AddTag(string key, string value, Cancellati
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -948,7 +1017,7 @@ public virtual async Task> SetTagsAsync(IDictionary
///
-
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -1005,7 +1074,7 @@ public virtual Response SetTags(IDictionary tags, C
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -1065,7 +1134,7 @@ public virtual async Task> RemoveTagAsync(string key, Canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs
index ff1151487764..6cc6f4838784 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -115,7 +115,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateO
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -269,7 +269,8 @@ public virtual Response Get(string
public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new BotServicePrivateEndpointConnectionResource(Client, BotServicePrivateEndpointConnectionData.DeserializeBotServicePrivateEndpointConnectionData(e)), _botServicePrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "BotServicePrivateEndpointConnectionCollection.GetAll", "value", null, cancellationToken);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BotServicePrivateEndpointConnectionResource(Client, BotServicePrivateEndpointConnectionData.DeserializeBotServicePrivateEndpointConnectionData(e)), _botServicePrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "BotServicePrivateEndpointConnectionCollection.GetAll", "value", "nextLink", cancellationToken);
}
///
@@ -285,7 +286,7 @@ public virtual AsyncPageable GetAll
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -298,7 +299,8 @@ public virtual AsyncPageable GetAll
public virtual Pageable GetAll(CancellationToken cancellationToken = default)
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => new BotServicePrivateEndpointConnectionResource(Client, BotServicePrivateEndpointConnectionData.DeserializeBotServicePrivateEndpointConnectionData(e)), _botServicePrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "BotServicePrivateEndpointConnectionCollection.GetAll", "value", null, cancellationToken);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _botServicePrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BotServicePrivateEndpointConnectionResource(Client, BotServicePrivateEndpointConnectionData.DeserializeBotServicePrivateEndpointConnectionData(e)), _botServicePrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "BotServicePrivateEndpointConnectionCollection.GetAll", "value", "nextLink", cancellationToken);
}
///
@@ -314,7 +316,7 @@ public virtual Pageable GetAll(Canc
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -357,7 +359,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -400,7 +402,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -445,7 +447,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs
index f401e9c22ca5..e0de73f7d6aa 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/BotServicePrivateEndpointConnectionResource.cs
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -181,7 +181,7 @@ public virtual Response Get(Cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -317,7 +317,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/BotServiceExtensions.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/BotServiceExtensions.cs
index b14ede76d989..9f54964cc38b 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/BotServiceExtensions.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/BotServiceExtensions.cs
@@ -57,6 +57,25 @@ public static BotResource GetBotResource(this ArmClient client, ResourceIdentifi
return GetMockableBotServiceArmClient(client).GetBotResource(id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
-
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static BotConnectionSettingResource GetBotConnectionSettingResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableBotServiceArmClient(client).GetBotConnectionSettingResource(id);
+ }
+
///
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
/// You can use to create a from its components.
@@ -77,22 +96,22 @@ public static BotChannelResource GetBotChannelResource(this ArmClient client, Re
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static BotConnectionSettingResource GetBotConnectionSettingResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NetworkSecurityPerimeterConfigurationResource GetNetworkSecurityPerimeterConfigurationResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableBotServiceArmClient(client).GetBotConnectionSettingResource(id);
+ return GetMockableBotServiceArmClient(client).GetNetworkSecurityPerimeterConfigurationResource(id);
}
///
@@ -144,7 +163,7 @@ public static BotCollection GetBots(this ResourceGroupResource resourceGroupReso
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -182,7 +201,7 @@ public static async Task> GetBotAsync(this ResourceGroupRe
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -220,7 +239,7 @@ public static Response GetBot(this ResourceGroupResource resourceGr
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -256,7 +275,7 @@ public static AsyncPageable GetBotsAsync(this SubscriptionResource
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -280,201 +299,201 @@ public static Pageable GetBots(this SubscriptionResource subscripti
}
///
- /// Lists the available Service Providers for creating Connection Settings
+ /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
///
/// -
/// Operation Id
- /// BotConnection_ListServiceProviders
+ /// HostSettings_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
- ///
- /// -
- /// Resource
- ///
+ /// 2023-09-15-preview
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetBotConnectionServiceProvidersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ public static async Task> GetBotServiceHostSettingsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotConnectionServiceProvidersAsync(cancellationToken);
+ return await GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceHostSettingsAsync(cancellationToken).ConfigureAwait(false);
}
///
- /// Lists the available Service Providers for creating Connection Settings
+ /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
///
/// -
/// Operation Id
- /// BotConnection_ListServiceProviders
+ /// HostSettings_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
- ///
- /// -
- /// Resource
- ///
+ /// 2023-09-15-preview
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetBotConnectionServiceProviders(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ public static Response GetBotServiceHostSettings(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotConnectionServiceProviders(cancellationToken);
+ return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceHostSettings(cancellationToken);
}
///
- /// Lists the QnA Maker endpoint keys
+ /// Lists the available Service Providers for creating Connection Settings
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders
///
/// -
/// Operation Id
- /// QnAMakerEndpointKeys_Get
+ /// BotConnection_ListServiceProviders
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
+ ///
+ /// -
+ /// Resource
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The request body parameters to provide for the check name availability request.
/// The cancellation token to use.
- /// or is null.
- public static async Task> GetBotServiceQnAMakerEndpointKeyAsync(this SubscriptionResource subscriptionResource, GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetBotConnectionServiceProvidersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return await GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceQnAMakerEndpointKeyAsync(content, cancellationToken).ConfigureAwait(false);
+ return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotConnectionServiceProvidersAsync(cancellationToken);
}
///
- /// Lists the QnA Maker endpoint keys
+ /// Lists the available Service Providers for creating Connection Settings
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders
///
/// -
/// Operation Id
- /// QnAMakerEndpointKeys_Get
+ /// BotConnection_ListServiceProviders
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
+ ///
+ /// -
+ /// Resource
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The request body parameters to provide for the check name availability request.
/// The cancellation token to use.
- /// or is null.
- public static Response GetBotServiceQnAMakerEndpointKey(this SubscriptionResource subscriptionResource, GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetBotConnectionServiceProviders(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceQnAMakerEndpointKey(content, cancellationToken);
+ return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotConnectionServiceProviders(cancellationToken);
}
///
- /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
+ /// Lists the QnA Maker endpoint keys
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys
///
/// -
/// Operation Id
- /// HostSettings_Get
+ /// QnAMakerEndpointKeys_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
+ /// The request body.
/// The cancellation token to use.
- /// is null.
- public static async Task> GetBotServiceHostSettingsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// or is null.
+ public static async Task> GetBotServiceQnAMakerEndpointKeyAsync(this SubscriptionResource subscriptionResource, GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return await GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceHostSettingsAsync(cancellationToken).ConfigureAwait(false);
+ return await GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceQnAMakerEndpointKeyAsync(content, cancellationToken).ConfigureAwait(false);
}
///
- /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
+ /// Lists the QnA Maker endpoint keys
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys
///
/// -
/// Operation Id
- /// HostSettings_Get
+ /// QnAMakerEndpointKeys_Get
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
+ /// The request body.
/// The cancellation token to use.
- /// is null.
- public static Response GetBotServiceHostSettings(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// or is null.
+ public static Response GetBotServiceQnAMakerEndpointKey(this SubscriptionResource subscriptionResource, GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceHostSettings(cancellationToken);
+ return GetMockableBotServiceSubscriptionResource(subscriptionResource).GetBotServiceQnAMakerEndpointKey(content, cancellationToken);
}
///
@@ -490,7 +509,7 @@ public static Response GetBotServiceHostSettings(t
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -503,7 +522,7 @@ public static Response GetBotServiceHostSettings(t
///
///
/// The instance the method will execute against.
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// or is null.
public static async Task> CheckBotServiceNameAvailabilityAsync(this TenantResource tenantResource, BotServiceNameAvailabilityContent content, CancellationToken cancellationToken = default)
@@ -526,7 +545,7 @@ public static async Task> CheckBotSer
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -539,7 +558,7 @@ public static async Task> CheckBotSer
///
///
/// The instance the method will execute against.
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// or is null.
public static Response CheckBotServiceNameAvailability(this TenantResource tenantResource, BotServiceNameAvailabilityContent content, CancellationToken cancellationToken = default)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceArmClient.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceArmClient.cs
index ca1e2010df63..308cc33a832d 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceArmClient.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceArmClient.cs
@@ -46,6 +46,18 @@ public virtual BotResource GetBotResource(ResourceIdentifier id)
return new BotResource(Client, id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual BotConnectionSettingResource GetBotConnectionSettingResource(ResourceIdentifier id)
+ {
+ BotConnectionSettingResource.ValidateResourceId(id);
+ return new BotConnectionSettingResource(Client, id);
+ }
+
///
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
/// You can use to create a from its components.
@@ -59,15 +71,15 @@ public virtual BotChannelResource GetBotChannelResource(ResourceIdentifier id)
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual BotConnectionSettingResource GetBotConnectionSettingResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NetworkSecurityPerimeterConfigurationResource GetNetworkSecurityPerimeterConfigurationResource(ResourceIdentifier id)
{
- BotConnectionSettingResource.ValidateResourceId(id);
- return new BotConnectionSettingResource(Client, id);
+ NetworkSecurityPerimeterConfigurationResource.ValidateResourceId(id);
+ return new NetworkSecurityPerimeterConfigurationResource(Client, id);
}
///
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceResourceGroupResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceResourceGroupResource.cs
index b3cfa9bccaef..f231b98eb0c6 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceResourceGroupResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceResourceGroupResource.cs
@@ -53,7 +53,7 @@ public virtual BotCollection GetBots()
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -84,7 +84,7 @@ public virtual async Task> GetBotAsync(string resourceName
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceSubscriptionResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceSubscriptionResource.cs
index ec75a63e4927..0269d683dca3 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceSubscriptionResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceSubscriptionResource.cs
@@ -20,12 +20,12 @@ public partial class MockableBotServiceSubscriptionResource : ArmResource
{
private ClientDiagnostics _botClientDiagnostics;
private BotsRestOperations _botRestClient;
+ private ClientDiagnostics _hostSettingsClientDiagnostics;
+ private HostSettingsRestOperations _hostSettingsRestClient;
private ClientDiagnostics _botConnectionSettingBotConnectionClientDiagnostics;
private BotConnectionRestOperations _botConnectionSettingBotConnectionRestClient;
private ClientDiagnostics _qnAMakerEndpointKeysClientDiagnostics;
private QnAMakerEndpointKeysRestOperations _qnAMakerEndpointKeysRestClient;
- private ClientDiagnostics _hostSettingsClientDiagnostics;
- private HostSettingsRestOperations _hostSettingsRestClient;
/// Initializes a new instance of the class for mocking.
protected MockableBotServiceSubscriptionResource()
@@ -41,12 +41,12 @@ internal MockableBotServiceSubscriptionResource(ArmClient client, ResourceIdenti
private ClientDiagnostics BotClientDiagnostics => _botClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.BotService", BotResource.ResourceType.Namespace, Diagnostics);
private BotsRestOperations BotRestClient => _botRestClient ??= new BotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(BotResource.ResourceType));
+ private ClientDiagnostics HostSettingsClientDiagnostics => _hostSettingsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.BotService", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private HostSettingsRestOperations HostSettingsRestClient => _hostSettingsRestClient ??= new HostSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private ClientDiagnostics BotConnectionSettingBotConnectionClientDiagnostics => _botConnectionSettingBotConnectionClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.BotService", BotConnectionSettingResource.ResourceType.Namespace, Diagnostics);
private BotConnectionRestOperations BotConnectionSettingBotConnectionRestClient => _botConnectionSettingBotConnectionRestClient ??= new BotConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(BotConnectionSettingResource.ResourceType));
private ClientDiagnostics QnAMakerEndpointKeysClientDiagnostics => _qnAMakerEndpointKeysClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.BotService", ProviderConstants.DefaultProviderNamespace, Diagnostics);
private QnAMakerEndpointKeysRestOperations QnAMakerEndpointKeysRestClient => _qnAMakerEndpointKeysRestClient ??= new QnAMakerEndpointKeysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
- private ClientDiagnostics HostSettingsClientDiagnostics => _hostSettingsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.BotService", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- private HostSettingsRestOperations HostSettingsRestClient => _hostSettingsRestClient ??= new HostSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private string GetApiVersionOrNull(ResourceType resourceType)
{
@@ -67,7 +67,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -97,7 +97,7 @@ public virtual AsyncPageable GetBotsAsync(CancellationToken cancell
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -114,6 +114,74 @@ public virtual Pageable GetBots(CancellationToken cancellationToken
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BotResource(Client, BotData.DeserializeBotData(e)), BotClientDiagnostics, Pipeline, "MockableBotServiceSubscriptionResource.GetBots", "value", "nextLink", cancellationToken);
}
+ ///
+ /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
+ ///
+ /// -
+ /// Operation Id
+ /// HostSettings_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-15-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetBotServiceHostSettingsAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = HostSettingsClientDiagnostics.CreateScope("MockableBotServiceSubscriptionResource.GetBotServiceHostSettings");
+ scope.Start();
+ try
+ {
+ var response = await HostSettingsRestClient.GetAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
+ ///
+ /// -
+ /// Operation Id
+ /// HostSettings_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-09-15-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response GetBotServiceHostSettings(CancellationToken cancellationToken = default)
+ {
+ using var scope = HostSettingsClientDiagnostics.CreateScope("MockableBotServiceSubscriptionResource.GetBotServiceHostSettings");
+ scope.Start();
+ try
+ {
+ var response = HostSettingsRestClient.Get(Id.SubscriptionId, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
///
/// Lists the available Service Providers for creating Connection Settings
///
@@ -127,7 +195,7 @@ public virtual Pageable GetBots(CancellationToken cancellationToken
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -156,7 +224,7 @@ public virtual AsyncPageable GetBotConnectionServiceProvider
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -185,11 +253,11 @@ public virtual Pageable GetBotConnectionServiceProviders(Can
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// is null.
public virtual async Task> GetBotServiceQnAMakerEndpointKeyAsync(GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
@@ -223,11 +291,11 @@ public virtual async Task> GetB
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
///
///
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// is null.
public virtual Response GetBotServiceQnAMakerEndpointKey(GetBotServiceQnAMakerEndpointKeyContent content, CancellationToken cancellationToken = default)
@@ -247,73 +315,5 @@ public virtual Response GetBotServiceQnA
throw;
}
}
-
- ///
- /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
- ///
- /// -
- /// Operation Id
- /// HostSettings_Get
- ///
- /// -
- /// Default Api Version
- /// 2022-09-15
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual async Task> GetBotServiceHostSettingsAsync(CancellationToken cancellationToken = default)
- {
- using var scope = HostSettingsClientDiagnostics.CreateScope("MockableBotServiceSubscriptionResource.GetBotServiceHostSettings");
- scope.Start();
- try
- {
- var response = await HostSettingsRestClient.GetAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get per subscription settings needed to host bot in compute resource such as Azure App Service
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings
- ///
- /// -
- /// Operation Id
- /// HostSettings_Get
- ///
- /// -
- /// Default Api Version
- /// 2022-09-15
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual Response GetBotServiceHostSettings(CancellationToken cancellationToken = default)
- {
- using var scope = HostSettingsClientDiagnostics.CreateScope("MockableBotServiceSubscriptionResource.GetBotServiceHostSettings");
- scope.Start();
- try
- {
- var response = HostSettingsRestClient.Get(Id.SubscriptionId, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceTenantResource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceTenantResource.cs
index 3f3e81f37315..e39f76d9d93c 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceTenantResource.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Extensions/MockableBotServiceTenantResource.cs
@@ -54,7 +54,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -62,7 +62,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
///
///
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// is null.
public virtual async Task> CheckBotServiceNameAvailabilityAsync(BotServiceNameAvailabilityContent content, CancellationToken cancellationToken = default)
@@ -96,7 +96,7 @@ public virtual async Task> CheckBotSe
///
/// -
/// Default Api Version
- /// 2022-09-15
+ /// 2023-09-15-preview
///
/// -
/// Resource
@@ -104,7 +104,7 @@ public virtual async Task> CheckBotSe
///
///
///
- /// The request body parameters to provide for the check name availability request.
+ /// The request body.
/// The cancellation token to use.
/// is null.
public virtual Response CheckBotServiceNameAvailability(BotServiceNameAvailabilityContent content, CancellationToken cancellationToken = default)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/NetworkSecurityPerimeterConfigurationOperationSource.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/NetworkSecurityPerimeterConfigurationOperationSource.cs
new file mode 100644
index 000000000000..c70ecf7983ea
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/LongRunningOperation/NetworkSecurityPerimeterConfigurationOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService
+{
+ internal class NetworkSecurityPerimeterConfigurationOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NetworkSecurityPerimeterConfigurationOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NetworkSecurityPerimeterConfigurationResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerBotServiceContext.Default);
+ return new NetworkSecurityPerimeterConfigurationResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerBotServiceContext.Default);
+ return await Task.FromResult(new NetworkSecurityPerimeterConfigurationResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AccessMode.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AccessMode.cs
new file mode 100644
index 000000000000..f5889082be41
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AccessMode.cs
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ /// Access Mode of the resource association.
+ public readonly partial struct AccessMode : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AccessMode(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string EnforcedValue = "Enforced";
+ private const string LearningValue = "Learning";
+ private const string AuditValue = "Audit";
+
+ /// Enforced.
+ public static AccessMode Enforced { get; } = new AccessMode(EnforcedValue);
+ /// Learning.
+ public static AccessMode Learning { get; } = new AccessMode(LearningValue);
+ /// Audit.
+ public static AccessMode Audit { get; } = new AccessMode(AuditValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AccessMode left, AccessMode right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AccessMode left, AccessMode right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AccessMode(string value) => new AccessMode(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AccessMode other && Equals(other);
+ ///
+ public bool Equals(AccessMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AzureResourceManagerBotServiceContext.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AzureResourceManagerBotServiceContext.cs
index a70bf1a41d75..04a0f66569a1 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AzureResourceManagerBotServiceContext.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/AzureResourceManagerBotServiceContext.cs
@@ -70,8 +70,20 @@ namespace Azure.ResourceManager.BotService
[ModelReaderWriterBuildable(typeof(M365Extensions))]
[ModelReaderWriterBuildable(typeof(MsTeamsChannel))]
[ModelReaderWriterBuildable(typeof(MsTeamsChannelProperties))]
+ [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeter))]
+ [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterConfigurationData))]
+ [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterConfigurationList))]
+ [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterConfigurationProperties))]
+ [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterConfigurationResource))]
+ [ModelReaderWriterBuildable(typeof(NspAccessRule))]
+ [ModelReaderWriterBuildable(typeof(NspAccessRuleProperties))]
[ModelReaderWriterBuildable(typeof(Omnichannel))]
[ModelReaderWriterBuildable(typeof(OutlookChannel))]
+ [ModelReaderWriterBuildable(typeof(Profile))]
+ [ModelReaderWriterBuildable(typeof(ProvisioningIssue))]
+ [ModelReaderWriterBuildable(typeof(ProvisioningIssueProperties))]
+ [ModelReaderWriterBuildable(typeof(ResourceAssociation))]
+ [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(SearchAssistant))]
[ModelReaderWriterBuildable(typeof(ServiceProviderParameterMetadata))]
[ModelReaderWriterBuildable(typeof(ServiceProviderParameterMetadataConstraints))]
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.Serialization.cs
index 5fc92277fb1a..3f5e8613c157 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotChannelGetWithKeysResult.Serialization.cs
@@ -74,15 +74,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
if (Optional.IsDefined(Kind))
{
- if (Kind != null)
- {
- writer.WritePropertyName("kind"u8);
- writer.WriteStringValue(Kind.Value.ToString());
- }
- else
- {
- writer.WriteNull("kind");
- }
+ writer.WritePropertyName("kind"u8);
+ writer.WriteStringValue(Kind.Value.ToString());
}
if (Optional.IsDefined(ETag))
{
@@ -196,7 +189,6 @@ internal static BotChannelGetWithKeysResult DeserializeBotChannelGetWithKeysResu
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
- kind = null;
continue;
}
kind = new BotServiceKind(property.Value.GetString());
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.Serialization.cs
index 5e266153cc15..026c94af52f8 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.Serialization.cs
@@ -34,6 +34,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
throw new FormatException($"The model {nameof(BotConnectionSettingProperties)} does not support writing '{format}' format.");
}
+ if (Optional.IsDefined(Id))
+ {
+ writer.WritePropertyName("id"u8);
+ writer.WriteStringValue(Id);
+ }
+ if (Optional.IsDefined(Name))
+ {
+ writer.WritePropertyName("name"u8);
+ writer.WriteStringValue(Name);
+ }
if (Optional.IsDefined(ClientId))
{
writer.WritePropertyName("clientId"u8);
@@ -116,6 +126,8 @@ internal static BotConnectionSettingProperties DeserializeBotConnectionSettingPr
{
return null;
}
+ string id = default;
+ string name = default;
string clientId = default;
string settingId = default;
string clientSecret = default;
@@ -128,6 +140,16 @@ internal static BotConnectionSettingProperties DeserializeBotConnectionSettingPr
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
+ if (property.NameEquals("id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
if (property.NameEquals("clientId"u8))
{
clientId = property.Value.GetString();
@@ -184,6 +206,8 @@ internal static BotConnectionSettingProperties DeserializeBotConnectionSettingPr
}
serializedAdditionalRawData = rawDataDictionary;
return new BotConnectionSettingProperties(
+ id,
+ name,
clientId,
settingId,
clientSecret,
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs
index 7e817b59db86..62ae66b0d931 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotConnectionSettingProperties.cs
@@ -52,6 +52,8 @@ public BotConnectionSettingProperties()
}
/// Initializes a new instance of .
+ /// Id of the Connection Setting.
+ /// Name of 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.
@@ -61,8 +63,10 @@ public BotConnectionSettingProperties()
/// Service Provider Parameters associated with the Connection Setting.
/// Provisioning state of the resource.
/// Keeps track of any properties unknown to the library.
- internal BotConnectionSettingProperties(string clientId, string settingId, string clientSecret, string scopes, string serviceProviderId, string serviceProviderDisplayName, IList parameters, string provisioningState, IDictionary serializedAdditionalRawData)
+ internal BotConnectionSettingProperties(string id, string name, string clientId, string settingId, string clientSecret, string scopes, string serviceProviderId, string serviceProviderDisplayName, IList parameters, string provisioningState, IDictionary serializedAdditionalRawData)
{
+ Id = id;
+ Name = name;
ClientId = clientId;
SettingId = settingId;
ClientSecret = clientSecret;
@@ -74,6 +78,10 @@ internal BotConnectionSettingProperties(string clientId, string settingId, strin
_serializedAdditionalRawData = serializedAdditionalRawData;
}
+ /// Id of the Connection Setting.
+ public string Id { get; set; }
+ /// Name of 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/BotProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.Serialization.cs
index e8f1c705de27..d5362998e4c7 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
@@ -226,6 +226,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (options.Format != "W" && Optional.IsCollectionDefined(NetworkSecurityPerimeterConfigurations))
+ {
+ writer.WritePropertyName("networkSecurityPerimeterConfigurations"u8);
+ writer.WriteStartArray();
+ foreach (var item in NetworkSecurityPerimeterConfigurations)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
if (Optional.IsDefined(OpenWithHint))
{
writer.WritePropertyName("openWithHint"u8);
@@ -314,6 +324,7 @@ internal static BotProperties DeserializeBotProperties(JsonElement element, Mode
string schemaTransformationVersion = default;
ResourceIdentifier storageResourceId = default;
IReadOnlyList privateEndpointConnections = default;
+ IReadOnlyList networkSecurityPerimeterConfigurations = default;
string openWithHint = default;
string appPasswordHint = default;
string provisioningState = default;
@@ -589,6 +600,20 @@ internal static BotProperties DeserializeBotProperties(JsonElement element, Mode
privateEndpointConnections = array;
continue;
}
+ if (property.NameEquals("networkSecurityPerimeterConfigurations"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(NetworkSecurityPerimeterConfigurationData.DeserializeNetworkSecurityPerimeterConfigurationData(item, options));
+ }
+ networkSecurityPerimeterConfigurations = array;
+ continue;
+ }
if (property.NameEquals("openWithHint"u8))
{
openWithHint = property.Value.GetString();
@@ -647,6 +672,7 @@ internal static BotProperties DeserializeBotProperties(JsonElement element, Mode
schemaTransformationVersion,
storageResourceId,
privateEndpointConnections ?? new ChangeTrackingList(),
+ networkSecurityPerimeterConfigurations ?? new ChangeTrackingList(),
openWithHint,
appPasswordHint,
provisioningState,
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.cs
index a30913a988b1..e14ca9512c5a 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotProperties.cs
@@ -65,6 +65,7 @@ public BotProperties(string displayName, Uri endpoint, string msaAppId)
EnabledChannels = new ChangeTrackingList();
LuisAppIds = new ChangeTrackingList();
PrivateEndpointConnections = new ChangeTrackingList();
+ NetworkSecurityPerimeterConfigurations = new ChangeTrackingList();
}
/// Initializes a new instance of .
@@ -99,12 +100,13 @@ public BotProperties(string displayName, Uri endpoint, string msaAppId)
/// The channel schema transformation version for the bot.
/// The storage resourceId for the bot.
/// List of Private Endpoint Connections configured for the bot.
+ /// List of Network Security Perimeter configurations for the bot.
/// The hint to browser (e.g. protocol handler) on how to open the bot for authoring.
/// The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.
/// Provisioning state of the resource.
/// Publishing credentials of the resource.
/// Keeps track of any properties unknown to the library.
- internal BotProperties(string displayName, string description, Uri iconUri, Uri endpoint, string endpointVersion, IDictionary allSettings, IDictionary parameters, Uri manifestUri, BotMsaAppType? msaAppType, string msaAppId, string msaAppTenantId, ResourceIdentifier msaAppMSIResourceId, IReadOnlyList configuredChannels, IReadOnlyList enabledChannels, string developerAppInsightKey, string developerAppInsightsApiKey, string developerAppInsightsApplicationId, IList luisAppIds, string luisKey, bool? isCmekEnabled, Uri cmekKeyVaultUri, string cmekEncryptionStatus, Guid? tenantId, BotServicePublicNetworkAccess? publicNetworkAccess, bool? isStreamingSupported, bool? isDeveloperAppInsightsApiKeySet, string migrationToken, bool? isLocalAuthDisabled, string schemaTransformationVersion, ResourceIdentifier storageResourceId, IReadOnlyList privateEndpointConnections, string openWithHint, string appPasswordHint, string provisioningState, string publishingCredentials, IDictionary serializedAdditionalRawData)
+ internal BotProperties(string displayName, string description, Uri iconUri, Uri endpoint, string endpointVersion, IDictionary allSettings, IDictionary parameters, Uri manifestUri, BotMsaAppType? msaAppType, string msaAppId, string msaAppTenantId, ResourceIdentifier msaAppMSIResourceId, IReadOnlyList configuredChannels, IReadOnlyList enabledChannels, string developerAppInsightKey, string developerAppInsightsApiKey, string developerAppInsightsApplicationId, IList luisAppIds, string luisKey, bool? isCmekEnabled, Uri cmekKeyVaultUri, string cmekEncryptionStatus, Guid? tenantId, BotServicePublicNetworkAccess? publicNetworkAccess, bool? isStreamingSupported, bool? isDeveloperAppInsightsApiKeySet, string migrationToken, bool? isLocalAuthDisabled, string schemaTransformationVersion, ResourceIdentifier storageResourceId, IReadOnlyList privateEndpointConnections, IReadOnlyList networkSecurityPerimeterConfigurations, string openWithHint, string appPasswordHint, string provisioningState, string publishingCredentials, IDictionary serializedAdditionalRawData)
{
DisplayName = displayName;
Description = description;
@@ -137,6 +139,7 @@ internal BotProperties(string displayName, string description, Uri iconUri, Uri
SchemaTransformationVersion = schemaTransformationVersion;
StorageResourceId = storageResourceId;
PrivateEndpointConnections = privateEndpointConnections;
+ NetworkSecurityPerimeterConfigurations = networkSecurityPerimeterConfigurations;
OpenWithHint = openWithHint;
AppPasswordHint = appPasswordHint;
ProvisioningState = provisioningState;
@@ -211,6 +214,8 @@ internal BotProperties()
public ResourceIdentifier StorageResourceId { get; set; }
/// List of Private Endpoint Connections configured for the bot.
public IReadOnlyList PrivateEndpointConnections { get; }
+ /// List of Network Security Perimeter configurations for the bot.
+ public IReadOnlyList NetworkSecurityPerimeterConfigurations { get; }
/// The hint to browser (e.g. protocol handler) on how to open the bot for authoring.
public string OpenWithHint { get; set; }
/// The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.Serialization.cs
index 2bf3bc551407..9e0708bbdd28 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.Serialization.cs
@@ -34,12 +34,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
throw new FormatException($"The model {nameof(BotResponseList)} does not support writing '{format}' format.");
}
- if (Optional.IsDefined(NextLink))
- {
- writer.WritePropertyName("nextLink"u8);
- writer.WriteStringValue(NextLink);
- }
- if (options.Format != "W" && Optional.IsCollectionDefined(Value))
+ if (options.Format != "W")
{
writer.WritePropertyName("value"u8);
writer.WriteStartArray();
@@ -49,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink.AbsoluteUri);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -86,23 +86,14 @@ internal static BotResponseList DeserializeBotResponseList(JsonElement element,
{
return null;
}
- string nextLink = default;
IReadOnlyList value = default;
+ Uri nextLink = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("nextLink"u8))
- {
- nextLink = property.Value.GetString();
- continue;
- }
if (property.NameEquals("value"u8))
{
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
@@ -111,13 +102,22 @@ internal static BotResponseList DeserializeBotResponseList(JsonElement element,
value = array;
continue;
}
+ if (property.NameEquals("nextLink"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ nextLink = new Uri(property.Value.GetString());
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new BotResponseList(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new BotResponseList(value, nextLink, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs
index 06a2d1f5e482..c55df1cb3047 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotResponseList.cs
@@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
+using System.Linq;
namespace Azure.ResourceManager.BotService.Models
{
@@ -46,25 +47,31 @@ internal partial class BotResponseList
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- internal BotResponseList()
+ /// The Bot items on this page.
+ internal BotResponseList(IEnumerable value)
{
- Value = new ChangeTrackingList();
+ Value = value.ToList();
}
/// Initializes a new instance of .
- /// The link used to get the next page of bot service resources.
- /// Gets the list of bot service results and their properties.
+ /// The Bot items on this page.
+ /// The link to the next page of items.
/// Keeps track of any properties unknown to the library.
- internal BotResponseList(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData)
+ internal BotResponseList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData)
{
- NextLink = nextLink;
Value = value;
+ NextLink = nextLink;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// The link used to get the next page of bot service resources.
- public string NextLink { get; }
- /// Gets the list of bot service results and their properties.
+ /// Initializes a new instance of for deserialization.
+ internal BotResponseList()
+ {
+ }
+
+ /// The Bot items on this page.
public IReadOnlyList Value { get; }
+ /// The link to the next page of items.
+ public Uri NextLink { get; }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.Serialization.cs
index 0e583e944c2f..74bf70e0f7e8 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.Serialization.cs
@@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -82,6 +87,7 @@ internal static BotServicePrivateEndpointConnectionListResult DeserializeBotServ
return null;
}
IReadOnlyList value = default;
+ string nextLink = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -100,13 +106,18 @@ internal static BotServicePrivateEndpointConnectionListResult DeserializeBotServ
value = array;
continue;
}
+ if (property.NameEquals("nextLink"u8))
+ {
+ nextLink = property.Value.GetString();
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new BotServicePrivateEndpointConnectionListResult(value ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new BotServicePrivateEndpointConnectionListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs
index c9090a927ebf..5b4de789c274 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateEndpointConnectionListResult.cs
@@ -53,14 +53,18 @@ internal BotServicePrivateEndpointConnectionListResult()
/// Initializes a new instance of .
/// Array of private endpoint connections.
+ /// The link used to get the next page of private endpoint connections.
/// Keeps track of any properties unknown to the library.
- internal BotServicePrivateEndpointConnectionListResult(IReadOnlyList value, IDictionary serializedAdditionalRawData)
+ internal BotServicePrivateEndpointConnectionListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData)
{
Value = value;
+ NextLink = nextLink;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// Array of private endpoint connections.
public IReadOnlyList Value { get; }
+ /// The link used to get the next page of private endpoint connections.
+ public string NextLink { get; }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs
index 14ff6c65f59b..51e1f8fe9c7c 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePrivateLinkResourceData.cs
@@ -47,13 +47,6 @@ public partial class BotServicePrivateLinkResourceData : ResourceData
///
private IDictionary _serializedAdditionalRawData;
- /// Initializes a new instance of .
- public BotServicePrivateLinkResourceData()
- {
- RequiredMembers = new ChangeTrackingList();
- RequiredZoneNames = new ChangeTrackingList();
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -75,7 +68,5 @@ internal BotServicePrivateLinkResourceData(ResourceIdentifier id, string name, R
public string GroupId { get; }
/// The private link resource required member names.
public IReadOnlyList RequiredMembers { get; }
- /// The private link resource Private link DNS zone name.
- public IList RequiredZoneNames { get; }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePublicNetworkAccess.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePublicNetworkAccess.cs
index 26b2b4a2bd65..632ddc9a8884 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePublicNetworkAccess.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/BotServicePublicNetworkAccess.cs
@@ -24,11 +24,14 @@ public BotServicePublicNetworkAccess(string value)
private const string EnabledValue = "Enabled";
private const string DisabledValue = "Disabled";
+ private const string SecuredByPerimeterValue = "SecuredByPerimeter";
/// Enabled.
public static BotServicePublicNetworkAccess Enabled { get; } = new BotServicePublicNetworkAccess(EnabledValue);
/// Disabled.
public static BotServicePublicNetworkAccess Disabled { get; } = new BotServicePublicNetworkAccess(DisabledValue);
+ /// SecuredByPerimeter.
+ public static BotServicePublicNetworkAccess SecuredByPerimeter { get; } = new BotServicePublicNetworkAccess(SecuredByPerimeterValue);
/// Determines if two values are the same.
public static bool operator ==(BotServicePublicNetworkAccess left, BotServicePublicNetworkAccess right) => left.Equals(right);
/// Determines if two values are not the same.
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.Serialization.cs
index ee2e2da3b6c6..243eefa60987 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.Serialization.cs
@@ -34,12 +34,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
throw new FormatException($"The model {nameof(ChannelResponseList)} does not support writing '{format}' format.");
}
- if (Optional.IsDefined(NextLink))
- {
- writer.WritePropertyName("nextLink"u8);
- writer.WriteStringValue(NextLink);
- }
- if (options.Format != "W" && Optional.IsCollectionDefined(Value))
+ if (options.Format != "W")
{
writer.WritePropertyName("value"u8);
writer.WriteStartArray();
@@ -49,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink.AbsoluteUri);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -86,23 +86,14 @@ internal static ChannelResponseList DeserializeChannelResponseList(JsonElement e
{
return null;
}
- string nextLink = default;
IReadOnlyList value = default;
+ Uri nextLink = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("nextLink"u8))
- {
- nextLink = property.Value.GetString();
- continue;
- }
if (property.NameEquals("value"u8))
{
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
@@ -111,13 +102,22 @@ internal static ChannelResponseList DeserializeChannelResponseList(JsonElement e
value = array;
continue;
}
+ if (property.NameEquals("nextLink"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ nextLink = new Uri(property.Value.GetString());
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new ChannelResponseList(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new ChannelResponseList(value, nextLink, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs
index 1792dfe22432..61b19e63363d 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ChannelResponseList.cs
@@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
+using System.Linq;
namespace Azure.ResourceManager.BotService.Models
{
@@ -46,25 +47,31 @@ internal partial class ChannelResponseList
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- internal ChannelResponseList()
+ /// The BotChannel items on this page.
+ internal ChannelResponseList(IEnumerable value)
{
- Value = new ChangeTrackingList();
+ Value = value.ToList();
}
/// Initializes a new instance of .
- /// The link used to get the next page of bot service channel resources.
- /// Gets the list of bot service channel results and their properties.
+ /// The BotChannel items on this page.
+ /// The link to the next page of items.
/// Keeps track of any properties unknown to the library.
- internal ChannelResponseList(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData)
+ internal ChannelResponseList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData)
{
- NextLink = nextLink;
Value = value;
+ NextLink = nextLink;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// The link used to get the next page of bot service channel resources.
- public string NextLink { get; }
- /// Gets the list of bot service channel results and their properties.
+ /// Initializes a new instance of for deserialization.
+ internal ChannelResponseList()
+ {
+ }
+
+ /// The BotChannel items on this page.
public IReadOnlyList Value { get; }
+ /// The link to the next page of items.
+ public Uri NextLink { get; }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.Serialization.cs
index 0ecf5db1ac8d..f4dc009d34bb 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.Serialization.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.Serialization.cs
@@ -34,12 +34,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
throw new FormatException($"The model {nameof(ConnectionSettingResponseList)} does not support writing '{format}' format.");
}
- if (Optional.IsDefined(NextLink))
- {
- writer.WritePropertyName("nextLink"u8);
- writer.WriteStringValue(NextLink);
- }
- if (options.Format != "W" && Optional.IsCollectionDefined(Value))
+ if (options.Format != "W")
{
writer.WritePropertyName("value"u8);
writer.WriteStartArray();
@@ -49,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WriteEndArray();
}
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink.AbsoluteUri);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -86,23 +86,14 @@ internal static ConnectionSettingResponseList DeserializeConnectionSettingRespon
{
return null;
}
- string nextLink = default;
IReadOnlyList value = default;
+ Uri nextLink = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("nextLink"u8))
- {
- nextLink = property.Value.GetString();
- continue;
- }
if (property.NameEquals("value"u8))
{
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
@@ -111,13 +102,22 @@ internal static ConnectionSettingResponseList DeserializeConnectionSettingRespon
value = array;
continue;
}
+ if (property.NameEquals("nextLink"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ nextLink = new Uri(property.Value.GetString());
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new ConnectionSettingResponseList(nextLink, value ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ return new ConnectionSettingResponseList(value, nextLink, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs
index 874b7560598e..3f78bf4ea8f2 100644
--- a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/ConnectionSettingResponseList.cs
@@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
+using System.Linq;
namespace Azure.ResourceManager.BotService.Models
{
@@ -46,25 +47,31 @@ internal partial class ConnectionSettingResponseList
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- internal ConnectionSettingResponseList()
+ /// The ConnectionSetting items on this page.
+ internal ConnectionSettingResponseList(IEnumerable value)
{
- Value = new ChangeTrackingList();
+ Value = value.ToList();
}
/// Initializes a new instance of .
- /// The link used to get the next page of bot service connection setting resources.
- /// Gets the list of bot service connection settings and their properties.
+ /// The ConnectionSetting items on this page.
+ /// The link to the next page of items.
/// Keeps track of any properties unknown to the library.
- internal ConnectionSettingResponseList(string nextLink, IReadOnlyList value, IDictionary serializedAdditionalRawData)
+ internal ConnectionSettingResponseList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData)
{
- NextLink = nextLink;
Value = value;
+ NextLink = nextLink;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// The link used to get the next page of bot service connection setting resources.
- public string NextLink { get; }
- /// Gets the list of bot service connection settings and their properties.
+ /// Initializes a new instance of for deserialization.
+ internal ConnectionSettingResponseList()
+ {
+ }
+
+ /// The ConnectionSetting items on this page.
public IReadOnlyList Value { get; }
+ /// The link to the next page of items.
+ public Uri NextLink { get; }
}
}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.Serialization.cs
new file mode 100644
index 000000000000..b8242694aa8d
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.Serialization.cs
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ public partial class NetworkSecurityPerimeter : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeter)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W" && Optional.IsDefined(Id))
+ {
+ writer.WritePropertyName("id"u8);
+ writer.WriteStringValue(Id);
+ }
+ if (Optional.IsDefined(PerimeterGuid))
+ {
+ writer.WritePropertyName("perimeterGuid"u8);
+ writer.WriteStringValue(PerimeterGuid);
+ }
+ if (Optional.IsDefined(Location))
+ {
+ writer.WritePropertyName("location"u8);
+ writer.WriteStringValue(Location.Value);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ NetworkSecurityPerimeter IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeter)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeNetworkSecurityPerimeter(document.RootElement, options);
+ }
+
+ internal static NetworkSecurityPerimeter DeserializeNetworkSecurityPerimeter(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string perimeterGuid = default;
+ AzureLocation? location = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("perimeterGuid"u8))
+ {
+ perimeterGuid = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("location"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ location = new AzureLocation(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new NetworkSecurityPerimeter(id, perimeterGuid, location, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options, AzureResourceManagerBotServiceContext.Default);
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeter)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ NetworkSecurityPerimeter IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeNetworkSecurityPerimeter(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeter)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.cs
new file mode 100644
index 000000000000..970cc57de07f
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeter.cs
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ /// Information about Network Security Perimeter.
+ public partial class NetworkSecurityPerimeter
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal NetworkSecurityPerimeter()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
+ /// Guid of the Network Security Perimeter.
+ /// Location of the Network Security Perimeter.
+ /// Keeps track of any properties unknown to the library.
+ internal NetworkSecurityPerimeter(ResourceIdentifier id, string perimeterGuid, AzureLocation? location, IDictionary serializedAdditionalRawData)
+ {
+ Id = id;
+ PerimeterGuid = perimeterGuid;
+ Location = location;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
+ public ResourceIdentifier Id { get; }
+ /// Guid of the Network Security Perimeter.
+ public string PerimeterGuid { get; }
+ /// Location of the Network Security Perimeter.
+ public AzureLocation? Location { get; }
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.Serialization.cs
new file mode 100644
index 000000000000..796e2cc760fe
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.Serialization.cs
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ internal partial class NetworkSecurityPerimeterConfigurationList : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationList)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W")
+ {
+ writer.WritePropertyName("value"u8);
+ writer.WriteStartArray();
+ foreach (var item in Value)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink.AbsoluteUri);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ NetworkSecurityPerimeterConfigurationList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationList)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeNetworkSecurityPerimeterConfigurationList(document.RootElement, options);
+ }
+
+ internal static NetworkSecurityPerimeterConfigurationList DeserializeNetworkSecurityPerimeterConfigurationList(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList value = default;
+ Uri nextLink = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(NetworkSecurityPerimeterConfigurationData.DeserializeNetworkSecurityPerimeterConfigurationData(item, options));
+ }
+ value = array;
+ continue;
+ }
+ if (property.NameEquals("nextLink"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ nextLink = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new NetworkSecurityPerimeterConfigurationList(value, nextLink, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options, AzureResourceManagerBotServiceContext.Default);
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationList)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ NetworkSecurityPerimeterConfigurationList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeNetworkSecurityPerimeterConfigurationList(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationList)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs
new file mode 100644
index 000000000000..a8f708973c99
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationList.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ /// Result of the List NetworkSecurityPerimeterConfiguration operation.
+ internal partial class NetworkSecurityPerimeterConfigurationList
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The NetworkSecurityPerimeterConfiguration items on this page.
+ internal NetworkSecurityPerimeterConfigurationList(IEnumerable value)
+ {
+ Value = value.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// The NetworkSecurityPerimeterConfiguration items on this page.
+ /// The link to the next page of items.
+ /// Keeps track of any properties unknown to the library.
+ internal NetworkSecurityPerimeterConfigurationList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData)
+ {
+ Value = value;
+ NextLink = nextLink;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal NetworkSecurityPerimeterConfigurationList()
+ {
+ }
+
+ /// The NetworkSecurityPerimeterConfiguration items on this page.
+ public IReadOnlyList Value { get; }
+ /// The link to the next page of items.
+ public Uri NextLink { get; }
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.Serialization.cs
new file mode 100644
index 000000000000..8a456f80f3c1
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.Serialization.cs
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ public partial class NetworkSecurityPerimeterConfigurationProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationProperties)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(ProvisioningState))
+ {
+ writer.WritePropertyName("provisioningState"u8);
+ writer.WriteStringValue(ProvisioningState.Value.ToString());
+ }
+ if (Optional.IsCollectionDefined(ProvisioningIssues))
+ {
+ writer.WritePropertyName("provisioningIssues"u8);
+ writer.WriteStartArray();
+ foreach (var item in ProvisioningIssues)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && Optional.IsDefined(NetworkSecurityPerimeter))
+ {
+ writer.WritePropertyName("networkSecurityPerimeter"u8);
+ writer.WriteObjectValue(NetworkSecurityPerimeter, options);
+ }
+ if (options.Format != "W" && Optional.IsDefined(ResourceAssociation))
+ {
+ writer.WritePropertyName("resourceAssociation"u8);
+ writer.WriteObjectValue(ResourceAssociation, options);
+ }
+ if (options.Format != "W" && Optional.IsDefined(Profile))
+ {
+ writer.WritePropertyName("profile"u8);
+ writer.WriteObjectValue(Profile, options);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ NetworkSecurityPerimeterConfigurationProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeNetworkSecurityPerimeterConfigurationProperties(document.RootElement, options);
+ }
+
+ internal static NetworkSecurityPerimeterConfigurationProperties DeserializeNetworkSecurityPerimeterConfigurationProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ProvisioningState? provisioningState = default;
+ IList provisioningIssues = default;
+ NetworkSecurityPerimeter networkSecurityPerimeter = default;
+ ResourceAssociation resourceAssociation = default;
+ Profile profile = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("provisioningState"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new ProvisioningState(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("provisioningIssues"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(ProvisioningIssue.DeserializeProvisioningIssue(item, options));
+ }
+ provisioningIssues = array;
+ continue;
+ }
+ if (property.NameEquals("networkSecurityPerimeter"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ networkSecurityPerimeter = NetworkSecurityPerimeter.DeserializeNetworkSecurityPerimeter(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("resourceAssociation"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ resourceAssociation = ResourceAssociation.DeserializeResourceAssociation(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("profile"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ profile = Profile.DeserializeProfile(property.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new NetworkSecurityPerimeterConfigurationProperties(
+ provisioningState,
+ provisioningIssues ?? new ChangeTrackingList(),
+ networkSecurityPerimeter,
+ resourceAssociation,
+ profile,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options, AzureResourceManagerBotServiceContext.Default);
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ NetworkSecurityPerimeterConfigurationProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeNetworkSecurityPerimeterConfigurationProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(NetworkSecurityPerimeterConfigurationProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.cs
new file mode 100644
index 000000000000..3ee56f72b26c
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NetworkSecurityPerimeterConfigurationProperties.cs
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ /// Properties of Network Security Perimeter configuration.
+ public partial class NetworkSecurityPerimeterConfigurationProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public NetworkSecurityPerimeterConfigurationProperties()
+ {
+ ProvisioningIssues = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ ///
+ /// List of Provisioning Issues if any.
+ /// Information about Network Security Perimeter.
+ /// Information about resource association.
+ /// Information about profile.
+ /// Keeps track of any properties unknown to the library.
+ internal NetworkSecurityPerimeterConfigurationProperties(ProvisioningState? provisioningState, IList provisioningIssues, NetworkSecurityPerimeter networkSecurityPerimeter, ResourceAssociation resourceAssociation, Profile profile, IDictionary serializedAdditionalRawData)
+ {
+ ProvisioningState = provisioningState;
+ ProvisioningIssues = provisioningIssues;
+ NetworkSecurityPerimeter = networkSecurityPerimeter;
+ ResourceAssociation = resourceAssociation;
+ Profile = profile;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Gets or sets the provisioning state.
+ public ProvisioningState? ProvisioningState { get; set; }
+ /// List of Provisioning Issues if any.
+ public IList ProvisioningIssues { get; }
+ /// Information about Network Security Perimeter.
+ public NetworkSecurityPerimeter NetworkSecurityPerimeter { get; }
+ /// Information about resource association.
+ public ResourceAssociation ResourceAssociation { get; }
+ /// Information about profile.
+ public Profile Profile { get; }
+ }
+}
diff --git a/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NspAccessRule.Serialization.cs b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NspAccessRule.Serialization.cs
new file mode 100644
index 000000000000..2ae368d1b6cd
--- /dev/null
+++ b/sdk/botservice/Azure.ResourceManager.BotService/src/Generated/Models/NspAccessRule.Serialization.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.BotService.Models
+{
+ public partial class NspAccessRule : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NspAccessRule)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(Name))
+ {
+ writer.WritePropertyName("name"u8);
+ writer.WriteStringValue(Name);
+ }
+ if (options.Format != "W" && Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ NspAccessRule IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(NspAccessRule)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeNspAccessRule(document.RootElement, options);
+ }
+
+ internal static NspAccessRule DeserializeNspAccessRule(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string name = default;
+ NspAccessRuleProperties properties = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary