diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 1da7c0020031e..307647f3ad92e 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -373,7 +373,7 @@ com.azure.resourcemanager:azure-resourcemanager-managedapplications;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-videoanalyzer;1.0.0-beta.5;1.0.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-imagebuilder;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-maps;1.1.0;1.2.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.6;1.0.0-beta.7
+com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.6;1.0.0
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.5.0;1.6.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.1.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;1.0.0;1.1.0-beta.5
diff --git a/sdk/botservice/azure-resourcemanager-botservice/CHANGELOG.md b/sdk/botservice/azure-resourcemanager-botservice/CHANGELOG.md
index 231f23b2628d2..e449aca8331f0 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/CHANGELOG.md
+++ b/sdk/botservice/azure-resourcemanager-botservice/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.7 (Unreleased)
+## 1.0.0 (2025-01-02)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- Azure Resource Manager BotService client library for Java. This package contains Microsoft Azure SDK for BotService Management SDK. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-2021-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Other Changes
+- Release for Azure Resource Manager BotService client library for Java.
+
## 1.0.0-beta.6 (2024-10-09)
- Azure Resource Manager BotService client library for Java. This package contains Microsoft Azure SDK for BotService Management SDK. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-preview-2021-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/botservice/azure-resourcemanager-botservice/README.md b/sdk/botservice/azure-resourcemanager-botservice/README.md
index 64f36025f6635..21fda7aafbab8 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/README.md
+++ b/sdk/botservice/azure-resourcemanager-botservice/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager BotService client library for Java.
-This package contains Microsoft Azure SDK for BotService Management SDK. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-preview-2021-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for BotService Management SDK. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-2021-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-botservice
- 1.0.0-beta.6
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/botservice/azure-resourcemanager-botservice/SAMPLE.md b/sdk/botservice/azure-resourcemanager-botservice/SAMPLE.md
index 812da8c30b4bc..5235661d4208c 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/SAMPLE.md
+++ b/sdk/botservice/azure-resourcemanager-botservice/SAMPLE.md
@@ -38,24 +38,9 @@
- [Get](#hostsettings_get)
-## OperationResults
-
-- [Get](#operationresults_get)
-
## Operations
- [List](#operations_list)
-
-## PrivateEndpointConnections
-
-- [Create](#privateendpointconnections_create)
-- [Delete](#privateendpointconnections_delete)
-- [Get](#privateendpointconnections_get)
-- [List](#privateendpointconnections_list)
-
-## PrivateLinkResources
-
-- [ListByBotResource](#privatelinkresources_listbybotresource)
### BotConnection_Create
```java
@@ -69,8 +54,7 @@ import java.util.Arrays;
public final class BotConnectionCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutConnection.json
*/
/**
* Sample code: Create Connection Setting.
@@ -105,8 +89,7 @@ public final class BotConnectionCreateSamples {
public final class BotConnectionDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * DeleteConnection.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteConnection.json
*/
/**
* Sample code: Delete Connection Setting.
@@ -130,8 +113,7 @@ public final class BotConnectionDeleteSamples {
public final class BotConnectionGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetConnection.json
*/
/**
* Sample code: Get Connection Setting.
@@ -154,8 +136,7 @@ public final class BotConnectionGetSamples {
*/
public final class BotConnectionListByBotServiceSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* ListConnectionsByBotService.json
*/
/**
@@ -179,8 +160,8 @@ public final class BotConnectionListByBotServiceSamples {
public final class BotConnectionListServiceProvidersSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListServiceProviders.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListServiceProviders.
+ * json
*/
/**
* Sample code: List Auth Service Providers.
@@ -202,8 +183,7 @@ public final class BotConnectionListServiceProvidersSamples {
public final class BotConnectionListWithSecretsSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetConnection.json
*/
/**
* Sample code: List Connection Setting With Secrets.
@@ -233,8 +213,7 @@ import java.util.Arrays;
public final class BotConnectionUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateConnection.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateConnection.json
*/
/**
* Sample code: Update Connection Setting.
@@ -267,7 +246,6 @@ public final class BotConnectionUpdateSamples {
```java
import com.azure.resourcemanager.botservice.models.BotProperties;
import com.azure.resourcemanager.botservice.models.Kind;
-import com.azure.resourcemanager.botservice.models.MsaAppType;
import com.azure.resourcemanager.botservice.models.PublicNetworkAccess;
import com.azure.resourcemanager.botservice.models.Sku;
import com.azure.resourcemanager.botservice.models.SkuName;
@@ -281,7 +259,7 @@ import java.util.Map;
public final class BotsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CreateBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/CreateBot.json
*/
/**
* Sample code: Create Bot.
@@ -298,11 +276,7 @@ public final class BotsCreateSamples {
.withDescription("The description of the bot")
.withIconUrl("http://myicon")
.withEndpoint("http://mybot.coffee")
- .withMsaAppType(MsaAppType.USER_ASSIGNED_MSI)
.withMsaAppId("exampleappid")
- .withMsaAppTenantId("exampleapptenantid")
- .withMsaAppMsiResourceId(
- "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId")
.withDeveloperAppInsightKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApiKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApplicationId("appinsightsappid")
@@ -311,7 +285,6 @@ public final class BotsCreateSamples {
.withIsCmekEnabled(true)
.withCmekKeyVaultUrl("fakeTokenPlaceholder")
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
- .withDisableLocalAuth(true)
.withSchemaTransformationVersion("1.0"))
.withSku(new Sku().withName(SkuName.S1))
.withKind(Kind.SDK)
@@ -342,7 +315,7 @@ public final class BotsCreateSamples {
public final class BotsDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteBot.json
*/
/**
* Sample code: Delete Bot.
@@ -366,7 +339,7 @@ public final class BotsDeleteSamples {
public final class BotsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetBot.json
*/
/**
* Sample code: Get Bot.
@@ -391,8 +364,8 @@ import com.azure.resourcemanager.botservice.models.CheckNameAvailabilityRequestB
public final class BotsGetCheckNameAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * CheckNameAvailability.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/CheckNameAvailability.
+ * json
*/
/**
* Sample code: check Name Availability.
@@ -417,8 +390,8 @@ public final class BotsGetCheckNameAvailabilitySamples {
public final class BotsListSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListBotsBySubscription.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListBotsBySubscription.
+ * json
*/
/**
* Sample code: List Bots by Subscription.
@@ -440,8 +413,8 @@ public final class BotsListSamples {
public final class BotsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListBotsByResourceGroup.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListBotsByResourceGroup
+ * .json
*/
/**
* Sample code: List Bots by Resource Group.
@@ -460,7 +433,6 @@ public final class BotsListByResourceGroupSamples {
import com.azure.resourcemanager.botservice.models.Bot;
import com.azure.resourcemanager.botservice.models.BotProperties;
import com.azure.resourcemanager.botservice.models.Kind;
-import com.azure.resourcemanager.botservice.models.MsaAppType;
import com.azure.resourcemanager.botservice.models.PublicNetworkAccess;
import com.azure.resourcemanager.botservice.models.Sku;
import com.azure.resourcemanager.botservice.models.SkuName;
@@ -474,7 +446,7 @@ import java.util.Map;
public final class BotsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateBot.json
*/
/**
* Sample code: Update Bot.
@@ -491,11 +463,7 @@ public final class BotsUpdateSamples {
.withDescription("The description of the bot")
.withIconUrl("http://myicon")
.withEndpoint("http://mybot.coffee")
- .withMsaAppType(MsaAppType.USER_ASSIGNED_MSI)
.withMsaAppId("msaappid")
- .withMsaAppTenantId("msaapptenantid")
- .withMsaAppMsiResourceId(
- "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId")
.withDeveloperAppInsightKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApiKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApplicationId("appinsightsappid")
@@ -504,7 +472,6 @@ public final class BotsUpdateSamples {
.withIsCmekEnabled(true)
.withCmekKeyVaultUrl("fakeTokenPlaceholder")
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
- .withDisableLocalAuth(true)
.withSchemaTransformationVersion("1.0"))
.withSku(new Sku().withName(SkuName.S1))
.withKind(Kind.SDK)
@@ -548,8 +515,7 @@ import java.util.Arrays;
*/
public final class ChannelsCreateSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* PutDirectLineSpeechChannel.json
*/
/**
@@ -570,8 +536,7 @@ public final class ChannelsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutEmailChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutEmailChannel.json
*/
/**
* Sample code: Create Email Channel.
@@ -592,8 +557,7 @@ public final class ChannelsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json
*/
/**
* Sample code: Create Alexa Channel.
@@ -611,8 +575,7 @@ public final class ChannelsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json
*/
/**
* Sample code: Create Channel.
@@ -632,8 +595,7 @@ public final class ChannelsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel
- * .json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json
*/
/**
* Sample code: Create Line Channel.
@@ -661,8 +623,7 @@ public final class ChannelsCreateSamples {
public final class ChannelsDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteChannel.json
*/
/**
* Sample code: Delete Channel.
@@ -676,8 +637,7 @@ public final class ChannelsDeleteSamples {
}
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* DeleteDirectLineSpeechChannel.json
*/
/**
@@ -701,8 +661,7 @@ public final class ChannelsDeleteSamples {
*/
public final class ChannelsGetSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* GetDirectLineSpeechChannel.json
*/
/**
@@ -718,8 +677,7 @@ public final class ChannelsGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json
*/
/**
* Sample code: Get Alexa Channel.
@@ -733,8 +691,7 @@ public final class ChannelsGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel
- * .json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json
*/
/**
* Sample code: Get Line Channel.
@@ -748,8 +705,7 @@ public final class ChannelsGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json
*/
/**
* Sample code: Get Channel.
@@ -771,8 +727,7 @@ public final class ChannelsGetSamples {
*/
public final class ChannelsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* ListChannelsByBotService.json
*/
/**
@@ -798,8 +753,7 @@ import com.azure.resourcemanager.botservice.models.ChannelName;
public final class ChannelsListWithKeysSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannel.json
*/
/**
* Sample code: List Channel.
@@ -836,8 +790,7 @@ import java.util.Arrays;
public final class ChannelsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json
*/
/**
* Sample code: Update Alexa Channel.
@@ -854,8 +807,7 @@ public final class ChannelsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* UpdateDirectLineSpeechChannel.json
*/
/**
@@ -876,8 +828,7 @@ public final class ChannelsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateLineChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json
*/
/**
* Sample code: Update Line Channel.
@@ -896,8 +847,7 @@ public final class ChannelsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json
*/
/**
* Sample code: Update Channel.
@@ -929,8 +879,7 @@ import com.azure.resourcemanager.botservice.models.SiteInfo;
*/
public final class DirectLineRegenerateKeysSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* DirectlineRegenerateKeys.json
*/
/**
@@ -948,8 +897,8 @@ public final class DirectLineRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * WebChatRegenerateKeys.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/WebChatRegenerateKeys.
+ * json
*/
/**
* Sample code: Regenerate Keys for WebChat Channel Site.
@@ -975,8 +924,7 @@ public final class DirectLineRegenerateKeysSamples {
public final class HostSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetHostSettings.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetHostSettings.json
*/
/**
* Sample code: Get Bot Host Settings.
@@ -989,29 +937,6 @@ public final class HostSettingsGetSamples {
}
```
-### OperationResults_Get
-
-```java
-/**
- * Samples for OperationResults Get.
- */
-public final class OperationResultsGetSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * OperationResultsGet.json
- */
- /**
- * Sample code: Get operation result.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void getOperationResult(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.operationResults().get("exampleid", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Operations_List
```java
@@ -1021,8 +946,7 @@ public final class OperationResultsGetSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetOperations.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetOperations.json
*/
/**
* Sample code: Get Operations.
@@ -1035,131 +959,3 @@ public final class OperationsListSamples {
}
```
-### PrivateEndpointConnections_Create
-
-```java
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-
-/**
- * Samples for PrivateEndpointConnections Create.
- */
-public final class PrivateEndpointConnectionsCreateSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutPrivateEndpointConnection.json
- */
- /**
- * Sample code: Put Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void putPrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .define("{privateEndpointConnectionName}")
- .withExistingBotService("res7687", "sto9699")
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Auto-Approved"))
- .create();
- }
-}
-```
-
-### PrivateEndpointConnections_Delete
-
-```java
-/**
- * Samples for PrivateEndpointConnections Delete.
- */
-public final class PrivateEndpointConnectionsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * DeletePrivateEndpointConnection.json
- */
- /**
- * Sample code: Delete Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void deletePrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .deleteWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_Get
-
-```java
-/**
- * Samples for PrivateEndpointConnections Get.
- */
-public final class PrivateEndpointConnectionsGetSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetPrivateEndpointConnection.json
- */
- /**
- * Sample code: Get Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void getPrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .getWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_List
-
-```java
-/**
- * Samples for PrivateEndpointConnections List.
- */
-public final class PrivateEndpointConnectionsListSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListPrivateEndpointConnections.json
- */
- /**
- * Sample code: List Private Endpoint Connections.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void listPrivateEndpointConnections(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections().list("res6977", "sto2527", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PrivateLinkResources_ListByBotResource
-
-```java
-/**
- * Samples for PrivateLinkResources ListByBotResource.
- */
-public final class PrivateLinkResourcesListByBotResourceSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListPrivateLinkResources.json
- */
- /**
- * Sample code: List Private Link Resources.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void listPrivateLinkResources(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateLinkResources()
- .listByBotResourceWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE);
- }
-}
-```
-
diff --git a/sdk/botservice/azure-resourcemanager-botservice/pom.xml b/sdk/botservice/azure-resourcemanager-botservice/pom.xml
index b49ab3747d6d6..42bf1563be527 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/pom.xml
+++ b/sdk/botservice/azure-resourcemanager-botservice/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-botservice
- 1.0.0-beta.7
+ 1.0.0
jar
Microsoft Azure SDK for BotService Management
- This package contains Microsoft Azure SDK for BotService Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-preview-2021-05.
+ This package contains Microsoft Azure SDK for BotService Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Bot Service is a platform for creating smart conversational agents. Package tag package-2021-03-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/BotServiceManager.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/BotServiceManager.java
index 08581d4fec7c5..3725c0d211c8e 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/BotServiceManager.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/BotServiceManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,7 +20,6 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -30,19 +30,13 @@
import com.azure.resourcemanager.botservice.implementation.ChannelsImpl;
import com.azure.resourcemanager.botservice.implementation.DirectLinesImpl;
import com.azure.resourcemanager.botservice.implementation.HostSettingsImpl;
-import com.azure.resourcemanager.botservice.implementation.OperationResultsImpl;
import com.azure.resourcemanager.botservice.implementation.OperationsImpl;
-import com.azure.resourcemanager.botservice.implementation.PrivateEndpointConnectionsImpl;
-import com.azure.resourcemanager.botservice.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.botservice.models.BotConnections;
import com.azure.resourcemanager.botservice.models.Bots;
import com.azure.resourcemanager.botservice.models.Channels;
import com.azure.resourcemanager.botservice.models.DirectLines;
import com.azure.resourcemanager.botservice.models.HostSettings;
-import com.azure.resourcemanager.botservice.models.OperationResults;
import com.azure.resourcemanager.botservice.models.Operations;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnections;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResources;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -67,12 +61,6 @@ public final class BotServiceManager {
private HostSettings hostSettings;
- private OperationResults operationResults;
-
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
private final AzureBotService clientObject;
private BotServiceManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -237,7 +225,7 @@ public BotServiceManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.botservice")
.append("/")
- .append("1.0.0-beta.6");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -270,7 +258,7 @@ public BotServiceManager authenticate(TokenCredential credential, AzureProfile p
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -355,43 +343,6 @@ public HostSettings hostSettings() {
return hostSettings;
}
- /**
- * Gets the resource collection API of OperationResults.
- *
- * @return Resource collection API of OperationResults.
- */
- public OperationResults operationResults() {
- if (this.operationResults == null) {
- this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
- }
- return operationResults;
- }
-
- /**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
- * @return Resource collection API of PrivateEndpointConnections.
- */
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
- }
- return privateEndpointConnections;
- }
-
- /**
- * Gets the resource collection API of PrivateLinkResources.
- *
- * @return Resource collection API of PrivateLinkResources.
- */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
- }
- return privateLinkResources;
- }
-
/**
* Gets wrapped service client AzureBotService providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/AzureBotService.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/AzureBotService.java
index 981fc5059c592..5c4458a3bee07 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/AzureBotService.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/AzureBotService.java
@@ -87,25 +87,4 @@ public interface AzureBotService {
* @return the HostSettingsClient object.
*/
HostSettingsClient getHostSettings();
-
- /**
- * Gets the OperationResultsClient object to access its operations.
- *
- * @return the OperationResultsClient object.
- */
- OperationResultsClient getOperationResults();
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/OperationResultsClient.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/OperationResultsClient.java
deleted file mode 100644
index 50af158e32e63..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/OperationResultsClient.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-
-/**
- * An instance of this class provides access to all the operations defined in OperationResultsClient.
- */
-public interface OperationResultsClient {
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationResultsDescriptionInner>
- beginGet(String operationResultId);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationResultsDescriptionInner>
- beginGet(String operationResultId, Context context);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationResultsDescriptionInner get(String operationResultId);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationResultsDescriptionInner get(String operationResultId, Context context);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateEndpointConnectionsClient.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateEndpointConnectionsClient.java
deleted file mode 100644
index 8352c342a2005..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateEndpointConnectionsClient.java
+++ /dev/null
@@ -1,145 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-
-/**
- * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
- */
-public interface PrivateEndpointConnectionsClient {
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName);
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName);
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context);
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner create(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateLinkResourcesClient.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateLinkResourcesClient.java
deleted file mode 100644
index 74f793f1470b0..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/PrivateLinkResourcesClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-
-/**
- * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
- */
-public interface PrivateLinkResourcesClient {
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listByBotResourceWithResponse(String resourceGroupName,
- String resourceName, Context context);
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceListResultInner listByBotResource(String resourceGroupName, String resourceName);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotChannelInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotChannelInner.java
index 5f2c28cd784c1..a3f80c5f3d421 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotChannelInner.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotChannelInner.java
@@ -37,7 +37,7 @@ public class BotChannelInner extends Resource {
private Kind kind;
/*
- * Entity Tag.
+ * Entity Tag
*/
private String etag;
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotInner.java
index 90576b00cabf7..6dc7955ba4749 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotInner.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/BotInner.java
@@ -37,7 +37,7 @@ public final class BotInner extends Resource {
private Kind kind;
/*
- * Entity Tag.
+ * Entity Tag
*/
private String etag;
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/ConnectionSettingInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/ConnectionSettingInner.java
index 83cfa562f21b3..95ec8cf3ec7bb 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/ConnectionSettingInner.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/ConnectionSettingInner.java
@@ -37,7 +37,7 @@ public final class ConnectionSettingInner extends Resource {
private Kind kind;
/*
- * Entity Tag.
+ * Entity Tag
*/
private String etag;
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/HostSettingsResponseInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/HostSettingsResponseInner.java
index 7f6b4dce1eaf0..7de930168786d 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/HostSettingsResponseInner.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/HostSettingsResponseInner.java
@@ -52,7 +52,7 @@ public final class HostSettingsResponseInner implements JsonSerializable {
- /*
- * The ID of the operation returned.
- */
- private String id;
-
- /*
- * The name of the operation result.
- */
- private String name;
-
- /*
- * The status of the operation being performed.
- */
- private OperationResultStatus status;
-
- /*
- * The time that the operation was started.
- */
- private OffsetDateTime startTime;
-
- /**
- * Creates an instance of OperationResultsDescriptionInner class.
- */
- public OperationResultsDescriptionInner() {
- }
-
- /**
- * Get the id property: The ID of the operation returned.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Get the name property: The name of the operation result.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Get the status property: The status of the operation being performed.
- *
- * @return the status value.
- */
- public OperationResultStatus status() {
- return this.status;
- }
-
- /**
- * Get the startTime property: The time that the operation was started.
- *
- * @return the startTime value.
- */
- public OffsetDateTime startTime() {
- return this.startTime;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationResultsDescriptionInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationResultsDescriptionInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the OperationResultsDescriptionInner.
- */
- public static OperationResultsDescriptionInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationResultsDescriptionInner deserializedOperationResultsDescriptionInner
- = new OperationResultsDescriptionInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedOperationResultsDescriptionInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedOperationResultsDescriptionInner.name = reader.getString();
- } else if ("status".equals(fieldName)) {
- deserializedOperationResultsDescriptionInner.status
- = OperationResultStatus.fromString(reader.getString());
- } else if ("startTime".equals(fieldName)) {
- deserializedOperationResultsDescriptionInner.startTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationResultsDescriptionInner;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionInner.java
deleted file mode 100644
index 3ce5a94b7feb6..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionInner.java
+++ /dev/null
@@ -1,225 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResourceBase;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * The Private Endpoint Connection resource.
- */
-@Fluent
-public final class PrivateEndpointConnectionInner extends PrivateLinkResourceBase {
- /*
- * Resource properties.
- */
- private PrivateEndpointConnectionProperties innerProperties;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of PrivateEndpointConnectionInner class.
- */
- public PrivateEndpointConnectionInner() {
- }
-
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private PrivateEndpointConnectionProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the privateEndpoint property: The resource of private end point.
- *
- * @return the privateEndpoint value.
- */
- public PrivateEndpoint privateEndpoint() {
- return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
- }
-
- /**
- * Set the privateEndpoint property: The resource of private end point.
- *
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionInner object itself.
- */
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateEndpointConnectionProperties();
- }
- this.innerProperties().withPrivateEndpoint(privateEndpoint);
- return this;
- }
-
- /**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
- }
-
- /**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionInner object itself.
- */
- public PrivateEndpointConnectionInner
- withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateEndpointConnectionProperties();
- }
- this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the groupIds property: Group ids.
- *
- * @return the groupIds value.
- */
- public List groupIds() {
- return this.innerProperties() == null ? null : this.innerProperties().groupIds();
- }
-
- /**
- * Set the groupIds property: Group ids.
- *
- * @param groupIds the groupIds value to set.
- * @return the PrivateEndpointConnectionInner object itself.
- */
- public PrivateEndpointConnectionInner withGroupIds(List groupIds) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateEndpointConnectionProperties();
- }
- this.innerProperties().withGroupIds(groupIds);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateEndpointConnectionInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateEndpointConnectionInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PrivateEndpointConnectionInner.
- */
- public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateEndpointConnectionInner deserializedPrivateEndpointConnectionInner
- = new PrivateEndpointConnectionInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.innerProperties
- = PrivateEndpointConnectionProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateEndpointConnectionInner;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionProperties.java
deleted file mode 100644
index 705fe51b7c6a6..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateEndpointConnectionProperties.java
+++ /dev/null
@@ -1,191 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Properties of the PrivateEndpointConnectProperties.
- */
-@Fluent
-public final class PrivateEndpointConnectionProperties
- implements JsonSerializable {
- /*
- * The resource of private end point.
- */
- private PrivateEndpoint privateEndpoint;
-
- /*
- * A collection of information about the state of the connection between service consumer and provider.
- */
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
-
- /*
- * The provisioning state of the private endpoint connection resource.
- */
- private PrivateEndpointConnectionProvisioningState provisioningState;
-
- /*
- * Group ids
- */
- private List groupIds;
-
- /**
- * Creates an instance of PrivateEndpointConnectionProperties class.
- */
- public PrivateEndpointConnectionProperties() {
- }
-
- /**
- * Get the privateEndpoint property: The resource of private end point.
- *
- * @return the privateEndpoint value.
- */
- public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
- }
-
- /**
- * Set the privateEndpoint property: The resource of private end point.
- *
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
- }
-
- /**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
- }
-
- /**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties
- withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the groupIds property: Group ids.
- *
- * @return the groupIds value.
- */
- public List groupIds() {
- return this.groupIds;
- }
-
- /**
- * Set the groupIds property: Group ids.
- *
- * @param groupIds the groupIds value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withGroupIds(List groupIds) {
- this.groupIds = groupIds;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
- } else {
- privateLinkServiceConnectionState().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
- jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
- jsonWriter.writeArrayField("groupIds", this.groupIds, (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties.
- */
- public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties
- = new PrivateEndpointConnectionProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("privateLinkServiceConnectionState".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
- = PrivateLinkServiceConnectionState.fromJson(reader);
- } else if ("privateEndpoint".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
- } else if ("provisioningState".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.provisioningState
- = PrivateEndpointConnectionProvisioningState.fromString(reader.getString());
- } else if ("groupIds".equals(fieldName)) {
- List groupIds = reader.readArray(reader1 -> reader1.getString());
- deserializedPrivateEndpointConnectionProperties.groupIds = groupIds;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateEndpointConnectionProperties;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceListResultInner.java
deleted file mode 100644
index 6ee4ab75ebfad..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceListResultInner.java
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResource;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * A list of private link resources.
- */
-@Fluent
-public final class PrivateLinkResourceListResultInner implements JsonSerializable {
- /*
- * Array of private link resources
- */
- private List value;
-
- /**
- * Creates an instance of PrivateLinkResourceListResultInner class.
- */
- public PrivateLinkResourceListResultInner() {
- }
-
- /**
- * Get the value property: Array of private link resources.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: Array of private link resources.
- *
- * @param value the value value to set.
- * @return the PrivateLinkResourceListResultInner object itself.
- */
- public PrivateLinkResourceListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkResourceListResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkResourceListResultInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PrivateLinkResourceListResultInner.
- */
- public static PrivateLinkResourceListResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkResourceListResultInner deserializedPrivateLinkResourceListResultInner
- = new PrivateLinkResourceListResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- List value
- = reader.readArray(reader1 -> PrivateLinkResource.fromJson(reader1));
- deserializedPrivateLinkResourceListResultInner.value = value;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkResourceListResultInner;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceProperties.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceProperties.java
deleted file mode 100644
index f927ed0608ea7..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/fluent/models/PrivateLinkResourceProperties.java
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Properties of a private link resource.
- */
-@Fluent
-public final class PrivateLinkResourceProperties implements JsonSerializable {
- /*
- * The private link resource group id.
- */
- private String groupId;
-
- /*
- * The private link resource required member names.
- */
- private List requiredMembers;
-
- /*
- * The private link resource Private link DNS zone name.
- */
- private List requiredZoneNames;
-
- /**
- * Creates an instance of PrivateLinkResourceProperties class.
- */
- public PrivateLinkResourceProperties() {
- }
-
- /**
- * Get the groupId property: The private link resource group id.
- *
- * @return the groupId value.
- */
- public String groupId() {
- return this.groupId;
- }
-
- /**
- * Get the requiredMembers property: The private link resource required member names.
- *
- * @return the requiredMembers value.
- */
- public List requiredMembers() {
- return this.requiredMembers;
- }
-
- /**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @return the requiredZoneNames value.
- */
- public List requiredZoneNames() {
- return this.requiredZoneNames;
- }
-
- /**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @param requiredZoneNames the requiredZoneNames value to set.
- * @return the PrivateLinkResourceProperties object itself.
- */
- public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
- this.requiredZoneNames = requiredZoneNames;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("requiredZoneNames", this.requiredZoneNames,
- (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkResourceProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkResourceProperties if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PrivateLinkResourceProperties.
- */
- public static PrivateLinkResourceProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkResourceProperties deserializedPrivateLinkResourceProperties
- = new PrivateLinkResourceProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("groupId".equals(fieldName)) {
- deserializedPrivateLinkResourceProperties.groupId = reader.getString();
- } else if ("requiredMembers".equals(fieldName)) {
- List requiredMembers = reader.readArray(reader1 -> reader1.getString());
- deserializedPrivateLinkResourceProperties.requiredMembers = requiredMembers;
- } else if ("requiredZoneNames".equals(fieldName)) {
- List requiredZoneNames = reader.readArray(reader1 -> reader1.getString());
- deserializedPrivateLinkResourceProperties.requiredZoneNames = requiredZoneNames;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkResourceProperties;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/AzureBotServiceImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/AzureBotServiceImpl.java
index 9eabeca3924ab..e48a4a6b70475 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/AzureBotServiceImpl.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/AzureBotServiceImpl.java
@@ -29,10 +29,7 @@
import com.azure.resourcemanager.botservice.fluent.ChannelsClient;
import com.azure.resourcemanager.botservice.fluent.DirectLinesClient;
import com.azure.resourcemanager.botservice.fluent.HostSettingsClient;
-import com.azure.resourcemanager.botservice.fluent.OperationResultsClient;
import com.azure.resourcemanager.botservice.fluent.OperationsClient;
-import com.azure.resourcemanager.botservice.fluent.PrivateEndpointConnectionsClient;
-import com.azure.resourcemanager.botservice.fluent.PrivateLinkResourcesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -215,48 +212,6 @@ public HostSettingsClient getHostSettings() {
return this.hostSettings;
}
- /**
- * The OperationResultsClient object to access its operations.
- */
- private final OperationResultsClient operationResults;
-
- /**
- * Gets the OperationResultsClient object to access its operations.
- *
- * @return the OperationResultsClient object.
- */
- public OperationResultsClient getOperationResults() {
- return this.operationResults;
- }
-
- /**
- * The PrivateEndpointConnectionsClient object to access its operations.
- */
- private final PrivateEndpointConnectionsClient privateEndpointConnections;
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
- return this.privateEndpointConnections;
- }
-
- /**
- * The PrivateLinkResourcesClient object to access its operations.
- */
- private final PrivateLinkResourcesClient privateLinkResources;
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- public PrivateLinkResourcesClient getPrivateLinkResources() {
- return this.privateLinkResources;
- }
-
/**
* Initializes an instance of AzureBotService client.
*
@@ -274,16 +229,13 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-05-01-preview";
+ this.apiVersion = "2021-03-01";
this.bots = new BotsClientImpl(this);
this.channels = new ChannelsClientImpl(this);
this.directLines = new DirectLinesClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.botConnections = new BotConnectionsClientImpl(this);
this.hostSettings = new HostSettingsClientImpl(this);
- this.operationResults = new OperationResultsClientImpl(this);
- this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
- this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
}
/**
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsClientImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsClientImpl.java
deleted file mode 100644
index 69c20a6260b1a..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsClientImpl.java
+++ /dev/null
@@ -1,263 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.botservice.fluent.OperationResultsClient;
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in OperationResultsClient.
- */
-public final class OperationResultsClientImpl implements OperationResultsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final OperationResultsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final AzureBotServiceImpl client;
-
- /**
- * Initializes an instance of OperationResultsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- OperationResultsClientImpl(AzureBotServiceImpl client) {
- this.service
- = RestProxy.create(OperationResultsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for AzureBotServiceOperationResults to be used by the proxy service to
- * perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "AzureBotServiceOpera")
- public interface OperationResultsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> get(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("operationResultId") String operationResultId, @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> getWithResponseAsync(String operationResultId) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (operationResultId == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter operationResultId is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), operationResultId, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> getWithResponseAsync(String operationResultId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (operationResultId == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter operationResultId is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- operationResultId, accept, context);
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, OperationResultsDescriptionInner>
- beginGetAsync(String operationResultId) {
- Mono>> mono = getWithResponseAsync(operationResultId);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), OperationResultsDescriptionInner.class,
- OperationResultsDescriptionInner.class, this.client.getContext());
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, OperationResultsDescriptionInner>
- beginGetAsync(String operationResultId, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = getWithResponseAsync(operationResultId, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), OperationResultsDescriptionInner.class,
- OperationResultsDescriptionInner.class, context);
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, OperationResultsDescriptionInner>
- beginGet(String operationResultId) {
- return this.beginGetAsync(operationResultId).getSyncPoller();
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, OperationResultsDescriptionInner>
- beginGet(String operationResultId, Context context) {
- return this.beginGetAsync(operationResultId, context).getSyncPoller();
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String operationResultId) {
- return beginGetAsync(operationResultId).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String operationResultId, Context context) {
- return beginGetAsync(operationResultId, context).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public OperationResultsDescriptionInner get(String operationResultId) {
- return getAsync(operationResultId).block();
- }
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public OperationResultsDescriptionInner get(String operationResultId, Context context) {
- return getAsync(operationResultId, context).block();
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsDescriptionImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsDescriptionImpl.java
deleted file mode 100644
index f6cd612658fec..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsDescriptionImpl.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-import com.azure.resourcemanager.botservice.models.OperationResultStatus;
-import com.azure.resourcemanager.botservice.models.OperationResultsDescription;
-import java.time.OffsetDateTime;
-
-public final class OperationResultsDescriptionImpl implements OperationResultsDescription {
- private OperationResultsDescriptionInner innerObject;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- OperationResultsDescriptionImpl(OperationResultsDescriptionInner innerObject,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public OperationResultStatus status() {
- return this.innerModel().status();
- }
-
- public OffsetDateTime startTime() {
- return this.innerModel().startTime();
- }
-
- public OperationResultsDescriptionInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsImpl.java
deleted file mode 100644
index 0285aa54bde8f..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/OperationResultsImpl.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.botservice.fluent.OperationResultsClient;
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-import com.azure.resourcemanager.botservice.models.OperationResults;
-import com.azure.resourcemanager.botservice.models.OperationResultsDescription;
-
-public final class OperationResultsImpl implements OperationResults {
- private static final ClientLogger LOGGER = new ClientLogger(OperationResultsImpl.class);
-
- private final OperationResultsClient innerClient;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- public OperationResultsImpl(OperationResultsClient innerClient,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public OperationResultsDescription get(String operationResultId) {
- OperationResultsDescriptionInner inner = this.serviceClient().get(operationResultId);
- if (inner != null) {
- return new OperationResultsDescriptionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public OperationResultsDescription get(String operationResultId, Context context) {
- OperationResultsDescriptionInner inner = this.serviceClient().get(operationResultId, context);
- if (inner != null) {
- return new OperationResultsDescriptionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private OperationResultsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionImpl.java
deleted file mode 100644
index 4c7fab58842b7..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionImpl.java
+++ /dev/null
@@ -1,136 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.util.Collections;
-import java.util.List;
-
-public final class PrivateEndpointConnectionImpl
- implements PrivateEndpointConnection, PrivateEndpointConnection.Definition {
- private PrivateEndpointConnectionInner innerObject;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- PrivateEndpointConnectionImpl(PrivateEndpointConnectionInner innerObject,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public PrivateEndpoint privateEndpoint() {
- return this.innerModel().privateEndpoint();
- }
-
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.innerModel().privateLinkServiceConnectionState();
- }
-
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public List groupIds() {
- List inner = this.innerModel().groupIds();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public PrivateEndpointConnectionInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String resourceName;
-
- private String privateEndpointConnectionName;
-
- public PrivateEndpointConnectionImpl withExistingBotService(String resourceGroupName, String resourceName) {
- this.resourceGroupName = resourceGroupName;
- this.resourceName = resourceName;
- return this;
- }
-
- public PrivateEndpointConnection create() {
- this.innerObject = serviceManager.serviceClient()
- .getPrivateEndpointConnections()
- .createWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, this.innerModel(),
- Context.NONE)
- .getValue();
- return this;
- }
-
- public PrivateEndpointConnection create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getPrivateEndpointConnections()
- .createWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, this.innerModel(),
- context)
- .getValue();
- return this;
- }
-
- PrivateEndpointConnectionImpl(String name, com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerObject = new PrivateEndpointConnectionInner();
- this.serviceManager = serviceManager;
- this.privateEndpointConnectionName = name;
- }
-
- public PrivateEndpointConnection refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getPrivateEndpointConnections()
- .getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE)
- .getValue();
- return this;
- }
-
- public PrivateEndpointConnection refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getPrivateEndpointConnections()
- .getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context)
- .getValue();
- return this;
- }
-
- public PrivateEndpointConnectionImpl withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.innerModel().withPrivateEndpoint(privateEndpoint);
- return this;
- }
-
- public PrivateEndpointConnectionImpl
- withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.innerModel().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
- return this;
- }
-
- public PrivateEndpointConnectionImpl withGroupIds(List groupIds) {
- this.innerModel().withGroupIds(groupIds);
- return this;
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsClientImpl.java
deleted file mode 100644
index 564adc81be518..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsClientImpl.java
+++ /dev/null
@@ -1,691 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.botservice.fluent.PrivateEndpointConnectionsClient;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnectionListResult;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
- */
-public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final PrivateEndpointConnectionsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final AzureBotServiceImpl client;
-
- /**
- * Initializes an instance of PrivateEndpointConnectionsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- PrivateEndpointConnectionsClientImpl(AzureBotServiceImpl client) {
- this.service = RestProxy.create(PrivateEndpointConnectionsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for AzureBotServicePrivateEndpointConnections to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "AzureBotServicePriva")
- public interface PrivateEndpointConnectionsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
- @BodyParam("application/json") PrivateEndpointConnectionInner properties,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
- @ExpectedResponses({ 200, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String resourceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, resourceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String resourceName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), resourceGroupName, resourceName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String resourceName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName));
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String resourceName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context));
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String resourceName) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName));
- }
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String resourceName,
- Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context));
- }
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String resourceName, String privateEndpointConnectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, resourceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), privateEndpointConnectionName, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String resourceName, String privateEndpointConnectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), resourceGroupName, resourceName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), privateEndpointConnectionName, accept, context);
- }
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName) {
- return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context).block();
- }
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner get(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName) {
- return getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE).getValue();
- }
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(String resourceGroupName,
- String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), resourceGroupName, resourceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), privateEndpointConnectionName, properties,
- accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(String resourceGroupName,
- String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), resourceGroupName, resourceName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), privateEndpointConnectionName, properties, accept, context);
- }
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties) {
- return createWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, properties)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context) {
- return createWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, properties,
- context).block();
- }
-
- /**
- * Update the state of specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param properties The private endpoint connection properties.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner create(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties) {
- return createWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, properties,
- Context.NONE).getValue();
- }
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, resourceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), privateEndpointConnectionName, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (privateEndpointConnectionName == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter privateEndpointConnectionName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), resourceGroupName, resourceName, this.client.getApiVersion(),
- this.client.getSubscriptionId(), privateEndpointConnectionName, accept, context);
- }
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName)
- .flatMap(ignored -> Mono.empty());
- }
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context).block();
- }
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
- deleteWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsImpl.java
deleted file mode 100644
index d08892fad9ab0..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateEndpointConnectionsImpl.java
+++ /dev/null
@@ -1,168 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.botservice.fluent.PrivateEndpointConnectionsClient;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnections;
-
-public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class);
-
- private final PrivateEndpointConnectionsClient innerClient;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- public PrivateEndpointConnectionsImpl(PrivateEndpointConnectionsClient innerClient,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String resourceName) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, resourceName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName, String resourceName,
- Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, resourceName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager()));
- }
-
- public Response getWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context) {
- Response inner = this.serviceClient()
- .getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new PrivateEndpointConnectionImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public PrivateEndpointConnection get(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName) {
- PrivateEndpointConnectionInner inner
- = this.serviceClient().get(resourceGroupName, resourceName, privateEndpointConnectionName);
- if (inner != null) {
- return new PrivateEndpointConnectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response deleteWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context) {
- return this.serviceClient()
- .deleteWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context);
- }
-
- public void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
- this.serviceClient().delete(resourceGroupName, resourceName, privateEndpointConnectionName);
- }
-
- public PrivateEndpointConnection getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "botServices");
- if (resourceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'botServices'.", id)));
- }
- String privateEndpointConnectionName
- = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections");
- if (privateEndpointConnectionName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id)));
- }
- return this.getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE)
- .getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "botServices");
- if (resourceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'botServices'.", id)));
- }
- String privateEndpointConnectionName
- = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections");
- if (privateEndpointConnectionName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id)));
- }
- return this.getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "botServices");
- if (resourceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'botServices'.", id)));
- }
- String privateEndpointConnectionName
- = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections");
- if (privateEndpointConnectionName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE);
- }
-
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "botServices");
- if (resourceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'botServices'.", id)));
- }
- String privateEndpointConnectionName
- = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections");
- if (privateEndpointConnectionName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
- .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context);
- }
-
- private PrivateEndpointConnectionsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-
- public PrivateEndpointConnectionImpl define(String name) {
- return new PrivateEndpointConnectionImpl(name, this.manager());
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourceListResultImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourceListResultImpl.java
deleted file mode 100644
index f79f3e8f47438..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourceListResultImpl.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResource;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResourceListResult;
-import java.util.Collections;
-import java.util.List;
-
-public final class PrivateLinkResourceListResultImpl implements PrivateLinkResourceListResult {
- private PrivateLinkResourceListResultInner innerObject;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- PrivateLinkResourceListResultImpl(PrivateLinkResourceListResultInner innerObject,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public List value() {
- List inner = this.innerModel().value();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public PrivateLinkResourceListResultInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesClientImpl.java
deleted file mode 100644
index 21042ed889889..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesClientImpl.java
+++ /dev/null
@@ -1,190 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.botservice.fluent.PrivateLinkResourcesClient;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
- */
-public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final PrivateLinkResourcesService service;
-
- /**
- * The service client containing this operation class.
- */
- private final AzureBotServiceImpl client;
-
- /**
- * Initializes an instance of PrivateLinkResourcesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- PrivateLinkResourcesClientImpl(AzureBotServiceImpl client) {
- this.service = RestProxy.create(PrivateLinkResourcesService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for AzureBotServicePrivateLinkResources to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "AzureBotServicePriva")
- public interface PrivateLinkResourcesService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByBotResource(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByBotResourceWithResponseAsync(String resourceGroupName, String resourceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByBotResource(this.client.getEndpoint(), resourceGroupName,
- resourceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByBotResourceWithResponseAsync(String resourceGroupName, String resourceName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listByBotResource(this.client.getEndpoint(), resourceGroupName, resourceName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
- }
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono listByBotResourceAsync(String resourceGroupName,
- String resourceName) {
- return listByBotResourceWithResponseAsync(resourceGroupName, resourceName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response listByBotResourceWithResponse(String resourceGroupName,
- String resourceName, Context context) {
- return listByBotResourceWithResponseAsync(resourceGroupName, resourceName, context).block();
- }
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateLinkResourceListResultInner listByBotResource(String resourceGroupName, String resourceName) {
- return listByBotResourceWithResponse(resourceGroupName, resourceName, Context.NONE).getValue();
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesImpl.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesImpl.java
deleted file mode 100644
index b641b965d91c4..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/PrivateLinkResourcesImpl.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.botservice.fluent.PrivateLinkResourcesClient;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResourceListResult;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResources;
-
-public final class PrivateLinkResourcesImpl implements PrivateLinkResources {
- private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class);
-
- private final PrivateLinkResourcesClient innerClient;
-
- private final com.azure.resourcemanager.botservice.BotServiceManager serviceManager;
-
- public PrivateLinkResourcesImpl(PrivateLinkResourcesClient innerClient,
- com.azure.resourcemanager.botservice.BotServiceManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response listByBotResourceWithResponse(String resourceGroupName,
- String resourceName, Context context) {
- Response inner
- = this.serviceClient().listByBotResourceWithResponse(resourceGroupName, resourceName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new PrivateLinkResourceListResultImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public PrivateLinkResourceListResult listByBotResource(String resourceGroupName, String resourceName) {
- PrivateLinkResourceListResultInner inner
- = this.serviceClient().listByBotResource(resourceGroupName, resourceName);
- if (inner != null) {
- return new PrivateLinkResourceListResultImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private PrivateLinkResourcesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.botservice.BotServiceManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AcsChatChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AcsChatChannel.java
index dfac0c3bab5c3..6ca732589f04a 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AcsChatChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AcsChatChannel.java
@@ -20,11 +20,6 @@ public final class AcsChatChannel extends Channel {
*/
private String channelName = "AcsChatChannel";
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of AcsChatChannel class.
*/
@@ -41,16 +36,6 @@ public String channelName() {
return this.channelName;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -108,7 +93,7 @@ public static AcsChatChannel fromJson(JsonReader jsonReader) throws IOException
if ("etag".equals(fieldName)) {
deserializedAcsChatChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedAcsChatChannel.provisioningState = reader.getString();
+ deserializedAcsChatChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedAcsChatChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AlexaChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AlexaChannel.java
index 1f88c49290274..b3c38eb9516a4 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AlexaChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/AlexaChannel.java
@@ -25,11 +25,6 @@ public final class AlexaChannel extends Channel {
*/
private AlexaChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of AlexaChannel class.
*/
@@ -66,16 +61,6 @@ public AlexaChannel withProperties(AlexaChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static AlexaChannel fromJson(JsonReader jsonReader) throws IOException {
if ("etag".equals(fieldName)) {
deserializedAlexaChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedAlexaChannel.provisioningState = reader.getString();
+ deserializedAlexaChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedAlexaChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/Bot.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/Bot.java
index 08d39e929914f..e748e4284f750 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/Bot.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/Bot.java
@@ -242,7 +242,7 @@ interface WithKind {
*/
interface WithEtag {
/**
- * Specifies the etag property: Entity Tag..
+ * Specifies the etag property: Entity Tag.
*
* @param etag Entity Tag.
* @return the next definition stage.
@@ -340,7 +340,7 @@ interface WithKind {
*/
interface WithEtag {
/**
- * Specifies the etag property: Entity Tag..
+ * Specifies the etag property: Entity Tag.
*
* @param etag Entity Tag.
* @return the next definition stage.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/BotProperties.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/BotProperties.java
index 84df0a66cac73..46d79664905c1 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/BotProperties.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/BotProperties.java
@@ -10,7 +10,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -170,11 +169,6 @@ public final class BotProperties implements JsonSerializable {
*/
private String storageResourceId;
- /*
- * List of Private Endpoint Connections configured for the bot
- */
- private List privateEndpointConnections;
-
/*
* The hint to browser (e.g. protocol handler) on how to open the bot for authoring
*/
@@ -737,15 +731,6 @@ public BotProperties withStorageResourceId(String storageResourceId) {
return this;
}
- /**
- * Get the privateEndpointConnections property: List of Private Endpoint Connections configured for the bot.
- *
- * @return the privateEndpointConnections value.
- */
- public List privateEndpointConnections() {
- return this.privateEndpointConnections;
- }
-
/**
* Get the openWithHint property: The hint to browser (e.g. protocol handler) on how to open the bot for authoring.
*
@@ -833,9 +818,6 @@ public void validate() {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property msaAppId in model BotProperties"));
}
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
- }
}
private static final ClientLogger LOGGER = new ClientLogger(BotProperties.class);
@@ -959,10 +941,6 @@ public static BotProperties fromJson(JsonReader jsonReader) throws IOException {
deserializedBotProperties.schemaTransformationVersion = reader.getString();
} else if ("storageResourceId".equals(fieldName)) {
deserializedBotProperties.storageResourceId = reader.getString();
- } else if ("privateEndpointConnections".equals(fieldName)) {
- List privateEndpointConnections
- = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
- deserializedBotProperties.privateEndpointConnections = privateEndpointConnections;
} else if ("openWithHint".equals(fieldName)) {
deserializedBotProperties.openWithHint = reader.getString();
} else if ("appPasswordHint".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSetting.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSetting.java
index 065819235ac08..9a2febca8e107 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSetting.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSetting.java
@@ -244,7 +244,7 @@ interface WithKind {
*/
interface WithEtag {
/**
- * Specifies the etag property: Entity Tag..
+ * Specifies the etag property: Entity Tag.
*
* @param etag Entity Tag.
* @return the next definition stage.
@@ -342,7 +342,7 @@ interface WithKind {
*/
interface WithEtag {
/**
- * Specifies the etag property: Entity Tag..
+ * Specifies the etag property: Entity Tag.
*
* @param etag Entity Tag.
* @return the next definition stage.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSettingProperties.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSettingProperties.java
index 79be82885a84f..e90f2f9bcec62 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSettingProperties.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/ConnectionSettingProperties.java
@@ -17,16 +17,6 @@
*/
@Fluent
public final class ConnectionSettingProperties implements JsonSerializable {
- /*
- * Id of the Connection Setting.
- */
- private String id;
-
- /*
- * Name of the Connection Setting.
- */
- private String name;
-
/*
* Client Id associated with the Connection Setting.
*/
@@ -73,46 +63,6 @@ public final class ConnectionSettingProperties implements JsonSerializable {
- /**
- * Static value Canceled for OperationResultStatus.
- */
- public static final OperationResultStatus CANCELED = fromString("Canceled");
-
- /**
- * Static value Succeeded for OperationResultStatus.
- */
- public static final OperationResultStatus SUCCEEDED = fromString("Succeeded");
-
- /**
- * Static value Failed for OperationResultStatus.
- */
- public static final OperationResultStatus FAILED = fromString("Failed");
-
- /**
- * Static value Requested for OperationResultStatus.
- */
- public static final OperationResultStatus REQUESTED = fromString("Requested");
-
- /**
- * Static value Running for OperationResultStatus.
- */
- public static final OperationResultStatus RUNNING = fromString("Running");
-
- /**
- * Creates a new instance of OperationResultStatus value.
- *
- * @deprecated Use the {@link #fromString(String)} factory method.
- */
- @Deprecated
- public OperationResultStatus() {
- }
-
- /**
- * Creates or finds a OperationResultStatus from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding OperationResultStatus.
- */
- public static OperationResultStatus fromString(String name) {
- return fromString(name, OperationResultStatus.class);
- }
-
- /**
- * Gets known OperationResultStatus values.
- *
- * @return known OperationResultStatus values.
- */
- public static Collection values() {
- return values(OperationResultStatus.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResults.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResults.java
deleted file mode 100644
index 32889656dbaf5..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResults.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.util.Context;
-
-/**
- * Resource collection API of OperationResults.
- */
-public interface OperationResults {
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- OperationResultsDescription get(String operationResultId);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param operationResultId The ID of the operation result to get.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result for a long running operation.
- */
- OperationResultsDescription get(String operationResultId, Context context);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResultsDescription.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResultsDescription.java
deleted file mode 100644
index 78ddec9210f76..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OperationResultsDescription.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-import java.time.OffsetDateTime;
-
-/**
- * An immutable client-side representation of OperationResultsDescription.
- */
-public interface OperationResultsDescription {
- /**
- * Gets the id property: The ID of the operation returned.
- *
- * @return the id value.
- */
- String id();
-
- /**
- * Gets the name property: The name of the operation result.
- *
- * @return the name value.
- */
- String name();
-
- /**
- * Gets the status property: The status of the operation being performed.
- *
- * @return the status value.
- */
- OperationResultStatus status();
-
- /**
- * Gets the startTime property: The time that the operation was started.
- *
- * @return the startTime value.
- */
- OffsetDateTime startTime();
-
- /**
- * Gets the inner com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner object.
- *
- * @return the inner object.
- */
- OperationResultsDescriptionInner innerModel();
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OutlookChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OutlookChannel.java
index 575a1532d0b21..0a21ff4c3b5c2 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OutlookChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/OutlookChannel.java
@@ -20,11 +20,6 @@ public final class OutlookChannel extends Channel {
*/
private String channelName = "OutlookChannel";
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of OutlookChannel class.
*/
@@ -41,16 +36,6 @@ public String channelName() {
return this.channelName;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -108,7 +93,7 @@ public static OutlookChannel fromJson(JsonReader jsonReader) throws IOException
if ("etag".equals(fieldName)) {
deserializedOutlookChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedOutlookChannel.provisioningState = reader.getString();
+ deserializedOutlookChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedOutlookChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpoint.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpoint.java
deleted file mode 100644
index 33822fc772567..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpoint.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The Private Endpoint resource.
- */
-@Immutable
-public final class PrivateEndpoint implements JsonSerializable {
- /*
- * The ARM identifier for Private Endpoint
- */
- private String id;
-
- /**
- * Creates an instance of PrivateEndpoint class.
- */
- public PrivateEndpoint() {
- }
-
- /**
- * Get the id property: The ARM identifier for Private Endpoint.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateEndpoint from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateEndpoint if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the PrivateEndpoint.
- */
- public static PrivateEndpoint fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateEndpoint deserializedPrivateEndpoint = new PrivateEndpoint();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedPrivateEndpoint.id = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateEndpoint;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnection.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnection.java
deleted file mode 100644
index a36d6bcc057bd..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnection.java
+++ /dev/null
@@ -1,182 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import java.util.List;
-
-/**
- * An immutable client-side representation of PrivateEndpointConnection.
- */
-public interface PrivateEndpointConnection {
- /**
- * Gets the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- String id();
-
- /**
- * Gets the name property: The name of the resource.
- *
- * @return the name value.
- */
- String name();
-
- /**
- * Gets the type property: The type of the resource.
- *
- * @return the type value.
- */
- String type();
-
- /**
- * Gets the privateEndpoint property: The resource of private end point.
- *
- * @return the privateEndpoint value.
- */
- PrivateEndpoint privateEndpoint();
-
- /**
- * Gets the privateLinkServiceConnectionState property: A collection of information about the state of the
- * connection between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState();
-
- /**
- * Gets the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- PrivateEndpointConnectionProvisioningState provisioningState();
-
- /**
- * Gets the groupIds property: Group ids.
- *
- * @return the groupIds value.
- */
- List groupIds();
-
- /**
- * Gets the inner com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner object.
- *
- * @return the inner object.
- */
- PrivateEndpointConnectionInner innerModel();
-
- /**
- * The entirety of the PrivateEndpointConnection definition.
- */
- interface Definition
- extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
- }
-
- /**
- * The PrivateEndpointConnection definition stages.
- */
- interface DefinitionStages {
- /**
- * The first stage of the PrivateEndpointConnection definition.
- */
- interface Blank extends WithParentResource {
- }
-
- /**
- * The stage of the PrivateEndpointConnection definition allowing to specify parent resource.
- */
- interface WithParentResource {
- /**
- * Specifies resourceGroupName, resourceName.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @return the next definition stage.
- */
- WithCreate withExistingBotService(String resourceGroupName, String resourceName);
- }
-
- /**
- * The stage of the PrivateEndpointConnection definition which contains all the minimum required properties for
- * the resource to be created, but also allows for any other optional properties to be specified.
- */
- interface WithCreate extends DefinitionStages.WithPrivateEndpoint,
- DefinitionStages.WithPrivateLinkServiceConnectionState, DefinitionStages.WithGroupIds {
- /**
- * Executes the create request.
- *
- * @return the created resource.
- */
- PrivateEndpointConnection create();
-
- /**
- * Executes the create request.
- *
- * @param context The context to associate with this operation.
- * @return the created resource.
- */
- PrivateEndpointConnection create(Context context);
- }
-
- /**
- * The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint.
- */
- interface WithPrivateEndpoint {
- /**
- * Specifies the privateEndpoint property: The resource of private end point..
- *
- * @param privateEndpoint The resource of private end point.
- * @return the next definition stage.
- */
- WithCreate withPrivateEndpoint(PrivateEndpoint privateEndpoint);
- }
-
- /**
- * The stage of the PrivateEndpointConnection definition allowing to specify privateLinkServiceConnectionState.
- */
- interface WithPrivateLinkServiceConnectionState {
- /**
- * Specifies the privateLinkServiceConnectionState property: A collection of information about the state of
- * the connection between service consumer and provider..
- *
- * @param privateLinkServiceConnectionState A collection of information about the state of the connection
- * between service consumer and provider.
- * @return the next definition stage.
- */
- WithCreate withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState);
- }
-
- /**
- * The stage of the PrivateEndpointConnection definition allowing to specify groupIds.
- */
- interface WithGroupIds {
- /**
- * Specifies the groupIds property: Group ids.
- *
- * @param groupIds Group ids.
- * @return the next definition stage.
- */
- WithCreate withGroupIds(List groupIds);
- }
- }
-
- /**
- * Refreshes the resource to sync with Azure.
- *
- * @return the refreshed resource.
- */
- PrivateEndpointConnection refresh();
-
- /**
- * Refreshes the resource to sync with Azure.
- *
- * @param context The context to associate with this operation.
- * @return the refreshed resource.
- */
- PrivateEndpointConnection refresh(Context context);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionListResult.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionListResult.java
deleted file mode 100644
index b78531a0cefd0..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionListResult.java
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * List of private endpoint connection associated with the specified storage account.
- */
-@Fluent
-public final class PrivateEndpointConnectionListResult
- implements JsonSerializable {
- /*
- * Array of private endpoint connections
- */
- private List value;
-
- /**
- * Creates an instance of PrivateEndpointConnectionListResult class.
- */
- public PrivateEndpointConnectionListResult() {
- }
-
- /**
- * Get the value property: Array of private endpoint connections.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: Array of private endpoint connections.
- *
- * @param value the value value to set.
- * @return the PrivateEndpointConnectionListResult object itself.
- */
- public PrivateEndpointConnectionListResult withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateEndpointConnectionListResult from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateEndpointConnectionListResult if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PrivateEndpointConnectionListResult.
- */
- public static PrivateEndpointConnectionListResult fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateEndpointConnectionListResult deserializedPrivateEndpointConnectionListResult
- = new PrivateEndpointConnectionListResult();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- List value
- = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
- deserializedPrivateEndpointConnectionListResult.value = value;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateEndpointConnectionListResult;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionProvisioningState.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionProvisioningState.java
deleted file mode 100644
index 84f2d3255b40c..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnectionProvisioningState.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import java.util.Collection;
-
-/**
- * The current provisioning state.
- */
-public final class PrivateEndpointConnectionProvisioningState
- extends ExpandableStringEnum {
- /**
- * Static value Succeeded for PrivateEndpointConnectionProvisioningState.
- */
- public static final PrivateEndpointConnectionProvisioningState SUCCEEDED = fromString("Succeeded");
-
- /**
- * Static value Creating for PrivateEndpointConnectionProvisioningState.
- */
- public static final PrivateEndpointConnectionProvisioningState CREATING = fromString("Creating");
-
- /**
- * Static value Deleting for PrivateEndpointConnectionProvisioningState.
- */
- public static final PrivateEndpointConnectionProvisioningState DELETING = fromString("Deleting");
-
- /**
- * Static value Failed for PrivateEndpointConnectionProvisioningState.
- */
- public static final PrivateEndpointConnectionProvisioningState FAILED = fromString("Failed");
-
- /**
- * Creates a new instance of PrivateEndpointConnectionProvisioningState value.
- *
- * @deprecated Use the {@link #fromString(String)} factory method.
- */
- @Deprecated
- public PrivateEndpointConnectionProvisioningState() {
- }
-
- /**
- * Creates or finds a PrivateEndpointConnectionProvisioningState from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding PrivateEndpointConnectionProvisioningState.
- */
- public static PrivateEndpointConnectionProvisioningState fromString(String name) {
- return fromString(name, PrivateEndpointConnectionProvisioningState.class);
- }
-
- /**
- * Gets known PrivateEndpointConnectionProvisioningState values.
- *
- * @return known PrivateEndpointConnectionProvisioningState values.
- */
- public static Collection values() {
- return values(PrivateEndpointConnectionProvisioningState.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnections.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnections.java
deleted file mode 100644
index 9800e46117c4a..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointConnections.java
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-
-/**
- * Resource collection API of PrivateEndpointConnections.
- */
-public interface PrivateEndpointConnections {
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- PagedIterable list(String resourceGroupName, String resourceName);
-
- /**
- * List all the private endpoint connections associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- PagedIterable list(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response}.
- */
- Response getWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot.
- */
- PrivateEndpointConnection get(String resourceGroupName, String resourceName, String privateEndpointConnectionName);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- Response deleteWithResponse(String resourceGroupName, String resourceName,
- String privateEndpointConnectionName, Context context);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param id the resource ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response}.
- */
- PrivateEndpointConnection getById(String id);
-
- /**
- * Gets the specified private endpoint connection associated with the Bot.
- *
- * @param id the resource ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the Bot along with {@link Response}.
- */
- Response getByIdWithResponse(String id, Context context);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param id the resource ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- void deleteById(String id);
-
- /**
- * Deletes the specified private endpoint connection associated with the Bot.
- *
- * @param id the resource ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- Response deleteByIdWithResponse(String id, Context context);
-
- /**
- * Begins definition for a new PrivateEndpointConnection resource.
- *
- * @param name resource name.
- * @return the first stage of the new PrivateEndpointConnection definition.
- */
- PrivateEndpointConnection.DefinitionStages.Blank define(String name);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointServiceConnectionStatus.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointServiceConnectionStatus.java
deleted file mode 100644
index 6c0b6ef1140ba..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateEndpointServiceConnectionStatus.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import java.util.Collection;
-
-/**
- * The private endpoint connection status.
- */
-public final class PrivateEndpointServiceConnectionStatus
- extends ExpandableStringEnum {
- /**
- * Static value Pending for PrivateEndpointServiceConnectionStatus.
- */
- public static final PrivateEndpointServiceConnectionStatus PENDING = fromString("Pending");
-
- /**
- * Static value Approved for PrivateEndpointServiceConnectionStatus.
- */
- public static final PrivateEndpointServiceConnectionStatus APPROVED = fromString("Approved");
-
- /**
- * Static value Rejected for PrivateEndpointServiceConnectionStatus.
- */
- public static final PrivateEndpointServiceConnectionStatus REJECTED = fromString("Rejected");
-
- /**
- * Creates a new instance of PrivateEndpointServiceConnectionStatus value.
- *
- * @deprecated Use the {@link #fromString(String)} factory method.
- */
- @Deprecated
- public PrivateEndpointServiceConnectionStatus() {
- }
-
- /**
- * Creates or finds a PrivateEndpointServiceConnectionStatus from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding PrivateEndpointServiceConnectionStatus.
- */
- public static PrivateEndpointServiceConnectionStatus fromString(String name) {
- return fromString(name, PrivateEndpointServiceConnectionStatus.class);
- }
-
- /**
- * Gets known PrivateEndpointServiceConnectionStatus values.
- *
- * @return known PrivateEndpointServiceConnectionStatus values.
- */
- public static Collection values() {
- return values(PrivateEndpointServiceConnectionStatus.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResource.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResource.java
deleted file mode 100644
index 3e74b0aefb84f..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResource.java
+++ /dev/null
@@ -1,180 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceProperties;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * A private link resource.
- */
-@Fluent
-public final class PrivateLinkResource extends PrivateLinkResourceBase {
- /*
- * Resource properties.
- */
- private PrivateLinkResourceProperties innerProperties;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of PrivateLinkResource class.
- */
- public PrivateLinkResource() {
- }
-
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private PrivateLinkResourceProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the groupId property: The private link resource group id.
- *
- * @return the groupId value.
- */
- public String groupId() {
- return this.innerProperties() == null ? null : this.innerProperties().groupId();
- }
-
- /**
- * Get the requiredMembers property: The private link resource required member names.
- *
- * @return the requiredMembers value.
- */
- public List requiredMembers() {
- return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
- }
-
- /**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @return the requiredZoneNames value.
- */
- public List requiredZoneNames() {
- return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
- }
-
- /**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @param requiredZoneNames the requiredZoneNames value to set.
- * @return the PrivateLinkResource object itself.
- */
- public PrivateLinkResource withRequiredZoneNames(List requiredZoneNames) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateLinkResourceProperties();
- }
- this.innerProperties().withRequiredZoneNames(requiredZoneNames);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkResource from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkResource if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PrivateLinkResource.
- */
- public static PrivateLinkResource fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkResource deserializedPrivateLinkResource = new PrivateLinkResource();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedPrivateLinkResource.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedPrivateLinkResource.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedPrivateLinkResource.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedPrivateLinkResource.innerProperties = PrivateLinkResourceProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkResource;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceBase.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceBase.java
deleted file mode 100644
index 7c728c9004f67..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceBase.java
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.management.ProxyResource;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Private Link Resource Base
- *
- * Common fields that are returned in the response for all BotService Private Link Resources.
- */
-@Immutable
-public class PrivateLinkResourceBase extends ProxyResource {
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of PrivateLinkResourceBase class.
- */
- public PrivateLinkResourceBase() {
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkResourceBase from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkResourceBase if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PrivateLinkResourceBase.
- */
- public static PrivateLinkResourceBase fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkResourceBase deserializedPrivateLinkResourceBase = new PrivateLinkResourceBase();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedPrivateLinkResourceBase.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedPrivateLinkResourceBase.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedPrivateLinkResourceBase.type = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkResourceBase;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceListResult.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceListResult.java
deleted file mode 100644
index eada00eb05951..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResourceListResult.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-import java.util.List;
-
-/**
- * An immutable client-side representation of PrivateLinkResourceListResult.
- */
-public interface PrivateLinkResourceListResult {
- /**
- * Gets the value property: Array of private link resources.
- *
- * @return the value value.
- */
- List value();
-
- /**
- * Gets the inner com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner object.
- *
- * @return the inner object.
- */
- PrivateLinkResourceListResultInner innerModel();
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResources.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResources.java
deleted file mode 100644
index 652717004587b..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkResources.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-
-/**
- * Resource collection API of PrivateLinkResources.
- */
-public interface PrivateLinkResources {
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot along with {@link Response}.
- */
- Response listByBotResourceWithResponse(String resourceGroupName, String resourceName,
- Context context);
-
- /**
- * Gets the private link resources that need to be created for a Bot.
- *
- * @param resourceGroupName The name of the Bot resource group in the user subscription.
- * @param resourceName The name of the Bot resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources that need to be created for a Bot.
- */
- PrivateLinkResourceListResult listByBotResource(String resourceGroupName, String resourceName);
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkServiceConnectionState.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkServiceConnectionState.java
deleted file mode 100644
index 3aca2e5af2c56..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/PrivateLinkServiceConnectionState.java
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A collection of information about the state of the connection between service consumer and provider.
- */
-@Fluent
-public final class PrivateLinkServiceConnectionState implements JsonSerializable {
- /*
- * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- */
- private PrivateEndpointServiceConnectionStatus status;
-
- /*
- * The reason for approval/rejection of the connection.
- */
- private String description;
-
- /*
- * A message indicating if changes on the service provider require any updates on the consumer.
- */
- private String actionsRequired;
-
- /**
- * Creates an instance of PrivateLinkServiceConnectionState class.
- */
- public PrivateLinkServiceConnectionState() {
- }
-
- /**
- * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
- * service.
- *
- * @return the status value.
- */
- public PrivateEndpointServiceConnectionStatus status() {
- return this.status;
- }
-
- /**
- * Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
- * service.
- *
- * @param status the status value to set.
- * @return the PrivateLinkServiceConnectionState object itself.
- */
- public PrivateLinkServiceConnectionState withStatus(PrivateEndpointServiceConnectionStatus status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get the description property: The reason for approval/rejection of the connection.
- *
- * @return the description value.
- */
- public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: The reason for approval/rejection of the connection.
- *
- * @param description the description value to set.
- * @return the PrivateLinkServiceConnectionState object itself.
- */
- public PrivateLinkServiceConnectionState withDescription(String description) {
- this.description = description;
- return this;
- }
-
- /**
- * Get the actionsRequired property: A message indicating if changes on the service provider require any updates on
- * the consumer.
- *
- * @return the actionsRequired value.
- */
- public String actionsRequired() {
- return this.actionsRequired;
- }
-
- /**
- * Set the actionsRequired property: A message indicating if changes on the service provider require any updates on
- * the consumer.
- *
- * @param actionsRequired the actionsRequired value to set.
- * @return the PrivateLinkServiceConnectionState object itself.
- */
- public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
- this.actionsRequired = actionsRequired;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
- jsonWriter.writeStringField("description", this.description);
- jsonWriter.writeStringField("actionsRequired", this.actionsRequired);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkServiceConnectionState from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkServiceConnectionState if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PrivateLinkServiceConnectionState.
- */
- public static PrivateLinkServiceConnectionState fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkServiceConnectionState deserializedPrivateLinkServiceConnectionState
- = new PrivateLinkServiceConnectionState();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("status".equals(fieldName)) {
- deserializedPrivateLinkServiceConnectionState.status
- = PrivateEndpointServiceConnectionStatus.fromString(reader.getString());
- } else if ("description".equals(fieldName)) {
- deserializedPrivateLinkServiceConnectionState.description = reader.getString();
- } else if ("actionsRequired".equals(fieldName)) {
- deserializedPrivateLinkServiceConnectionState.actionsRequired = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkServiceConnectionState;
- });
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SearchAssistant.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SearchAssistant.java
index 6d1565602c67c..de0cdd8cf3a17 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SearchAssistant.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SearchAssistant.java
@@ -20,11 +20,6 @@ public final class SearchAssistant extends Channel {
*/
private String channelName = "SearchAssistant";
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of SearchAssistant class.
*/
@@ -41,16 +36,6 @@ public String channelName() {
return this.channelName;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -108,7 +93,7 @@ public static SearchAssistant fromJson(JsonReader jsonReader) throws IOException
if ("etag".equals(fieldName)) {
deserializedSearchAssistant.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedSearchAssistant.provisioningState = reader.getString();
+ deserializedSearchAssistant.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedSearchAssistant.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SkypeChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SkypeChannel.java
index fc0dc22f3f3da..4f6dd99fa4c5b 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SkypeChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SkypeChannel.java
@@ -25,11 +25,6 @@ public final class SkypeChannel extends Channel {
*/
private SkypeChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of SkypeChannel class.
*/
@@ -66,16 +61,6 @@ public SkypeChannel withProperties(SkypeChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static SkypeChannel fromJson(JsonReader jsonReader) throws IOException {
if ("etag".equals(fieldName)) {
deserializedSkypeChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedSkypeChannel.provisioningState = reader.getString();
+ deserializedSkypeChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedSkypeChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SlackChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SlackChannel.java
index 7b6809149eae4..fa9d49d1adae8 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SlackChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SlackChannel.java
@@ -25,11 +25,6 @@ public final class SlackChannel extends Channel {
*/
private SlackChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of SlackChannel class.
*/
@@ -66,16 +61,6 @@ public SlackChannel withProperties(SlackChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static SlackChannel fromJson(JsonReader jsonReader) throws IOException {
if ("etag".equals(fieldName)) {
deserializedSlackChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedSlackChannel.provisioningState = reader.getString();
+ deserializedSlackChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedSlackChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SmsChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SmsChannel.java
index 409d29b40597c..74eec690a6afd 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SmsChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/SmsChannel.java
@@ -25,11 +25,6 @@ public final class SmsChannel extends Channel {
*/
private SmsChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of SmsChannel class.
*/
@@ -66,16 +61,6 @@ public SmsChannel withProperties(SmsChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static SmsChannel fromJson(JsonReader jsonReader) throws IOException {
if ("etag".equals(fieldName)) {
deserializedSmsChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedSmsChannel.provisioningState = reader.getString();
+ deserializedSmsChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedSmsChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelegramChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelegramChannel.java
index faad99d227605..5c14a5f86bfc5 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelegramChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelegramChannel.java
@@ -25,11 +25,6 @@ public final class TelegramChannel extends Channel {
*/
private TelegramChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of TelegramChannel class.
*/
@@ -66,16 +61,6 @@ public TelegramChannel withProperties(TelegramChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static TelegramChannel fromJson(JsonReader jsonReader) throws IOException
if ("etag".equals(fieldName)) {
deserializedTelegramChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedTelegramChannel.provisioningState = reader.getString();
+ deserializedTelegramChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedTelegramChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelephonyChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelephonyChannel.java
index cb9acdf616711..4763d9f018c51 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelephonyChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/TelephonyChannel.java
@@ -25,11 +25,6 @@ public final class TelephonyChannel extends Channel {
*/
private TelephonyChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of TelephonyChannel class.
*/
@@ -66,16 +61,6 @@ public TelephonyChannel withProperties(TelephonyChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static TelephonyChannel fromJson(JsonReader jsonReader) throws IOExceptio
if ("etag".equals(fieldName)) {
deserializedTelephonyChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedTelephonyChannel.provisioningState = reader.getString();
+ deserializedTelephonyChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedTelephonyChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/WebChatChannel.java b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/WebChatChannel.java
index db71e0343b5a8..20ce5156f2b62 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/WebChatChannel.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/models/WebChatChannel.java
@@ -25,11 +25,6 @@ public final class WebChatChannel extends Channel {
*/
private WebChatChannelProperties properties;
- /*
- * Provisioning state of the resource
- */
- private String provisioningState;
-
/**
* Creates an instance of WebChatChannel class.
*/
@@ -66,16 +61,6 @@ public WebChatChannel withProperties(WebChatChannelProperties properties) {
return this;
}
- /**
- * Get the provisioningState property: Provisioning state of the resource.
- *
- * @return the provisioningState value.
- */
- @Override
- public String provisioningState() {
- return this.provisioningState;
- }
-
/**
* {@inheritDoc}
*/
@@ -137,7 +122,7 @@ public static WebChatChannel fromJson(JsonReader jsonReader) throws IOException
if ("etag".equals(fieldName)) {
deserializedWebChatChannel.withEtag(reader.getString());
} else if ("provisioningState".equals(fieldName)) {
- deserializedWebChatChannel.provisioningState = reader.getString();
+ deserializedWebChatChannel.withProvisioningState(reader.getString());
} else if ("location".equals(fieldName)) {
deserializedWebChatChannel.withLocation(reader.getString());
} else if ("channelName".equals(fieldName)) {
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-botservice/proxy-config.json b/sdk/botservice/azure-resourcemanager-botservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-botservice/proxy-config.json
index 36174a9f1e67e..0fa8e12c917d7 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-botservice/proxy-config.json
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-botservice/proxy-config.json
@@ -1 +1 @@
-[["com.azure.resourcemanager.botservice.implementation.BotConnectionsClientImpl$BotConnectionsService"],["com.azure.resourcemanager.botservice.implementation.BotsClientImpl$BotsService"],["com.azure.resourcemanager.botservice.implementation.ChannelsClientImpl$ChannelsService"],["com.azure.resourcemanager.botservice.implementation.DirectLinesClientImpl$DirectLinesService"],["com.azure.resourcemanager.botservice.implementation.HostSettingsClientImpl$HostSettingsService"],["com.azure.resourcemanager.botservice.implementation.OperationResultsClientImpl$OperationResultsService"],["com.azure.resourcemanager.botservice.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.botservice.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.botservice.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"]]
\ No newline at end of file
+[["com.azure.resourcemanager.botservice.implementation.BotConnectionsClientImpl$BotConnectionsService"],["com.azure.resourcemanager.botservice.implementation.BotsClientImpl$BotsService"],["com.azure.resourcemanager.botservice.implementation.ChannelsClientImpl$ChannelsService"],["com.azure.resourcemanager.botservice.implementation.DirectLinesClientImpl$DirectLinesService"],["com.azure.resourcemanager.botservice.implementation.HostSettingsClientImpl$HostSettingsService"],["com.azure.resourcemanager.botservice.implementation.OperationsClientImpl$OperationsService"]]
\ No newline at end of file
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionCreateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionCreateSamples.java
index 5da2469892a43..1b3dd91a957dd 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionCreateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionCreateSamples.java
@@ -14,8 +14,7 @@
public final class BotConnectionCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutConnection.json
*/
/**
* Sample code: Create Connection Setting.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionDeleteSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionDeleteSamples.java
index 02bc13a6fd600..e1a528d745e7b 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionDeleteSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionDeleteSamples.java
@@ -10,8 +10,7 @@
public final class BotConnectionDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * DeleteConnection.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteConnection.json
*/
/**
* Sample code: Delete Connection Setting.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionGetSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionGetSamples.java
index 532c67f44bf7b..329ad486dd6c2 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionGetSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionGetSamples.java
@@ -10,8 +10,7 @@
public final class BotConnectionGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetConnection.json
*/
/**
* Sample code: Get Connection Setting.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListByBotServiceSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListByBotServiceSamples.java
index 9a2354dd48efd..bc426548c1187 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListByBotServiceSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListByBotServiceSamples.java
@@ -9,8 +9,7 @@
*/
public final class BotConnectionListByBotServiceSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* ListConnectionsByBotService.json
*/
/**
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListServiceProvidersSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListServiceProvidersSamples.java
index d2b0236b58a4c..7f67aec29a87f 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListServiceProvidersSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListServiceProvidersSamples.java
@@ -10,8 +10,8 @@
public final class BotConnectionListServiceProvidersSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListServiceProviders.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListServiceProviders.
+ * json
*/
/**
* Sample code: List Auth Service Providers.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListWithSecretsSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListWithSecretsSamples.java
index 1621ebbcbdffd..b9ed43b81e19d 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListWithSecretsSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionListWithSecretsSamples.java
@@ -10,8 +10,7 @@
public final class BotConnectionListWithSecretsSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetConnection.json
*/
/**
* Sample code: List Connection Setting With Secrets.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionUpdateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionUpdateSamples.java
index 8499a2133f8bd..9c51d60a95328 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionUpdateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotConnectionUpdateSamples.java
@@ -15,8 +15,7 @@
public final class BotConnectionUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateConnection.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateConnection.json
*/
/**
* Sample code: Update Connection Setting.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsCreateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsCreateSamples.java
index da18b2edf3af6..e9494be936ba6 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsCreateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsCreateSamples.java
@@ -6,7 +6,6 @@
import com.azure.resourcemanager.botservice.models.BotProperties;
import com.azure.resourcemanager.botservice.models.Kind;
-import com.azure.resourcemanager.botservice.models.MsaAppType;
import com.azure.resourcemanager.botservice.models.PublicNetworkAccess;
import com.azure.resourcemanager.botservice.models.Sku;
import com.azure.resourcemanager.botservice.models.SkuName;
@@ -20,7 +19,7 @@
public final class BotsCreateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CreateBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/CreateBot.json
*/
/**
* Sample code: Create Bot.
@@ -37,11 +36,7 @@ public static void createBot(com.azure.resourcemanager.botservice.BotServiceMana
.withDescription("The description of the bot")
.withIconUrl("http://myicon")
.withEndpoint("http://mybot.coffee")
- .withMsaAppType(MsaAppType.USER_ASSIGNED_MSI)
.withMsaAppId("exampleappid")
- .withMsaAppTenantId("exampleapptenantid")
- .withMsaAppMsiResourceId(
- "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId")
.withDeveloperAppInsightKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApiKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApplicationId("appinsightsappid")
@@ -50,7 +45,6 @@ public static void createBot(com.azure.resourcemanager.botservice.BotServiceMana
.withIsCmekEnabled(true)
.withCmekKeyVaultUrl("fakeTokenPlaceholder")
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
- .withDisableLocalAuth(true)
.withSchemaTransformationVersion("1.0"))
.withSku(new Sku().withName(SkuName.S1))
.withKind(Kind.SDK)
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsDeleteSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsDeleteSamples.java
index c7f1869d986aa..a6e7351a81d1e 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsDeleteSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class BotsDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteBot.json
*/
/**
* Sample code: Delete Bot.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetByResourceGroupSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetByResourceGroupSamples.java
index 4ff491e174e52..24c41ef93576b 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetByResourceGroupSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class BotsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetBot.json
*/
/**
* Sample code: Get Bot.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetCheckNameAvailabilitySamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetCheckNameAvailabilitySamples.java
index b55a514671021..f9953b9365a36 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetCheckNameAvailabilitySamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsGetCheckNameAvailabilitySamples.java
@@ -12,8 +12,8 @@
public final class BotsGetCheckNameAvailabilitySamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * CheckNameAvailability.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/CheckNameAvailability.
+ * json
*/
/**
* Sample code: check Name Availability.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListByResourceGroupSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListByResourceGroupSamples.java
index 78666e6a12209..62582fe1c3c4a 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListByResourceGroupSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListByResourceGroupSamples.java
@@ -10,8 +10,8 @@
public final class BotsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListBotsByResourceGroup.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListBotsByResourceGroup
+ * .json
*/
/**
* Sample code: List Bots by Resource Group.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListSamples.java
index 3d6f178c90450..e7750d9a6a7d0 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsListSamples.java
@@ -10,8 +10,8 @@
public final class BotsListSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListBotsBySubscription.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListBotsBySubscription.
+ * json
*/
/**
* Sample code: List Bots by Subscription.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsUpdateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsUpdateSamples.java
index 0039db7ffe666..e52a52e63c2cd 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsUpdateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/BotsUpdateSamples.java
@@ -7,7 +7,6 @@
import com.azure.resourcemanager.botservice.models.Bot;
import com.azure.resourcemanager.botservice.models.BotProperties;
import com.azure.resourcemanager.botservice.models.Kind;
-import com.azure.resourcemanager.botservice.models.MsaAppType;
import com.azure.resourcemanager.botservice.models.PublicNetworkAccess;
import com.azure.resourcemanager.botservice.models.Sku;
import com.azure.resourcemanager.botservice.models.SkuName;
@@ -21,7 +20,7 @@
public final class BotsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateBot.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateBot.json
*/
/**
* Sample code: Update Bot.
@@ -38,11 +37,7 @@ public static void updateBot(com.azure.resourcemanager.botservice.BotServiceMana
.withDescription("The description of the bot")
.withIconUrl("http://myicon")
.withEndpoint("http://mybot.coffee")
- .withMsaAppType(MsaAppType.USER_ASSIGNED_MSI)
.withMsaAppId("msaappid")
- .withMsaAppTenantId("msaapptenantid")
- .withMsaAppMsiResourceId(
- "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId")
.withDeveloperAppInsightKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApiKey("fakeTokenPlaceholder")
.withDeveloperAppInsightsApplicationId("appinsightsappid")
@@ -51,7 +46,6 @@ public static void updateBot(com.azure.resourcemanager.botservice.BotServiceMana
.withIsCmekEnabled(true)
.withCmekKeyVaultUrl("fakeTokenPlaceholder")
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
- .withDisableLocalAuth(true)
.withSchemaTransformationVersion("1.0"))
.withSku(new Sku().withName(SkuName.S1))
.withKind(Kind.SDK)
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateSamples.java
index 6970ab1dea6f8..314cb853ed864 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateSamples.java
@@ -23,8 +23,7 @@
*/
public final class ChannelsCreateSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* PutDirectLineSpeechChannel.json
*/
/**
@@ -45,8 +44,7 @@ public static void createDirectLineSpeechChannel(com.azure.resourcemanager.botse
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutEmailChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutEmailChannel.json
*/
/**
* Sample code: Create Email Channel.
@@ -67,8 +65,7 @@ public static void createEmailChannel(com.azure.resourcemanager.botservice.BotSe
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json
*/
/**
* Sample code: Create Alexa Channel.
@@ -86,8 +83,7 @@ public static void createAlexaChannel(com.azure.resourcemanager.botservice.BotSe
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json
*/
/**
* Sample code: Create Channel.
@@ -107,8 +103,7 @@ public static void createChannel(com.azure.resourcemanager.botservice.BotService
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel
- * .json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json
*/
/**
* Sample code: Create Line Channel.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteSamples.java
index f8567eb3edbe3..5de4a321d1c21 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteSamples.java
@@ -10,8 +10,7 @@
public final class ChannelsDeleteSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/DeleteChannel.json
*/
/**
* Sample code: Delete Channel.
@@ -25,8 +24,7 @@ public static void deleteChannel(com.azure.resourcemanager.botservice.BotService
}
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* DeleteDirectLineSpeechChannel.json
*/
/**
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsGetSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsGetSamples.java
index ffd041587afe2..466d0d0ff885b 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsGetSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsGetSamples.java
@@ -9,8 +9,7 @@
*/
public final class ChannelsGetSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* GetDirectLineSpeechChannel.json
*/
/**
@@ -26,8 +25,7 @@ public static void getDirectLineSpeechChannel(com.azure.resourcemanager.botservi
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json
*/
/**
* Sample code: Get Alexa Channel.
@@ -41,8 +39,7 @@ public static void getAlexaChannel(com.azure.resourcemanager.botservice.BotServi
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel
- * .json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json
*/
/**
* Sample code: Get Line Channel.
@@ -56,8 +53,7 @@ public static void getLineChannel(com.azure.resourcemanager.botservice.BotServic
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json
*/
/**
* Sample code: Get Channel.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListByResourceGroupSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListByResourceGroupSamples.java
index 7856a93a557ee..c880722018677 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListByResourceGroupSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListByResourceGroupSamples.java
@@ -9,8 +9,7 @@
*/
public final class ChannelsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* ListChannelsByBotService.json
*/
/**
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListWithKeysSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListWithKeysSamples.java
index 4d5bcf8494144..8cbc49e583b58 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListWithKeysSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsListWithKeysSamples.java
@@ -12,8 +12,7 @@
public final class ChannelsListWithKeysSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannel.json
*/
/**
* Sample code: List Channel.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateSamples.java
index c57cc7b2610cf..46583603f8839 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateSamples.java
@@ -23,8 +23,7 @@
public final class ChannelsUpdateSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateAlexaChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json
*/
/**
* Sample code: Update Alexa Channel.
@@ -41,8 +40,7 @@ public static void updateAlexaChannel(com.azure.resourcemanager.botservice.BotSe
}
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* UpdateDirectLineSpeechChannel.json
*/
/**
@@ -63,8 +61,7 @@ public static void updateDirectLineSpeechChannel(com.azure.resourcemanager.botse
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * UpdateLineChannel.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json
*/
/**
* Sample code: Update Line Channel.
@@ -83,8 +80,7 @@ public static void updateLineChannel(com.azure.resourcemanager.botservice.BotSer
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json
*/
/**
* Sample code: Update Channel.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/DirectLineRegenerateKeysSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/DirectLineRegenerateKeysSamples.java
index 88ab9b731ad3e..f73b4417e4b79 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/DirectLineRegenerateKeysSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/DirectLineRegenerateKeysSamples.java
@@ -13,8 +13,7 @@
*/
public final class DirectLineRegenerateKeysSamples {
/*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
+ * x-ms-original-file: specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/
* DirectlineRegenerateKeys.json
*/
/**
@@ -32,8 +31,8 @@ public final class DirectLineRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * WebChatRegenerateKeys.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/WebChatRegenerateKeys.
+ * json
*/
/**
* Sample code: Regenerate Keys for WebChat Channel Site.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/HostSettingsGetSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/HostSettingsGetSamples.java
index aeb5a84842cdb..1ecdc4f189dff 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/HostSettingsGetSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/HostSettingsGetSamples.java
@@ -10,8 +10,7 @@
public final class HostSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetHostSettings.json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetHostSettings.json
*/
/**
* Sample code: Get Bot Host Settings.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationResultsGetSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationResultsGetSamples.java
deleted file mode 100644
index f3f59467d7339..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationResultsGetSamples.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-/**
- * Samples for OperationResults Get.
- */
-public final class OperationResultsGetSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * OperationResultsGet.json
- */
- /**
- * Sample code: Get operation result.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void getOperationResult(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.operationResults().get("exampleid", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationsListSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationsListSamples.java
index fab3431a17b18..ffc9ff64b6744 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationsListSamples.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/OperationsListSamples.java
@@ -10,8 +10,7 @@
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetOperations.
- * json
+ * specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetOperations.json
*/
/**
* Sample code: Get Operations.
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateSamples.java
deleted file mode 100644
index 9d4730787ca13..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateSamples.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-
-/**
- * Samples for PrivateEndpointConnections Create.
- */
-public final class PrivateEndpointConnectionsCreateSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * PutPrivateEndpointConnection.json
- */
- /**
- * Sample code: Put Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void putPrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .define("{privateEndpointConnectionName}")
- .withExistingBotService("res7687", "sto9699")
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Auto-Approved"))
- .create();
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteSamples.java
deleted file mode 100644
index 0568f4647da44..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteSamples.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-/**
- * Samples for PrivateEndpointConnections Delete.
- */
-public final class PrivateEndpointConnectionsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * DeletePrivateEndpointConnection.json
- */
- /**
- * Sample code: Delete Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void deletePrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .deleteWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}",
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetSamples.java
deleted file mode 100644
index 273c7d734537e..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetSamples.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-/**
- * Samples for PrivateEndpointConnections Get.
- */
-public final class PrivateEndpointConnectionsGetSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * GetPrivateEndpointConnection.json
- */
- /**
- * Sample code: Get Private Endpoint Connection.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void getPrivateEndpointConnection(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections()
- .getWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListSamples.java
deleted file mode 100644
index c002afc399da5..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListSamples.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-/**
- * Samples for PrivateEndpointConnections List.
- */
-public final class PrivateEndpointConnectionsListSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListPrivateEndpointConnections.json
- */
- /**
- * Sample code: List Private Endpoint Connections.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void listPrivateEndpointConnections(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateEndpointConnections().list("res6977", "sto2527", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceSamples.java b/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceSamples.java
deleted file mode 100644
index e584f8e796858..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/samples/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceSamples.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-/**
- * Samples for PrivateLinkResources ListByBotResource.
- */
-public final class PrivateLinkResourcesListByBotResourceSamples {
- /*
- * x-ms-original-file:
- * specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/
- * ListPrivateLinkResources.json
- */
- /**
- * Sample code: List Private Link Resources.
- *
- * @param manager Entry point to BotServiceManager.
- */
- public static void listPrivateLinkResources(com.azure.resourcemanager.botservice.BotServiceManager manager) {
- manager.privateLinkResources()
- .listByBotResourceWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AcsChatChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AcsChatChannelTests.java
index 01a3d05151bd3..ae46f24d1e865 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AcsChatChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AcsChatChannelTests.java
@@ -12,17 +12,17 @@ public final class AcsChatChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AcsChatChannel model = BinaryData.fromString(
- "{\"channelName\":\"AcsChatChannel\",\"etag\":\"nfqqnvwp\",\"provisioningState\":\"taruoujmkcj\",\"location\":\"qytjrybnwjewgd\"}")
+ "{\"channelName\":\"AcsChatChannel\",\"etag\":\"qytjrybnwjewgd\",\"provisioningState\":\"ervnaenqpehi\",\"location\":\"oygmift\"}")
.toObject(AcsChatChannel.class);
- Assertions.assertEquals("nfqqnvwp", model.etag());
- Assertions.assertEquals("qytjrybnwjewgd", model.location());
+ Assertions.assertEquals("qytjrybnwjewgd", model.etag());
+ Assertions.assertEquals("oygmift", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- AcsChatChannel model = new AcsChatChannel().withEtag("nfqqnvwp").withLocation("qytjrybnwjewgd");
+ AcsChatChannel model = new AcsChatChannel().withEtag("qytjrybnwjewgd").withLocation("oygmift");
model = BinaryData.fromObject(model).toObject(AcsChatChannel.class);
- Assertions.assertEquals("nfqqnvwp", model.etag());
- Assertions.assertEquals("qytjrybnwjewgd", model.location());
+ Assertions.assertEquals("qytjrybnwjewgd", model.etag());
+ Assertions.assertEquals("oygmift", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelPropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelPropertiesTests.java
index 443efbd7da2ca..e167d40e2fb93 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelPropertiesTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelPropertiesTests.java
@@ -12,17 +12,18 @@ public final class AlexaChannelPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AlexaChannelProperties model = BinaryData.fromString(
- "{\"alexaSkillId\":\"uutkncw\",\"urlFragment\":\"wsvlxotogtwrupqs\",\"serviceEndpointUri\":\"nmic\",\"isEnabled\":true}")
+ "{\"alexaSkillId\":\"azqugxywpmueefj\",\"urlFragment\":\"fqkquj\",\"serviceEndpointUri\":\"suyonobglaocq\",\"isEnabled\":false}")
.toObject(AlexaChannelProperties.class);
- Assertions.assertEquals("uutkncw", model.alexaSkillId());
- Assertions.assertEquals(true, model.isEnabled());
+ Assertions.assertEquals("azqugxywpmueefj", model.alexaSkillId());
+ Assertions.assertEquals(false, model.isEnabled());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- AlexaChannelProperties model = new AlexaChannelProperties().withAlexaSkillId("uutkncw").withIsEnabled(true);
+ AlexaChannelProperties model
+ = new AlexaChannelProperties().withAlexaSkillId("azqugxywpmueefj").withIsEnabled(false);
model = BinaryData.fromObject(model).toObject(AlexaChannelProperties.class);
- Assertions.assertEquals("uutkncw", model.alexaSkillId());
- Assertions.assertEquals(true, model.isEnabled());
+ Assertions.assertEquals("azqugxywpmueefj", model.alexaSkillId());
+ Assertions.assertEquals(false, model.isEnabled());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelTests.java
index 856ef2b338c47..3f0aebf309cf1 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/AlexaChannelTests.java
@@ -13,23 +13,23 @@ public final class AlexaChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AlexaChannel model = BinaryData.fromString(
- "{\"channelName\":\"AlexaChannel\",\"properties\":{\"alexaSkillId\":\"aiuebbaumnyqu\",\"urlFragment\":\"deoj\",\"serviceEndpointUri\":\"bckhsmtxpsi\",\"isEnabled\":true},\"etag\":\"fhvpesaps\",\"provisioningState\":\"dqmh\",\"location\":\"dhtldwkyz\"}")
+ "{\"channelName\":\"AlexaChannel\",\"properties\":{\"alexaSkillId\":\"ceoveilovno\",\"urlFragment\":\"fj\",\"serviceEndpointUri\":\"njbkcnxdhbttkph\",\"isEnabled\":false},\"etag\":\"nv\",\"provisioningState\":\"oqnermclfpl\",\"location\":\"oxuscrpabgyepsbj\"}")
.toObject(AlexaChannel.class);
- Assertions.assertEquals("fhvpesaps", model.etag());
- Assertions.assertEquals("dhtldwkyz", model.location());
- Assertions.assertEquals("aiuebbaumnyqu", model.properties().alexaSkillId());
- Assertions.assertEquals(true, model.properties().isEnabled());
+ Assertions.assertEquals("nv", model.etag());
+ Assertions.assertEquals("oxuscrpabgyepsbj", model.location());
+ Assertions.assertEquals("ceoveilovno", model.properties().alexaSkillId());
+ Assertions.assertEquals(false, model.properties().isEnabled());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- AlexaChannel model = new AlexaChannel().withEtag("fhvpesaps")
- .withLocation("dhtldwkyz")
- .withProperties(new AlexaChannelProperties().withAlexaSkillId("aiuebbaumnyqu").withIsEnabled(true));
+ AlexaChannel model = new AlexaChannel().withEtag("nv")
+ .withLocation("oxuscrpabgyepsbj")
+ .withProperties(new AlexaChannelProperties().withAlexaSkillId("ceoveilovno").withIsEnabled(false));
model = BinaryData.fromObject(model).toObject(AlexaChannel.class);
- Assertions.assertEquals("fhvpesaps", model.etag());
- Assertions.assertEquals("dhtldwkyz", model.location());
- Assertions.assertEquals("aiuebbaumnyqu", model.properties().alexaSkillId());
- Assertions.assertEquals(true, model.properties().isEnabled());
+ Assertions.assertEquals("nv", model.etag());
+ Assertions.assertEquals("oxuscrpabgyepsbj", model.location());
+ Assertions.assertEquals("ceoveilovno", model.properties().alexaSkillId());
+ Assertions.assertEquals(false, model.properties().isEnabled());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotChannelInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotChannelInnerTests.java
index cf0e2e9ff38b8..68da4afe2d2a7 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotChannelInnerTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotChannelInnerTests.java
@@ -18,33 +18,34 @@ public final class BotChannelInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
BotChannelInner model = BinaryData.fromString(
- "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"aozwyiftyhxhu\",\"provisioningState\":\"k\",\"location\":\"yxolniwp\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\"},\"kind\":\"designer\",\"etag\":\"iawxklry\",\"zones\":[\"ckbasyypndd\",\"sgcbac\",\"hejkotynqgou\"],\"location\":\"zndlikwy\",\"tags\":{\"rxybz\":\"fgibmadgakeq\",\"mnkzsmod\":\"qedqytbciqfoufl\"},\"id\":\"glougpbk\",\"name\":\"tmut\",\"type\":\"uqktap\"}")
+ "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"zrnf\",\"provisioningState\":\"xgispemvtzfkufu\",\"location\":\"jofxqe\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Free\"},\"kind\":\"azurebot\",\"etag\":\"qjbasvms\",\"zones\":[\"ulngsntn\",\"ybkzgcwr\",\"clxxwrljdo\",\"skcqvkocrcjd\"],\"location\":\"wtnhxbnjbiksqr\",\"tags\":{\"jfm\":\"sainqpjwnzl\",\"vmgxsab\":\"pee\",\"jczdzevndh\":\"yqduujit\",\"feusnhut\":\"rwpdappdsbdkvwrw\"},\"id\":\"eltmrldhugjzzdat\",\"name\":\"xhocdgeablgphuti\",\"type\":\"ndv\"}")
.toObject(BotChannelInner.class);
- Assertions.assertEquals("zndlikwy", model.location());
- Assertions.assertEquals("fgibmadgakeq", model.tags().get("rxybz"));
- Assertions.assertEquals("aozwyiftyhxhu", model.properties().etag());
- Assertions.assertEquals("yxolniwp", model.properties().location());
- Assertions.assertEquals(SkuName.S1, model.sku().name());
- Assertions.assertEquals(Kind.DESIGNER, model.kind());
- Assertions.assertEquals("iawxklry", model.etag());
+ Assertions.assertEquals("wtnhxbnjbiksqr", model.location());
+ Assertions.assertEquals("sainqpjwnzl", model.tags().get("jfm"));
+ Assertions.assertEquals("zrnf", model.properties().etag());
+ Assertions.assertEquals("jofxqe", model.properties().location());
+ Assertions.assertEquals(SkuName.F0, model.sku().name());
+ Assertions.assertEquals(Kind.AZUREBOT, model.kind());
+ Assertions.assertEquals("qjbasvms", model.etag());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- BotChannelInner model = new BotChannelInner().withLocation("zndlikwy")
- .withTags(mapOf("rxybz", "fgibmadgakeq", "mnkzsmod", "qedqytbciqfoufl"))
- .withProperties(new Channel().withEtag("aozwyiftyhxhu").withLocation("yxolniwp"))
- .withSku(new Sku().withName(SkuName.S1))
- .withKind(Kind.DESIGNER)
- .withEtag("iawxklry");
+ BotChannelInner model = new BotChannelInner().withLocation("wtnhxbnjbiksqr")
+ .withTags(
+ mapOf("jfm", "sainqpjwnzl", "vmgxsab", "pee", "jczdzevndh", "yqduujit", "feusnhut", "rwpdappdsbdkvwrw"))
+ .withProperties(new Channel().withEtag("zrnf").withLocation("jofxqe"))
+ .withSku(new Sku().withName(SkuName.F0))
+ .withKind(Kind.AZUREBOT)
+ .withEtag("qjbasvms");
model = BinaryData.fromObject(model).toObject(BotChannelInner.class);
- Assertions.assertEquals("zndlikwy", model.location());
- Assertions.assertEquals("fgibmadgakeq", model.tags().get("rxybz"));
- Assertions.assertEquals("aozwyiftyhxhu", model.properties().etag());
- Assertions.assertEquals("yxolniwp", model.properties().location());
- Assertions.assertEquals(SkuName.S1, model.sku().name());
- Assertions.assertEquals(Kind.DESIGNER, model.kind());
- Assertions.assertEquals("iawxklry", model.etag());
+ Assertions.assertEquals("wtnhxbnjbiksqr", model.location());
+ Assertions.assertEquals("sainqpjwnzl", model.tags().get("jfm"));
+ Assertions.assertEquals("zrnf", model.properties().etag());
+ Assertions.assertEquals("jofxqe", model.properties().location());
+ Assertions.assertEquals(SkuName.F0, model.sku().name());
+ Assertions.assertEquals(Kind.AZUREBOT, model.kind());
+ Assertions.assertEquals("qjbasvms", model.etag());
}
// Use "Map.of" if available
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotConnectionsDeleteWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotConnectionsDeleteWithResponseMockTests.java
index 5e6b6af1e72fc..e4b7f11c9a959 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotConnectionsDeleteWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotConnectionsDeleteWithResponseMockTests.java
@@ -27,7 +27,8 @@ public void testDeleteWithResponse() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.botConnections().deleteWithResponse("rlazszrnw", "iin", "fpwpjylwbt", com.azure.core.util.Context.NONE);
+ manager.botConnections()
+ .deleteWithResponse("frl", "zszrnwoiindfpw", "jylwbtlhflsj", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotsDeleteByResourceGroupWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotsDeleteByResourceGroupWithResponseMockTests.java
index ffb964fa46320..46e359423d15b 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotsDeleteByResourceGroupWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/BotsDeleteByResourceGroupWithResponseMockTests.java
@@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.bots()
- .deleteByResourceGroupWithResponse("vaolpsslqlf", "mdnbbglzpswiy", com.azure.core.util.Context.NONE);
+ manager.bots().deleteByResourceGroupWithResponse("lzpswiydm", "wyhzdx", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelResponseListTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelResponseListTests.java
index 6dd70fe942457..17dd94289d9d9 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelResponseListTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelResponseListTests.java
@@ -12,15 +12,15 @@ public final class ChannelResponseListTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ChannelResponseList model = BinaryData.fromString(
- "{\"nextLink\":\"jvtbvpyss\",\"value\":[{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"jq\",\"provisioningState\":\"hmuouqfprwzwbn\",\"location\":\"itnwuizgazxufi\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Free\"},\"kind\":\"azurebot\",\"etag\":\"rfidfvzwdz\",\"zones\":[\"ymwisdkft\"],\"location\":\"wxmnteiwao\",\"tags\":{\"pymzidnsezcxtbzs\":\"mijcmmxdcufufs\"},\"id\":\"fycc\",\"name\":\"newmdwzjeiachbo\",\"type\":\"sflnrosfqp\"}]}")
+ "{\"nextLink\":\"utduqktapspwgcu\",\"value\":[{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"kdosvqw\",\"provisioningState\":\"mdgbbjfdd\",\"location\":\"bmbexppbhtqqro\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Standard\"},\"kind\":\"azurebot\",\"etag\":\"gbquxigj\",\"zones\":[\"zjaoyfhrtxil\",\"erkujys\",\"l\",\"juvf\"],\"location\":\"awrlyx\",\"tags\":{\"nwbxgjvtbvpyssz\":\"cpr\",\"guhmuouqfpr\":\"nruj\"},\"id\":\"zw\",\"name\":\"nguitnwuizgazxu\",\"type\":\"izuckyfihrfidfvz\"},{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"uht\",\"provisioningState\":\"wisdkft\",\"location\":\"xmnteiwaop\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\"},\"kind\":\"function\",\"etag\":\"xdcu\",\"zones\":[\"srp\",\"mzidnsezcxtb\",\"sgfyccsnew\"],\"location\":\"dwzjeiach\",\"tags\":{\"eeh\":\"sflnrosfqp\",\"swjdkirso\":\"zvypyqrimzinp\"},\"id\":\"dqxhcrmnohjtckwh\",\"name\":\"soifiyipjxsqw\",\"type\":\"gr\"},{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"norcjxvsnbyxqab\",\"provisioningState\":\"ocpcy\",\"location\":\"urzafb\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Standard\"},\"kind\":\"designer\",\"etag\":\"qcjm\",\"zones\":[\"a\",\"bqidtqaj\",\"yulpkudjkr\"],\"location\":\"khbzhfepgzg\",\"tags\":{\"scpai\":\"zloc\",\"l\":\"rhhbcs\",\"bnbdxkqpxokajion\":\"mmajtjaodx\"},\"id\":\"imexgstxgcpodgma\",\"name\":\"jrmvdjwzrlo\",\"type\":\"mcl\"},{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"j\",\"provisioningState\":\"ejctbzaqsqsycb\",\"location\":\"fkgukdkexxppof\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Free\"},\"kind\":\"azurebot\",\"etag\":\"gddtocj\",\"zones\":[\"vpmouexhdzxib\",\"eojnxqbzvddn\"],\"location\":\"wndeicbtwnp\",\"tags\":{\"t\":\"qvuhrhcffcyddglm\",\"qciwqvhkhixuigdt\":\"jqkwpyeicx\"},\"id\":\"pbobjo\",\"name\":\"hm\",\"type\":\"w\"}]}")
.toObject(ChannelResponseList.class);
- Assertions.assertEquals("jvtbvpyss", model.nextLink());
+ Assertions.assertEquals("utduqktapspwgcu", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ChannelResponseList model = new ChannelResponseList().withNextLink("jvtbvpyss");
+ ChannelResponseList model = new ChannelResponseList().withNextLink("utduqktapspwgcu");
model = BinaryData.fromObject(model).toObject(ChannelResponseList.class);
- Assertions.assertEquals("jvtbvpyss", model.nextLink());
+ Assertions.assertEquals("utduqktapspwgcu", model.nextLink());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelTests.java
index 6c52ac3633f3f..1906a2c64f060 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelTests.java
@@ -12,17 +12,17 @@ public final class ChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
Channel model = BinaryData.fromString(
- "{\"channelName\":\"Channel\",\"etag\":\"wgcu\",\"provisioningState\":\"tumkdosvqwhbm\",\"location\":\"bbjfddgmbmbexp\"}")
+ "{\"channelName\":\"Channel\",\"etag\":\"ozwyiftyhxhuro\",\"provisioningState\":\"tyxolniwpwc\",\"location\":\"jfkgiawxk\"}")
.toObject(Channel.class);
- Assertions.assertEquals("wgcu", model.etag());
- Assertions.assertEquals("bbjfddgmbmbexp", model.location());
+ Assertions.assertEquals("ozwyiftyhxhuro", model.etag());
+ Assertions.assertEquals("jfkgiawxk", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Channel model = new Channel().withEtag("wgcu").withLocation("bbjfddgmbmbexp");
+ Channel model = new Channel().withEtag("ozwyiftyhxhuro").withLocation("jfkgiawxk");
model = BinaryData.fromObject(model).toObject(Channel.class);
- Assertions.assertEquals("wgcu", model.etag());
- Assertions.assertEquals("bbjfddgmbmbexp", model.location());
+ Assertions.assertEquals("ozwyiftyhxhuro", model.etag());
+ Assertions.assertEquals("jfkgiawxk", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateWithResponseMockTests.java
index 042db9687f687..229202bd2e799 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsCreateWithResponseMockTests.java
@@ -29,7 +29,7 @@ public final class ChannelsCreateWithResponseMockTests {
@Test
public void testCreateWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"lyc\",\"provisioningState\":\"uhpkxkgymar\",\"location\":\"n\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Free\"},\"kind\":\"sdk\",\"etag\":\"ky\",\"zones\":[\"eddgssofw\",\"mzqa\",\"krmnjijpxacqqud\"],\"location\":\"nbyxbaaabjyv\",\"tags\":{\"nevfdnw\":\"fimrzrtuzqogse\",\"euzsoi\":\"wmewzsyy\",\"thzvaytdwkqbrqu\":\"judpfrxt\",\"xiilivpdtiirqt\":\"paxh\"},\"id\":\"qoaxoruzfgs\",\"name\":\"uyfxrxxleptramxj\",\"type\":\"zwl\"}";
+ = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"itc\",\"provisioningState\":\"fcktqumiekke\",\"location\":\"ikh\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Free\"},\"kind\":\"sdk\",\"etag\":\"gge\",\"zones\":[\"nyga\",\"qidbqfatpxllrxcy\",\"moadsuvarmy\"],\"location\":\"dmjsjqb\",\"tags\":{\"kxkgymareqna\":\"yxxrwlycoduh\",\"ssofwqmzqa\":\"xqugjhkycubedd\",\"nbyxbaaabjyv\":\"krmnjijpxacqqud\",\"xnevfdnwn\":\"yffimrzrtuzqogs\"},\"id\":\"mewzsyyc\",\"name\":\"uzsoi\",\"type\":\"judpfrxt\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -39,24 +39,23 @@ public void testCreateWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
BotChannel response = manager.channels()
- .createWithResponse("wi", "fnjhfjxwmszkkfo", ChannelName.SEARCH_ASSISTANT,
- new BotChannelInner().withLocation("osphyoul")
- .withTags(mapOf("ag", "v", "cktqumiekkezzi", "rvimjwosytxitcsk", "bdunygaeqid", "hlyfjhdgqgg", "a",
- "qfatpxllrxcyjm"))
- .withProperties(new Channel().withEtag("fkzikfj").withLocation("ivx"))
+ .createWithResponse("cjzkzivgvvcna", "rhyrnxxmueed", ChannelName.FACEBOOK_CHANNEL,
+ new BotChannelInner().withLocation("fnjhfjxwmszkkfo")
+ .withTags(mapOf("jawneaiv", "yfkzik", "elsfeaen", "wczelpci", "dxbjhwuaanozj", "abfatkl"))
+ .withProperties(new Channel().withEtag("v").withLocation("d"))
.withSku(new Sku().withName(SkuName.F0))
- .withKind(Kind.DESIGNER)
- .withEtag("r"),
+ .withKind(Kind.FUNCTION)
+ .withEtag("gpiohgwxrtfudxe"),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("nbyxbaaabjyv", response.location());
- Assertions.assertEquals("fimrzrtuzqogse", response.tags().get("nevfdnw"));
- Assertions.assertEquals("lyc", response.properties().etag());
- Assertions.assertEquals("n", response.properties().location());
- Assertions.assertEquals(SkuName.S1, response.sku().name());
+ Assertions.assertEquals("dmjsjqb", response.location());
+ Assertions.assertEquals("yxxrwlycoduh", response.tags().get("kxkgymareqna"));
+ Assertions.assertEquals("itc", response.properties().etag());
+ Assertions.assertEquals("ikh", response.properties().location());
+ Assertions.assertEquals(SkuName.F0, response.sku().name());
Assertions.assertEquals(Kind.SDK, response.kind());
- Assertions.assertEquals("ky", response.etag());
+ Assertions.assertEquals("gge", response.etag());
}
// Use "Map.of" if available
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteWithResponseMockTests.java
index e267b9d41469e..38510ff298a46 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsDeleteWithResponseMockTests.java
@@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception {
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager.channels()
- .deleteWithResponse("aznqntoru", "sgsahmkycgr", "uwjuetaeburuvdmo", com.azure.core.util.Context.NONE);
+ manager.channels().deleteWithResponse("sgsahmkycgr", "uwjuetaeburuvdmo", "s", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsGetWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsGetWithResponseMockTests.java
index 0efb3abb511d0..54c6fd5a97ff4 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsGetWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsGetWithResponseMockTests.java
@@ -23,7 +23,7 @@ public final class ChannelsGetWithResponseMockTests {
@Test
public void testGetWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"fbtndoaong\",\"provisioningState\":\"cn\",\"location\":\"jitcjedftwwaez\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Free\"},\"kind\":\"sdk\",\"etag\":\"foqouicybx\",\"zones\":[\"gszufoxciqopid\"],\"location\":\"amcio\",\"tags\":{\"khnzbonlw\":\"haz\",\"dwbwhkszzcmrvexz\":\"toego\",\"owtlmnguxawqald\":\"vbtqgsfraoyzk\",\"bykutw\":\"yuuximerqfobwyzn\"},\"id\":\"fhpagmhrskdsnf\",\"name\":\"sd\",\"type\":\"akgtdlmkkzevdlh\"}";
+ = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"ntuji\",\"provisioningState\":\"jed\",\"location\":\"wwa\"},\"sku\":{\"name\":\"F0\",\"tier\":\"Standard\"},\"kind\":\"designer\",\"etag\":\"pzfoqoui\",\"zones\":[\"xarzgszufoxciq\",\"p\",\"doamciodhkha\",\"xkhnzbonlwnto\"],\"location\":\"gokdwbwhks\",\"tags\":{\"xztvbtqgsfraoyzk\":\"mrv\",\"yuuximerqfobwyzn\":\"owtlmnguxawqald\"},\"id\":\"bykutw\",\"name\":\"fhpagmhrskdsnf\",\"type\":\"sd\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -33,15 +33,15 @@ public void testGetWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
BotChannel response = manager.channels()
- .getWithResponse("s", "zlxwabmqoefkifr", "tpuqujmq", com.azure.core.util.Context.NONE)
+ .getWithResponse("zlxwabmqoefkifr", "tpuqujmq", "gkfbtndoaong", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("amcio", response.location());
- Assertions.assertEquals("haz", response.tags().get("khnzbonlw"));
- Assertions.assertEquals("fbtndoaong", response.properties().etag());
- Assertions.assertEquals("jitcjedftwwaez", response.properties().location());
- Assertions.assertEquals(SkuName.S1, response.sku().name());
- Assertions.assertEquals(Kind.SDK, response.kind());
- Assertions.assertEquals("foqouicybx", response.etag());
+ Assertions.assertEquals("gokdwbwhks", response.location());
+ Assertions.assertEquals("mrv", response.tags().get("xztvbtqgsfraoyzk"));
+ Assertions.assertEquals("ntuji", response.properties().etag());
+ Assertions.assertEquals("wwa", response.properties().location());
+ Assertions.assertEquals(SkuName.F0, response.sku().name());
+ Assertions.assertEquals(Kind.DESIGNER, response.kind());
+ Assertions.assertEquals("pzfoqoui", response.etag());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateWithResponseMockTests.java
index dd7194fe1693a..6f730cc087eb9 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateWithResponseMockTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ChannelsUpdateWithResponseMockTests.java
@@ -29,7 +29,7 @@ public final class ChannelsUpdateWithResponseMockTests {
@Test
public void testUpdateWithResponse() throws Exception {
String responseStr
- = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"uukzclewyhmlw\",\"provisioningState\":\"ztzp\",\"location\":\"ncckw\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\"},\"kind\":\"sdk\",\"etag\":\"buy\",\"zones\":[\"zfeqztppri\"],\"location\":\"lxorjaltolmncws\",\"tags\":{\"pfuvglsbjjca\":\"wcsdbnwdcfhucq\",\"t\":\"vxb\",\"mr\":\"udutnco\",\"f\":\"xqtvcofu\"},\"id\":\"vkg\",\"name\":\"u\",\"type\":\"gdknnqv\"}";
+ = "{\"properties\":{\"channelName\":\"Channel\",\"etag\":\"rbuukzclewyhmlwp\",\"provisioningState\":\"tzpofncckwyfzq\",\"location\":\"xxbuyq\"},\"sku\":{\"name\":\"S1\",\"tier\":\"Free\"},\"kind\":\"azurebot\",\"etag\":\"ppriol\",\"zones\":[\"jaltolmnc\",\"sobqw\",\"sdbnwdcfhucqdpf\"],\"location\":\"vglsbjjca\",\"tags\":{\"xqtvcofu\":\"bvtvudutncormr\",\"vkg\":\"f\"},\"id\":\"u\",\"name\":\"gdknnqv\",\"type\":\"aznqntoru\"}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
@@ -39,23 +39,24 @@ public void testUpdateWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
BotChannel response = manager.channels()
- .updateWithResponse("nwxuqlcvydyp", "tdooaoj", ChannelName.WEB_CHAT_CHANNEL,
- new BotChannelInner().withLocation("lyls")
- .withTags(mapOf("xsdszuempsb", "qjnsjervtia"))
- .withProperties(new Channel().withEtag("dkooebwnu").withLocation("dtjinfw"))
- .withSku(new Sku().withName(SkuName.F0))
- .withKind(Kind.DESIGNER)
- .withEtag("jvefkdlfoakggkfp"),
+ .updateWithResponse("thzvaytdwkqbrqu", "paxh", ChannelName.DIRECT_LINE_CHANNEL,
+ new BotChannelInner().withLocation("lwnwxuqlcvydyp")
+ .withTags(mapOf("ujhemmsbvdkcrodt", "ooaojkniodkooebw", "kdlfoa", "infwjlfltkacjve", "qblylsyxkqj",
+ "ggkfpagaowpul", "gxsds", "sjervti"))
+ .withProperties(new Channel().withEtag("livpdt").withLocation("d"))
+ .withSku(new Sku().withName(SkuName.S1))
+ .withKind(Kind.BOT)
+ .withEtag("fgsqu"),
com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("lxorjaltolmncws", response.location());
- Assertions.assertEquals("wcsdbnwdcfhucq", response.tags().get("pfuvglsbjjca"));
- Assertions.assertEquals("uukzclewyhmlw", response.properties().etag());
- Assertions.assertEquals("ncckw", response.properties().location());
+ Assertions.assertEquals("vglsbjjca", response.location());
+ Assertions.assertEquals("bvtvudutncormr", response.tags().get("xqtvcofu"));
+ Assertions.assertEquals("rbuukzclewyhmlwp", response.properties().etag());
+ Assertions.assertEquals("xxbuyq", response.properties().location());
Assertions.assertEquals(SkuName.S1, response.sku().name());
- Assertions.assertEquals(Kind.SDK, response.kind());
- Assertions.assertEquals("buy", response.etag());
+ Assertions.assertEquals(Kind.AZUREBOT, response.kind());
+ Assertions.assertEquals("ppriol", response.etag());
}
// Use "Map.of" if available
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/CheckNameAvailabilityRequestBodyTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/CheckNameAvailabilityRequestBodyTests.java
index aa5ee9e52755d..19c5add2b857e 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/CheckNameAvailabilityRequestBodyTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/CheckNameAvailabilityRequestBodyTests.java
@@ -11,18 +11,19 @@
public final class CheckNameAvailabilityRequestBodyTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- CheckNameAvailabilityRequestBody model = BinaryData.fromString("{\"name\":\"ypyqrimzinp\",\"type\":\"wjdk\"}")
- .toObject(CheckNameAvailabilityRequestBody.class);
- Assertions.assertEquals("ypyqrimzinp", model.name());
- Assertions.assertEquals("wjdk", model.type());
+ CheckNameAvailabilityRequestBody model
+ = BinaryData.fromString("{\"name\":\"hrzayvvtpgvdf\",\"type\":\"otkftutqxlngx\"}")
+ .toObject(CheckNameAvailabilityRequestBody.class);
+ Assertions.assertEquals("hrzayvvtpgvdf", model.name());
+ Assertions.assertEquals("otkftutqxlngx", model.type());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
CheckNameAvailabilityRequestBody model
- = new CheckNameAvailabilityRequestBody().withName("ypyqrimzinp").withType("wjdk");
+ = new CheckNameAvailabilityRequestBody().withName("hrzayvvtpgvdf").withType("otkftutqxlngx");
model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequestBody.class);
- Assertions.assertEquals("ypyqrimzinp", model.name());
- Assertions.assertEquals("wjdk", model.type());
+ Assertions.assertEquals("hrzayvvtpgvdf", model.name());
+ Assertions.assertEquals("otkftutqxlngx", model.type());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/M365ExtensionsTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/M365ExtensionsTests.java
index 19a912a3c446b..c893391623fc7 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/M365ExtensionsTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/M365ExtensionsTests.java
@@ -12,17 +12,17 @@ public final class M365ExtensionsTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
M365Extensions model = BinaryData.fromString(
- "{\"channelName\":\"M365Extensions\",\"etag\":\"nayqi\",\"provisioningState\":\"nduhavhqlkthum\",\"location\":\"olbgycduiertgccy\"}")
+ "{\"channelName\":\"M365Extensions\",\"etag\":\"olbgycduiertgccy\",\"provisioningState\":\"aolps\",\"location\":\"qlfmmdnbb\"}")
.toObject(M365Extensions.class);
- Assertions.assertEquals("nayqi", model.etag());
- Assertions.assertEquals("olbgycduiertgccy", model.location());
+ Assertions.assertEquals("olbgycduiertgccy", model.etag());
+ Assertions.assertEquals("qlfmmdnbb", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- M365Extensions model = new M365Extensions().withEtag("nayqi").withLocation("olbgycduiertgccy");
+ M365Extensions model = new M365Extensions().withEtag("olbgycduiertgccy").withLocation("qlfmmdnbb");
model = BinaryData.fromObject(model).toObject(M365Extensions.class);
- Assertions.assertEquals("nayqi", model.etag());
- Assertions.assertEquals("olbgycduiertgccy", model.location());
+ Assertions.assertEquals("olbgycduiertgccy", model.etag());
+ Assertions.assertEquals("qlfmmdnbb", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelPropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelPropertiesTests.java
index bdccfc7d0fbcf..3babe8d8e0309 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelPropertiesTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelPropertiesTests.java
@@ -12,30 +12,30 @@ public final class MsTeamsChannelPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
MsTeamsChannelProperties model = BinaryData.fromString(
- "{\"enableCalling\":false,\"callingWebhook\":\"vfadmws\",\"isEnabled\":true,\"incomingCallRoute\":\"gvxp\",\"deploymentEnvironment\":\"omzlfmi\",\"acceptedTerms\":false}")
+ "{\"enableCalling\":false,\"callingWebhook\":\"sgwbnbbeld\",\"isEnabled\":false,\"incomingCallRoute\":\"zbaliourqha\",\"deploymentEnvironment\":\"uhashsfwx\",\"acceptedTerms\":false}")
.toObject(MsTeamsChannelProperties.class);
Assertions.assertEquals(false, model.enableCalling());
- Assertions.assertEquals("vfadmws", model.callingWebhook());
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("gvxp", model.incomingCallRoute());
- Assertions.assertEquals("omzlfmi", model.deploymentEnvironment());
+ Assertions.assertEquals("sgwbnbbeld", model.callingWebhook());
+ Assertions.assertEquals(false, model.isEnabled());
+ Assertions.assertEquals("zbaliourqha", model.incomingCallRoute());
+ Assertions.assertEquals("uhashsfwx", model.deploymentEnvironment());
Assertions.assertEquals(false, model.acceptedTerms());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
MsTeamsChannelProperties model = new MsTeamsChannelProperties().withEnableCalling(false)
- .withCallingWebhook("vfadmws")
- .withIsEnabled(true)
- .withIncomingCallRoute("gvxp")
- .withDeploymentEnvironment("omzlfmi")
+ .withCallingWebhook("sgwbnbbeld")
+ .withIsEnabled(false)
+ .withIncomingCallRoute("zbaliourqha")
+ .withDeploymentEnvironment("uhashsfwx")
.withAcceptedTerms(false);
model = BinaryData.fromObject(model).toObject(MsTeamsChannelProperties.class);
Assertions.assertEquals(false, model.enableCalling());
- Assertions.assertEquals("vfadmws", model.callingWebhook());
- Assertions.assertEquals(true, model.isEnabled());
- Assertions.assertEquals("gvxp", model.incomingCallRoute());
- Assertions.assertEquals("omzlfmi", model.deploymentEnvironment());
+ Assertions.assertEquals("sgwbnbbeld", model.callingWebhook());
+ Assertions.assertEquals(false, model.isEnabled());
+ Assertions.assertEquals("zbaliourqha", model.incomingCallRoute());
+ Assertions.assertEquals("uhashsfwx", model.deploymentEnvironment());
Assertions.assertEquals(false, model.acceptedTerms());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelTests.java
index b22814a0f610d..cf8ab3160fdbc 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/MsTeamsChannelTests.java
@@ -13,36 +13,36 @@ public final class MsTeamsChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
MsTeamsChannel model = BinaryData.fromString(
- "{\"channelName\":\"MsTeamsChannel\",\"properties\":{\"enableCalling\":false,\"callingWebhook\":\"sbkyvpycanuzbp\",\"isEnabled\":true,\"incomingCallRoute\":\"fkuwbcrnwbmehhse\",\"deploymentEnvironment\":\"jusrtslhspk\",\"acceptedTerms\":true},\"etag\":\"aofmxagkvtme\",\"provisioningState\":\"qkrhahvljua\",\"location\":\"quhcdhmduala\"}")
+ "{\"channelName\":\"MsTeamsChannel\",\"properties\":{\"enableCalling\":true,\"callingWebhook\":\"mx\",\"isEnabled\":true,\"incomingCallRoute\":\"vt\",\"deploymentEnvironment\":\"lmqkrhahvlj\",\"acceptedTerms\":false},\"etag\":\"quhcdhmduala\",\"provisioningState\":\"qpv\",\"location\":\"dmwsrcrgvxpvgomz\"}")
.toObject(MsTeamsChannel.class);
- Assertions.assertEquals("aofmxagkvtme", model.etag());
- Assertions.assertEquals("quhcdhmduala", model.location());
- Assertions.assertEquals(false, model.properties().enableCalling());
- Assertions.assertEquals("sbkyvpycanuzbp", model.properties().callingWebhook());
+ Assertions.assertEquals("quhcdhmduala", model.etag());
+ Assertions.assertEquals("dmwsrcrgvxpvgomz", model.location());
+ Assertions.assertEquals(true, model.properties().enableCalling());
+ Assertions.assertEquals("mx", model.properties().callingWebhook());
Assertions.assertEquals(true, model.properties().isEnabled());
- Assertions.assertEquals("fkuwbcrnwbmehhse", model.properties().incomingCallRoute());
- Assertions.assertEquals("jusrtslhspk", model.properties().deploymentEnvironment());
- Assertions.assertEquals(true, model.properties().acceptedTerms());
+ Assertions.assertEquals("vt", model.properties().incomingCallRoute());
+ Assertions.assertEquals("lmqkrhahvlj", model.properties().deploymentEnvironment());
+ Assertions.assertEquals(false, model.properties().acceptedTerms());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- MsTeamsChannel model = new MsTeamsChannel().withEtag("aofmxagkvtme")
- .withLocation("quhcdhmduala")
- .withProperties(new MsTeamsChannelProperties().withEnableCalling(false)
- .withCallingWebhook("sbkyvpycanuzbp")
+ MsTeamsChannel model = new MsTeamsChannel().withEtag("quhcdhmduala")
+ .withLocation("dmwsrcrgvxpvgomz")
+ .withProperties(new MsTeamsChannelProperties().withEnableCalling(true)
+ .withCallingWebhook("mx")
.withIsEnabled(true)
- .withIncomingCallRoute("fkuwbcrnwbmehhse")
- .withDeploymentEnvironment("jusrtslhspk")
- .withAcceptedTerms(true));
+ .withIncomingCallRoute("vt")
+ .withDeploymentEnvironment("lmqkrhahvlj")
+ .withAcceptedTerms(false));
model = BinaryData.fromObject(model).toObject(MsTeamsChannel.class);
- Assertions.assertEquals("aofmxagkvtme", model.etag());
- Assertions.assertEquals("quhcdhmduala", model.location());
- Assertions.assertEquals(false, model.properties().enableCalling());
- Assertions.assertEquals("sbkyvpycanuzbp", model.properties().callingWebhook());
+ Assertions.assertEquals("quhcdhmduala", model.etag());
+ Assertions.assertEquals("dmwsrcrgvxpvgomz", model.location());
+ Assertions.assertEquals(true, model.properties().enableCalling());
+ Assertions.assertEquals("mx", model.properties().callingWebhook());
Assertions.assertEquals(true, model.properties().isEnabled());
- Assertions.assertEquals("fkuwbcrnwbmehhse", model.properties().incomingCallRoute());
- Assertions.assertEquals("jusrtslhspk", model.properties().deploymentEnvironment());
- Assertions.assertEquals(true, model.properties().acceptedTerms());
+ Assertions.assertEquals("vt", model.properties().incomingCallRoute());
+ Assertions.assertEquals("lmqkrhahvlj", model.properties().deploymentEnvironment());
+ Assertions.assertEquals(false, model.properties().acceptedTerms());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OmnichannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OmnichannelTests.java
index 33732b8d247db..2b8e8cb9185d1 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OmnichannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OmnichannelTests.java
@@ -12,17 +12,17 @@ public final class OmnichannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
Omnichannel model = BinaryData.fromString(
- "{\"channelName\":\"Omnichannel\",\"etag\":\"qeqxo\",\"provisioningState\":\"dahzxctobg\",\"location\":\"dmoizpostmg\"}")
+ "{\"channelName\":\"Omnichannel\",\"etag\":\"rmfqjhhkxbpvj\",\"provisioningState\":\"jhxxjyn\",\"location\":\"divkrt\"}")
.toObject(Omnichannel.class);
- Assertions.assertEquals("qeqxo", model.etag());
- Assertions.assertEquals("dmoizpostmg", model.location());
+ Assertions.assertEquals("rmfqjhhkxbpvj", model.etag());
+ Assertions.assertEquals("divkrt", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Omnichannel model = new Omnichannel().withEtag("qeqxo").withLocation("dmoizpostmg");
+ Omnichannel model = new Omnichannel().withEtag("rmfqjhhkxbpvj").withLocation("divkrt");
model = BinaryData.fromObject(model).toObject(Omnichannel.class);
- Assertions.assertEquals("qeqxo", model.etag());
- Assertions.assertEquals("dmoizpostmg", model.location());
+ Assertions.assertEquals("rmfqjhhkxbpvj", model.etag());
+ Assertions.assertEquals("divkrt", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationDisplayInfoTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationDisplayInfoTests.java
index fc9c2ef8211c0..17a7c7626dba5 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationDisplayInfoTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationDisplayInfoTests.java
@@ -12,24 +12,24 @@ public final class OperationDisplayInfoTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OperationDisplayInfo model = BinaryData.fromString(
- "{\"description\":\"jqkwpyeicx\",\"operation\":\"ciwqvhk\",\"provider\":\"xuigdtopbobj\",\"resource\":\"hm\"}")
+ "{\"description\":\"chcbonqvpkvlrxnj\",\"operation\":\"seiphe\",\"provider\":\"lokeyy\",\"resource\":\"nj\"}")
.toObject(OperationDisplayInfo.class);
- Assertions.assertEquals("jqkwpyeicx", model.description());
- Assertions.assertEquals("ciwqvhk", model.operation());
- Assertions.assertEquals("xuigdtopbobj", model.provider());
- Assertions.assertEquals("hm", model.resource());
+ Assertions.assertEquals("chcbonqvpkvlrxnj", model.description());
+ Assertions.assertEquals("seiphe", model.operation());
+ Assertions.assertEquals("lokeyy", model.provider());
+ Assertions.assertEquals("nj", model.resource());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- OperationDisplayInfo model = new OperationDisplayInfo().withDescription("jqkwpyeicx")
- .withOperation("ciwqvhk")
- .withProvider("xuigdtopbobj")
- .withResource("hm");
+ OperationDisplayInfo model = new OperationDisplayInfo().withDescription("chcbonqvpkvlrxnj")
+ .withOperation("seiphe")
+ .withProvider("lokeyy")
+ .withResource("nj");
model = BinaryData.fromObject(model).toObject(OperationDisplayInfo.class);
- Assertions.assertEquals("jqkwpyeicx", model.description());
- Assertions.assertEquals("ciwqvhk", model.operation());
- Assertions.assertEquals("xuigdtopbobj", model.provider());
- Assertions.assertEquals("hm", model.resource());
+ Assertions.assertEquals("chcbonqvpkvlrxnj", model.description());
+ Assertions.assertEquals("seiphe", model.operation());
+ Assertions.assertEquals("lokeyy", model.provider());
+ Assertions.assertEquals("nj", model.resource());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityInnerTests.java
index 1d7f1341e8619..180a2d38f2640 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityInnerTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityInnerTests.java
@@ -13,31 +13,31 @@ public final class OperationEntityInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OperationEntityInner model = BinaryData.fromString(
- "{\"name\":\"fmxa\",\"display\":{\"description\":\"jpgd\",\"operation\":\"ocjjxhvpmouexh\",\"provider\":\"xibqeojnx\",\"resource\":\"zvddntwndeicbtwn\"},\"origin\":\"aoqvuh\",\"properties\":\"datacffcyddglmj\"}")
+ "{\"name\":\"mivkwlzuvcc\",\"display\":{\"description\":\"fnba\",\"operation\":\"ionle\",\"provider\":\"etqgtzxdpnq\",\"resource\":\"qwxrjfeallnw\"},\"origin\":\"bisnja\",\"properties\":\"datamngnzscxaqw\"}")
.toObject(OperationEntityInner.class);
- Assertions.assertEquals("fmxa", model.name());
- Assertions.assertEquals("jpgd", model.display().description());
- Assertions.assertEquals("ocjjxhvpmouexh", model.display().operation());
- Assertions.assertEquals("xibqeojnx", model.display().provider());
- Assertions.assertEquals("zvddntwndeicbtwn", model.display().resource());
- Assertions.assertEquals("aoqvuh", model.origin());
+ Assertions.assertEquals("mivkwlzuvcc", model.name());
+ Assertions.assertEquals("fnba", model.display().description());
+ Assertions.assertEquals("ionle", model.display().operation());
+ Assertions.assertEquals("etqgtzxdpnq", model.display().provider());
+ Assertions.assertEquals("qwxrjfeallnw", model.display().resource());
+ Assertions.assertEquals("bisnja", model.origin());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- OperationEntityInner model = new OperationEntityInner().withName("fmxa")
- .withDisplay(new OperationDisplayInfo().withDescription("jpgd")
- .withOperation("ocjjxhvpmouexh")
- .withProvider("xibqeojnx")
- .withResource("zvddntwndeicbtwn"))
- .withOrigin("aoqvuh")
- .withProperties("datacffcyddglmj");
+ OperationEntityInner model = new OperationEntityInner().withName("mivkwlzuvcc")
+ .withDisplay(new OperationDisplayInfo().withDescription("fnba")
+ .withOperation("ionle")
+ .withProvider("etqgtzxdpnq")
+ .withResource("qwxrjfeallnw"))
+ .withOrigin("bisnja")
+ .withProperties("datamngnzscxaqw");
model = BinaryData.fromObject(model).toObject(OperationEntityInner.class);
- Assertions.assertEquals("fmxa", model.name());
- Assertions.assertEquals("jpgd", model.display().description());
- Assertions.assertEquals("ocjjxhvpmouexh", model.display().operation());
- Assertions.assertEquals("xibqeojnx", model.display().provider());
- Assertions.assertEquals("zvddntwndeicbtwn", model.display().resource());
- Assertions.assertEquals("aoqvuh", model.origin());
+ Assertions.assertEquals("mivkwlzuvcc", model.name());
+ Assertions.assertEquals("fnba", model.display().description());
+ Assertions.assertEquals("ionle", model.display().operation());
+ Assertions.assertEquals("etqgtzxdpnq", model.display().provider());
+ Assertions.assertEquals("qwxrjfeallnw", model.display().resource());
+ Assertions.assertEquals("bisnja", model.origin());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityListResultTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityListResultTests.java
index ce9711b13b675..60c061930592d 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityListResultTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationEntityListResultTests.java
@@ -15,49 +15,34 @@ public final class OperationEntityListResultTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OperationEntityListResult model = BinaryData.fromString(
- "{\"nextLink\":\"nohjt\",\"value\":[{\"name\":\"dsoifiyipj\",\"display\":{\"description\":\"wpgrjbzno\",\"operation\":\"jxvsnbyxqabn\",\"provider\":\"cpc\",\"resource\":\"hurzafblj\"},\"origin\":\"pbtoqcjmkl\",\"properties\":\"datavbqid\"},{\"name\":\"ajzyul\",\"display\":{\"description\":\"dj\",\"operation\":\"lkhbz\",\"provider\":\"epgzgqexz\",\"resource\":\"c\"},\"origin\":\"c\",\"properties\":\"dataierhhbcsglummaj\"},{\"name\":\"aodxo\",\"display\":{\"description\":\"dxkqpx\",\"operation\":\"ajionpimexgstxg\",\"provider\":\"odgmaajrmvdjwz\",\"resource\":\"ovmclwhijcoejct\"},\"origin\":\"aqsqsycbkbfk\",\"properties\":\"datakdkexxp\"}]}")
+ "{\"nextLink\":\"qdrabhjybigehoqf\",\"value\":[{\"name\":\"kanyktzlcuiywg\",\"display\":{\"description\":\"gndrvynh\",\"operation\":\"pphrcgynco\",\"provider\":\"ecfvmm\",\"resource\":\"ofsx\"},\"origin\":\"evgbmqjq\",\"properties\":\"datac\"}]}")
.toObject(OperationEntityListResult.class);
- Assertions.assertEquals("nohjt", model.nextLink());
- Assertions.assertEquals("dsoifiyipj", model.value().get(0).name());
- Assertions.assertEquals("wpgrjbzno", model.value().get(0).display().description());
- Assertions.assertEquals("jxvsnbyxqabn", model.value().get(0).display().operation());
- Assertions.assertEquals("cpc", model.value().get(0).display().provider());
- Assertions.assertEquals("hurzafblj", model.value().get(0).display().resource());
- Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin());
+ Assertions.assertEquals("qdrabhjybigehoqf", model.nextLink());
+ Assertions.assertEquals("kanyktzlcuiywg", model.value().get(0).name());
+ Assertions.assertEquals("gndrvynh", model.value().get(0).display().description());
+ Assertions.assertEquals("pphrcgynco", model.value().get(0).display().operation());
+ Assertions.assertEquals("ecfvmm", model.value().get(0).display().provider());
+ Assertions.assertEquals("ofsx", model.value().get(0).display().resource());
+ Assertions.assertEquals("evgbmqjq", model.value().get(0).origin());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- OperationEntityListResult model = new OperationEntityListResult().withNextLink("nohjt")
- .withValue(Arrays.asList(
- new OperationEntityInner().withName("dsoifiyipj")
- .withDisplay(new OperationDisplayInfo().withDescription("wpgrjbzno")
- .withOperation("jxvsnbyxqabn")
- .withProvider("cpc")
- .withResource("hurzafblj"))
- .withOrigin("pbtoqcjmkl")
- .withProperties("datavbqid"),
- new OperationEntityInner().withName("ajzyul")
- .withDisplay(new OperationDisplayInfo().withDescription("dj")
- .withOperation("lkhbz")
- .withProvider("epgzgqexz")
- .withResource("c"))
- .withOrigin("c")
- .withProperties("dataierhhbcsglummaj"),
- new OperationEntityInner().withName("aodxo")
- .withDisplay(new OperationDisplayInfo().withDescription("dxkqpx")
- .withOperation("ajionpimexgstxg")
- .withProvider("odgmaajrmvdjwz")
- .withResource("ovmclwhijcoejct"))
- .withOrigin("aqsqsycbkbfk")
- .withProperties("datakdkexxp")));
+ OperationEntityListResult model = new OperationEntityListResult().withNextLink("qdrabhjybigehoqf")
+ .withValue(Arrays.asList(new OperationEntityInner().withName("kanyktzlcuiywg")
+ .withDisplay(new OperationDisplayInfo().withDescription("gndrvynh")
+ .withOperation("pphrcgynco")
+ .withProvider("ecfvmm")
+ .withResource("ofsx"))
+ .withOrigin("evgbmqjq")
+ .withProperties("datac")));
model = BinaryData.fromObject(model).toObject(OperationEntityListResult.class);
- Assertions.assertEquals("nohjt", model.nextLink());
- Assertions.assertEquals("dsoifiyipj", model.value().get(0).name());
- Assertions.assertEquals("wpgrjbzno", model.value().get(0).display().description());
- Assertions.assertEquals("jxvsnbyxqabn", model.value().get(0).display().operation());
- Assertions.assertEquals("cpc", model.value().get(0).display().provider());
- Assertions.assertEquals("hurzafblj", model.value().get(0).display().resource());
- Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin());
+ Assertions.assertEquals("qdrabhjybigehoqf", model.nextLink());
+ Assertions.assertEquals("kanyktzlcuiywg", model.value().get(0).name());
+ Assertions.assertEquals("gndrvynh", model.value().get(0).display().description());
+ Assertions.assertEquals("pphrcgynco", model.value().get(0).display().operation());
+ Assertions.assertEquals("ecfvmm", model.value().get(0).display().provider());
+ Assertions.assertEquals("ofsx", model.value().get(0).display().resource());
+ Assertions.assertEquals("evgbmqjq", model.value().get(0).origin());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationResultsDescriptionInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationResultsDescriptionInnerTests.java
deleted file mode 100644
index 5b20df052f472..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OperationResultsDescriptionInnerTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.OperationResultsDescriptionInner;
-
-public final class OperationResultsDescriptionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationResultsDescriptionInner model = BinaryData.fromString(
- "{\"id\":\"kcciwwzjuqkhr\",\"name\":\"jiwkuofoskghsau\",\"status\":\"Canceled\",\"startTime\":\"2021-01-11T01:27:45Z\"}")
- .toObject(OperationResultsDescriptionInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationResultsDescriptionInner model = new OperationResultsDescriptionInner();
- model = BinaryData.fromObject(model).toObject(OperationResultsDescriptionInner.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OutlookChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OutlookChannelTests.java
index 230db7b50d0c5..037825378ba72 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OutlookChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/OutlookChannelTests.java
@@ -12,17 +12,17 @@ public final class OutlookChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
OutlookChannel model = BinaryData.fromString(
- "{\"channelName\":\"OutlookChannel\",\"etag\":\"xy\",\"provisioningState\":\"moyrxvwfudwpz\",\"location\":\"xhdzhlrqjbhckf\"}")
+ "{\"channelName\":\"OutlookChannel\",\"etag\":\"afkuwb\",\"provisioningState\":\"nwbmeh\",\"location\":\"eyvjusrtslhspkde\"}")
.toObject(OutlookChannel.class);
- Assertions.assertEquals("xy", model.etag());
- Assertions.assertEquals("xhdzhlrqjbhckf", model.location());
+ Assertions.assertEquals("afkuwb", model.etag());
+ Assertions.assertEquals("eyvjusrtslhspkde", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- OutlookChannel model = new OutlookChannel().withEtag("xy").withLocation("xhdzhlrqjbhckf");
+ OutlookChannel model = new OutlookChannel().withEtag("afkuwb").withLocation("eyvjusrtslhspkde");
model = BinaryData.fromObject(model).toObject(OutlookChannel.class);
- Assertions.assertEquals("xy", model.etag());
- Assertions.assertEquals("xhdzhlrqjbhckf", model.location());
+ Assertions.assertEquals("afkuwb", model.etag());
+ Assertions.assertEquals("eyvjusrtslhspkde", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionInnerTests.java
deleted file mode 100644
index ac74f41e18d73..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionInnerTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionInner model = BinaryData.fromString(
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"sprozvcput\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"wmfdatscmdvpjhul\",\"actionsRequired\":\"uvm\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"rwfndiod\"]},\"id\":\"pslwejdpvw\",\"name\":\"yoqpsoaccta\",\"type\":\"akl\"}")
- .toObject(PrivateEndpointConnectionInner.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
- model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("wmfdatscmdvpjhul", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("uvm", model.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("rwfndiod", model.groupIds().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionInner model
- = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("wmfdatscmdvpjhul")
- .withActionsRequired("uvm"))
- .withGroupIds(Arrays.asList("rwfndiod"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
- model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("wmfdatscmdvpjhul", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("uvm", model.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("rwfndiod", model.groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionListResultTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionListResultTests.java
deleted file mode 100644
index 5da85d727fcc3..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionListResultTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnectionListResult;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"uugidyjrrfby\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"e\",\"actionsRequired\":\"sonpclhocohs\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"eggzfb\",\"hfmvfaxkffe\"]},\"id\":\"ithlvmezyvshxm\",\"name\":\"sbbzo\",\"type\":\"gigr\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"rvjx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"pydptko\",\"actionsRequired\":\"kouknvudwtiu\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"gkpocipazyxoe\",\"ukgjnpiucgygevq\",\"ntypmrbpizcdrqj\"]},\"id\":\"dpydn\",\"name\":\"yhxdeoejzicwi\",\"type\":\"sjttgzfbish\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"ajdeyeamdphaga\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"xw\",\"actionsRequired\":\"pwhonowkg\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"kix\",\"bin\",\"eputtmrywnuzoqf\"]},\"id\":\"iyqzrnk\",\"name\":\"qvyxlwhzlsicoho\",\"type\":\"qnwvlrya\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"eun\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"gyxzk\",\"actionsRequired\":\"ocukoklyax\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"qszf\",\"beypewrmjmw\"]},\"id\":\"vjektcxsenh\",\"name\":\"lrsf\",\"type\":\"rzpwvlqdqgbiq\"}]}")
- .toObject(PrivateEndpointConnectionListResult.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED,
- model.value().get(0).privateLinkServiceConnectionState().status());
- Assertions.assertEquals("e", model.value().get(0).privateLinkServiceConnectionState().description());
- Assertions.assertEquals("sonpclhocohs",
- model.value().get(0).privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("eggzfb", model.value().get(0).groupIds().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionListResult model
- = new PrivateEndpointConnectionListResult()
- .withValue(
- Arrays
- .asList(
- new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("e")
- .withActionsRequired("sonpclhocohs"))
- .withGroupIds(Arrays.asList("eggzfb", "hfmvfaxkffe")),
- new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("pydptko")
- .withActionsRequired("kouknvudwtiu"))
- .withGroupIds(Arrays.asList("gkpocipazyxoe", "ukgjnpiucgygevq", "ntypmrbpizcdrqj")),
- new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.PENDING)
- .withDescription("xw")
- .withActionsRequired("pwhonowkg"))
- .withGroupIds(Arrays.asList("kix", "bin", "eputtmrywnuzoqf")),
- new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("gyxzk")
- .withActionsRequired("ocukoklyax"))
- .withGroupIds(Arrays.asList("qszf", "beypewrmjmw"))));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED,
- model.value().get(0).privateLinkServiceConnectionState().status());
- Assertions.assertEquals("e", model.value().get(0).privateLinkServiceConnectionState().description());
- Assertions.assertEquals("sonpclhocohs",
- model.value().get(0).privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("eggzfb", model.value().get(0).groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionPropertiesTests.java
deleted file mode 100644
index 8c5ae40facd86..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionPropertiesTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateEndpointConnectionProperties;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionProperties model = BinaryData.fromString(
- "{\"privateEndpoint\":{\"id\":\"hbcryffdfdosyge\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"jakhmsbzjh\",\"actionsRequired\":\"zevdphlx\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"qtrgqjbpfzfsinzg\",\"f\",\"jrwzox\"]}")
- .toObject(PrivateEndpointConnectionProperties.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
- model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("jakhmsbzjh", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("zevdphlx", model.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("qtrgqjbpfzfsinzg", model.groupIds().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionProperties model
- = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("jakhmsbzjh")
- .withActionsRequired("zevdphlx"))
- .withGroupIds(Arrays.asList("qtrgqjbpfzfsinzg", "f", "jrwzox"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED,
- model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("jakhmsbzjh", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("zevdphlx", model.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("qtrgqjbpfzfsinzg", model.groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateWithResponseMockTests.java
deleted file mode 100644
index 0d10bfd82bc04..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.botservice.BotServiceManager;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"privateEndpoint\":{\"id\":\"mcwaekrrjr\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"tsgumhj\",\"actionsRequired\":\"ikkx\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"bq\",\"vuzlm\",\"felfktg\",\"lcrpw\"]},\"id\":\"xeznoi\",\"name\":\"brnjwmw\",\"type\":\"pn\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- BotServiceManager manager = BotServiceManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PrivateEndpointConnection response = manager.privateEndpointConnections()
- .define("bnhlmc")
- .withExistingBotService("gsopbyrqufegxu", "wz")
- .withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING)
- .withDescription("jvegrhbpnaixexcc")
- .withActionsRequired("reaxhcexdr"))
- .withGroupIds(Arrays.asList("qkghtpwijnhy"))
- .create();
-
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED,
- response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("tsgumhj", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("ikkx", response.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("bq", response.groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
deleted file mode 100644
index a4e04a6833780..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.botservice.BotServiceManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- BotServiceManager manager = BotServiceManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.privateEndpointConnections()
- .deleteWithResponse("kkgll", "wjygvjayvblmhvk", "uhbxvvy", com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
deleted file mode 100644
index f12429f71975f..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.botservice.BotServiceManager;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"privateEndpoint\":{\"id\":\"dhtmdvypgikd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"w\",\"actionsRequired\":\"irryuzhlh\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"vqqaatjinrvgo\",\"pmfi\"]},\"id\":\"bfggjioolvr\",\"name\":\"x\",\"type\":\"v\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- BotServiceManager manager = BotServiceManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PrivateEndpointConnection response = manager.privateEndpointConnections()
- .getWithResponse("tn", "htjsying", "fq", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING,
- response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("w", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("irryuzhlh", response.privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("vqqaatjinrvgo", response.groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListMockTests.java
deleted file mode 100644
index 6f2e91aea9ee1..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointConnectionsListMockTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.botservice.BotServiceManager;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class PrivateEndpointConnectionsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"nk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"emdwzrmuhapfc\",\"actionsRequired\":\"psqxq\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"oymgccelvezr\",\"pqlmfe\",\"kerqwkyh\",\"ob\"]},\"id\":\"pg\",\"name\":\"edkowepbqpcrfk\",\"type\":\"wccsnjvcdwxlpqek\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- BotServiceManager manager = BotServiceManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.privateEndpointConnections().list("g", "qfhwyg", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING,
- response.iterator().next().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("emdwzrmuhapfc",
- response.iterator().next().privateLinkServiceConnectionState().description());
- Assertions.assertEquals("psqxq",
- response.iterator().next().privateLinkServiceConnectionState().actionsRequired());
- Assertions.assertEquals("oymgccelvezr", response.iterator().next().groupIds().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointTests.java
deleted file mode 100644
index a61a7a29c6ffa..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateEndpointTests.java
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.models.PrivateEndpoint;
-
-public final class PrivateEndpointTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpoint model = BinaryData.fromString("{\"id\":\"tfell\"}").toObject(PrivateEndpoint.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpoint model = new PrivateEndpoint();
- model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceBaseTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceBaseTests.java
deleted file mode 100644
index 59f68fea11702..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceBaseTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResourceBase;
-
-public final class PrivateLinkResourceBaseTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceBase model
- = BinaryData.fromString("{\"id\":\"ofpdvh\",\"name\":\"fxxypininmayhuy\",\"type\":\"bkpodepooginuv\"}")
- .toObject(PrivateLinkResourceBase.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceBase model = new PrivateLinkResourceBase();
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceBase.class);
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceListResultInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceListResultInnerTests.java
deleted file mode 100644
index edcff461361d3..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceListResultInnerTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceListResultInner;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResource;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourceListResultInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceListResultInner model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"groupId\":\"aetcktvfcivfs\",\"requiredMembers\":[\"m\",\"ctq\",\"jf\",\"ebrjcxe\"],\"requiredZoneNames\":[\"wutttxfvjrbi\",\"phxepcyvahf\",\"ljkyqxjvuuj\",\"gidokgjljyoxgvcl\"]},\"id\":\"bgsncghkjeszzhb\",\"name\":\"jhtxfvgxbfsmxne\",\"type\":\"mpvecxgodebfqk\"},{\"properties\":{\"groupId\":\"mpukgriw\",\"requiredMembers\":[\"lfbxzpuzycisp\",\"qzahmgkbrp\",\"y\",\"hibnuqqkpika\"],\"requiredZoneNames\":[\"vtq\",\"gnbuy\",\"hijggme\"]},\"id\":\"fsiarbutr\",\"name\":\"vpnazzm\",\"type\":\"jrunmpxtt\"},{\"properties\":{\"groupId\":\"rbnlankxmyskp\",\"requiredMembers\":[\"nbtkcxywnytnr\",\"yn\",\"qidybyx\"],\"requiredZoneNames\":[\"clha\",\"xdbabphlwr\",\"lfktsths\",\"cocmnyyaztt\"]},\"id\":\"twwrqp\",\"name\":\"edckzywbiexzfey\",\"type\":\"eaxib\"}]}")
- .toObject(PrivateLinkResourceListResultInner.class);
- Assertions.assertEquals("wutttxfvjrbi", model.value().get(0).requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceListResultInner model = new PrivateLinkResourceListResultInner().withValue(Arrays.asList(
- new PrivateLinkResource()
- .withRequiredZoneNames(Arrays.asList("wutttxfvjrbi", "phxepcyvahf", "ljkyqxjvuuj", "gidokgjljyoxgvcl")),
- new PrivateLinkResource().withRequiredZoneNames(Arrays.asList("vtq", "gnbuy", "hijggme")),
- new PrivateLinkResource()
- .withRequiredZoneNames(Arrays.asList("clha", "xdbabphlwr", "lfktsths", "cocmnyyaztt"))));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResultInner.class);
- Assertions.assertEquals("wutttxfvjrbi", model.value().get(0).requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcePropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcePropertiesTests.java
deleted file mode 100644
index ed4ddbea754ca..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcePropertiesTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.fluent.models.PrivateLinkResourceProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceProperties model = BinaryData.fromString(
- "{\"groupId\":\"vplwzbhv\",\"requiredMembers\":[\"gu\"],\"requiredZoneNames\":[\"mkfssxqukkfplgm\",\"sxnkjzkdeslpvlo\",\"wiyighxpkdw\"]}")
- .toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("mkfssxqukkfplgm", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceProperties model = new PrivateLinkResourceProperties()
- .withRequiredZoneNames(Arrays.asList("mkfssxqukkfplgm", "sxnkjzkdeslpvlo", "wiyighxpkdw"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("mkfssxqukkfplgm", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceTests.java
deleted file mode 100644
index 981dc192417d9..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourceTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResource;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResource model = BinaryData.fromString(
- "{\"properties\":{\"groupId\":\"wbhqwal\",\"requiredMembers\":[\"yoxa\",\"pdkzjancuxr\",\"d\",\"bavxbniwdjswzt\"],\"requiredZoneNames\":[\"pgn\"]},\"id\":\"ytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"}")
- .toObject(PrivateLinkResource.class);
- Assertions.assertEquals("pgn", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResource model = new PrivateLinkResource().withRequiredZoneNames(Arrays.asList("pgn"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class);
- Assertions.assertEquals("pgn", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceWithResponseMockTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceWithResponseMockTests.java
deleted file mode 100644
index bdc24d5d5a1a3..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkResourcesListByBotResourceWithResponseMockTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.botservice.BotServiceManager;
-import com.azure.resourcemanager.botservice.models.PrivateLinkResourceListResult;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class PrivateLinkResourcesListByBotResourceWithResponseMockTests {
- @Test
- public void testListByBotResourceWithResponse() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"groupId\":\"augzxnfaazpxdtn\",\"requiredMembers\":[\"kqjjlwuenvrkp\",\"ou\"],\"requiredZoneNames\":[\"rebqaaysjk\"]},\"id\":\"xqtnq\",\"name\":\"tezlwff\",\"type\":\"iakp\"},{\"properties\":{\"groupId\":\"qmt\",\"requiredMembers\":[\"tmmjihyeozph\"],\"requiredZoneNames\":[\"uyqncygupkvipmd\",\"cwxqu\",\"evzhfsto\"]},\"id\":\"xhojuj\",\"name\":\"ypelmcu\",\"type\":\"hixbjxyfwnyl\"},{\"properties\":{\"groupId\":\"o\",\"requiredMembers\":[\"tpkiwkkbnujry\",\"vtylbfpncu\",\"doiwi\",\"thtywub\"],\"requiredZoneNames\":[\"ihwqknfdntwjchr\",\"goihx\",\"mwctondzjluudfd\"]},\"id\":\"wggytsbwtovvt\",\"name\":\"seinqfiuf\",\"type\":\"qknp\"},{\"properties\":{\"groupId\":\"nepttwqmsni\",\"requiredMembers\":[\"dmqnrojlpij\"],\"requiredZoneNames\":[\"xfrdd\",\"c\"]},\"id\":\"atiz\",\"name\":\"ronasxift\",\"type\":\"zq\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- BotServiceManager manager = BotServiceManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PrivateLinkResourceListResult response = manager.privateLinkResources()
- .listByBotResourceWithResponse("saz", "jjoqkagf", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("rebqaaysjk", response.value().get(0).requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkServiceConnectionStateTests.java
deleted file mode 100644
index 40c957034fc39..0000000000000
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/PrivateLinkServiceConnectionStateTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.botservice.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.botservice.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.botservice.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkServiceConnectionStateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkServiceConnectionState model = BinaryData
- .fromString("{\"status\":\"Approved\",\"description\":\"it\",\"actionsRequired\":\"peqfpjkjl\"}")
- .toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.status());
- Assertions.assertEquals("it", model.description());
- Assertions.assertEquals("peqfpjkjl", model.actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkServiceConnectionState model
- = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("it")
- .withActionsRequired("peqfpjkjl");
- model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.status());
- Assertions.assertEquals("it", model.description());
- Assertions.assertEquals("peqfpjkjl", model.actionsRequired());
- }
-}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SearchAssistantTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SearchAssistantTests.java
index 1bec456b09abb..4738f41258861 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SearchAssistantTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SearchAssistantTests.java
@@ -12,17 +12,17 @@ public final class SearchAssistantTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
SearchAssistant model = BinaryData.fromString(
- "{\"channelName\":\"SearchAssistant\",\"etag\":\"ervnaenqpehi\",\"provisioningState\":\"oygmift\",\"location\":\"zdnds\"}")
+ "{\"channelName\":\"SearchAssistant\",\"etag\":\"zdnds\",\"provisioningState\":\"nayqi\",\"location\":\"nduhavhqlkthum\"}")
.toObject(SearchAssistant.class);
- Assertions.assertEquals("ervnaenqpehi", model.etag());
- Assertions.assertEquals("zdnds", model.location());
+ Assertions.assertEquals("zdnds", model.etag());
+ Assertions.assertEquals("nduhavhqlkthum", model.location());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- SearchAssistant model = new SearchAssistant().withEtag("ervnaenqpehi").withLocation("zdnds");
+ SearchAssistant model = new SearchAssistant().withEtag("zdnds").withLocation("nduhavhqlkthum");
model = BinaryData.fromObject(model).toObject(SearchAssistant.class);
- Assertions.assertEquals("ervnaenqpehi", model.etag());
- Assertions.assertEquals("zdnds", model.location());
+ Assertions.assertEquals("zdnds", model.etag());
+ Assertions.assertEquals("nduhavhqlkthum", model.location());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderParameterTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderParameterTests.java
index 3cbb26d193785..37c1f06ea9970 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderParameterTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderParameterTests.java
@@ -11,7 +11,7 @@ public final class ServiceProviderParameterTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServiceProviderParameter model = BinaryData.fromString(
- "{\"name\":\"kgqhcjrefovg\",\"type\":\"qsl\",\"displayName\":\"yvxyqjp\",\"description\":\"attpngjcrcczsq\",\"helpUrl\":\"hvmdajvnysounq\",\"default\":\"a\",\"metadata\":{\"constraints\":{\"required\":false}}}")
+ "{\"name\":\"axibxujw\",\"type\":\"qwalmuzyoxaepd\",\"displayName\":\"jancu\",\"description\":\"hdwbavxbniwdjs\",\"helpUrl\":\"tsdbpgn\",\"default\":\"txhp\",\"metadata\":{\"constraints\":{\"required\":false}}}")
.toObject(ServiceProviderParameter.class);
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderPropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderPropertiesTests.java
index 25d723c4b647e..33a33b502a95c 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderPropertiesTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderPropertiesTests.java
@@ -14,16 +14,17 @@ public final class ServiceProviderPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServiceProviderProperties model = BinaryData.fromString(
- "{\"id\":\"bdlwtgrhpdjpj\",\"displayName\":\"asxazjpqyegualhb\",\"serviceProviderName\":\"hejjz\",\"devPortalUrl\":\"dudgwdslfhot\",\"iconUrl\":\"cynpwlbjnp\",\"parameters\":[{\"name\":\"tadehxnltyfsopp\",\"type\":\"uesnzwdejbavo\",\"displayName\":\"zdmohctbqvu\",\"description\":\"xdn\",\"helpUrl\":\"vo\",\"default\":\"ujjugwdkcglh\",\"metadata\":{\"constraints\":{\"required\":true}}},{\"name\":\"yggdtjixh\",\"type\":\"uofqwe\",\"displayName\":\"hmenevfyexfwhybc\",\"description\":\"vyvdcs\",\"helpUrl\":\"ynnaam\",\"default\":\"ctehfiqscjey\",\"metadata\":{\"constraints\":{\"required\":true}}}]}")
+ "{\"id\":\"lrsf\",\"displayName\":\"zpwv\",\"serviceProviderName\":\"dqgbiqylihkaetc\",\"devPortalUrl\":\"vfcivfsnkymuc\",\"iconUrl\":\"hjfbebrjcxe\",\"parameters\":[{\"name\":\"utttxfvjrbirp\",\"type\":\"epcyvahfnlj\",\"displayName\":\"qxj\",\"description\":\"ujqgidok\",\"helpUrl\":\"ljyoxgvcltb\",\"default\":\"ncghkje\",\"metadata\":{\"constraints\":{\"required\":true}}},{\"name\":\"jhtxfvgxbfsmxne\",\"type\":\"pvecxgodeb\",\"displayName\":\"kk\",\"description\":\"mpukgriw\",\"helpUrl\":\"zlfbxzpuzycispnq\",\"default\":\"hmgkbrpyy\",\"metadata\":{\"constraints\":{\"required\":true}}},{\"name\":\"qqkpikadrg\",\"type\":\"qagnbuyn\",\"displayName\":\"jggmebfsiarbu\",\"description\":\"cvpnazzmhjrunmpx\",\"helpUrl\":\"dbhrbnlankxm\",\"default\":\"k\",\"metadata\":{\"constraints\":{\"required\":true}}},{\"name\":\"tkcxywnytnrsy\",\"type\":\"qidybyx\",\"displayName\":\"fclhaaxdbabphlwr\",\"description\":\"fkts\",\"helpUrl\":\"sucocmnyyazttbtw\",\"default\":\"qpuedckzywbiex\",\"metadata\":{\"constraints\":{\"required\":false}}}]}")
.toObject(ServiceProviderProperties.class);
- Assertions.assertEquals("cynpwlbjnp", model.iconUrl());
+ Assertions.assertEquals("hjfbebrjcxe", model.iconUrl());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServiceProviderProperties model = new ServiceProviderProperties().withIconUrl("cynpwlbjnp")
- .withParameters(Arrays.asList(new ServiceProviderParameter(), new ServiceProviderParameter()));
+ ServiceProviderProperties model = new ServiceProviderProperties().withIconUrl("hjfbebrjcxe")
+ .withParameters(Arrays.asList(new ServiceProviderParameter(), new ServiceProviderParameter(),
+ new ServiceProviderParameter(), new ServiceProviderParameter()));
model = BinaryData.fromObject(model).toObject(ServiceProviderProperties.class);
- Assertions.assertEquals("cynpwlbjnp", model.iconUrl());
+ Assertions.assertEquals("hjfbebrjcxe", model.iconUrl());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderResponseListInnerTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderResponseListInnerTests.java
index a055a7a78cca7..8c2acaa2d1405 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderResponseListInnerTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderResponseListInnerTests.java
@@ -12,15 +12,15 @@ public final class ServiceProviderResponseListInnerTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServiceProviderResponseListInner model = BinaryData.fromString(
- "{\"nextLink\":\"u\",\"value\":[{\"properties\":{\"id\":\"rzayv\",\"displayName\":\"pgvdf\",\"serviceProviderName\":\"otkftutqxlngx\",\"devPortalUrl\":\"fgugnxkrxdqmid\",\"iconUrl\":\"hzrvqd\",\"parameters\":[{\"name\":\"jybige\",\"type\":\"qfbow\",\"displayName\":\"anyktzlcuiywg\",\"description\":\"wgndrvynhzgpp\",\"helpUrl\":\"cgyncocpecf\",\"default\":\"mcoo\",\"metadata\":{}}]}}]}")
+ "{\"nextLink\":\"lwtgrhpdj\",\"value\":[{\"properties\":{\"id\":\"sxazjpq\",\"displayName\":\"gual\",\"serviceProviderName\":\"xxhejjzzvd\",\"devPortalUrl\":\"gwdslfhotwm\",\"iconUrl\":\"npwlbjnpg\",\"parameters\":[{\"name\":\"adehxnltyfsopp\",\"type\":\"uesnzwdejbavo\",\"displayName\":\"zdmohctbqvu\",\"description\":\"xdn\",\"helpUrl\":\"vo\",\"default\":\"ujjugwdkcglh\",\"metadata\":{}},{\"name\":\"zj\",\"type\":\"ggd\",\"displayName\":\"ixhbkuofqweykhm\",\"description\":\"evfyexfwhybcib\",\"helpUrl\":\"vdcsitynn\",\"default\":\"mdectehfiqscjey\",\"metadata\":{}},{\"name\":\"ezrkgqhcjrefo\",\"type\":\"mkqsleyyv\",\"displayName\":\"qjpkcattpngjcrc\",\"description\":\"sqpjhvmdajvn\",\"helpUrl\":\"ounqecano\",\"default\":\"upfh\",\"metadata\":{}},{\"name\":\"trpmo\",\"type\":\"mcmatuokthfuiu\",\"displayName\":\"dsfcpkvxodpuoz\",\"description\":\"zydagfuaxbezyiuo\",\"helpUrl\":\"twhrdxwzywqsm\",\"default\":\"ureximoryocfs\",\"metadata\":{}}]}},{\"properties\":{\"id\":\"mddystkiiux\",\"displayName\":\"yudxorrqnbp\",\"serviceProviderName\":\"zvyifqrvkdvj\",\"devPortalUrl\":\"lrmv\",\"iconUrl\":\"f\",\"parameters\":[{\"name\":\"pnpulexxbczwtru\",\"type\":\"qzbqjvsov\",\"displayName\":\"okacspk\",\"description\":\"hzdobpxjmflbvvnc\",\"helpUrl\":\"kcciwwzjuqkhr\",\"default\":\"jiwkuofoskghsau\",\"metadata\":{}}]}},{\"properties\":{\"id\":\"mvxi\",\"displayName\":\"uugidyjrrfby\",\"serviceProviderName\":\"svexcsonpclhoco\",\"devPortalUrl\":\"lkevle\",\"iconUrl\":\"zfbuhf\",\"parameters\":[{\"name\":\"x\",\"type\":\"feiithlvmez\",\"displayName\":\"shxmzsbbzoggigrx\",\"description\":\"ur\",\"helpUrl\":\"xxjnspydptk\",\"default\":\"nkoukn\",\"metadata\":{}},{\"name\":\"wtiukbldn\",\"type\":\"pocipazyxoegu\",\"displayName\":\"jnpiucgyg\",\"description\":\"qzntypm\",\"helpUrl\":\"p\",\"default\":\"c\",\"metadata\":{}},{\"name\":\"j\",\"type\":\"pyd\",\"displayName\":\"yhxdeoejzicwi\",\"description\":\"jttgzf\",\"helpUrl\":\"shcbkhajdeyeamdp\",\"default\":\"g\",\"metadata\":{}}]}}]}")
.toObject(ServiceProviderResponseListInner.class);
- Assertions.assertEquals("u", model.nextLink());
+ Assertions.assertEquals("lwtgrhpdj", model.nextLink());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServiceProviderResponseListInner model = new ServiceProviderResponseListInner().withNextLink("u");
+ ServiceProviderResponseListInner model = new ServiceProviderResponseListInner().withNextLink("lwtgrhpdj");
model = BinaryData.fromObject(model).toObject(ServiceProviderResponseListInner.class);
- Assertions.assertEquals("u", model.nextLink());
+ Assertions.assertEquals("lwtgrhpdj", model.nextLink());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderTests.java
index 1a71999fb3cfc..8e1df73f9d87f 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/ServiceProviderTests.java
@@ -15,16 +15,17 @@ public final class ServiceProviderTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ServiceProvider model = BinaryData.fromString(
- "{\"properties\":{\"id\":\"zevgb\",\"displayName\":\"jqabcypmivkwlzuv\",\"serviceProviderName\":\"fwnfnb\",\"devPortalUrl\":\"fionl\",\"iconUrl\":\"x\",\"parameters\":[{\"name\":\"tzxdpnqbqqwx\",\"type\":\"feallnwsu\",\"displayName\":\"snjampmng\",\"description\":\"scxaq\",\"helpUrl\":\"ochcbonqvpkvl\",\"default\":\"njeaseipheofloke\",\"metadata\":{\"constraints\":{\"required\":false}}}]}}")
+ "{\"properties\":{\"id\":\"uxwgipwho\",\"displayName\":\"wkgshwa\",\"serviceProviderName\":\"ixzbinjeputtmryw\",\"devPortalUrl\":\"zoqftiyqzrnkcqvy\",\"iconUrl\":\"whzlsicohoq\",\"parameters\":[{\"name\":\"lryav\",\"type\":\"heun\",\"displayName\":\"qhgyxzkonocukok\",\"description\":\"axuconuq\",\"helpUrl\":\"fkbey\",\"default\":\"wrmjmwvvjektc\",\"metadata\":{\"constraints\":{\"required\":false}}}]}}")
.toObject(ServiceProvider.class);
- Assertions.assertEquals("x", model.properties().iconUrl());
+ Assertions.assertEquals("whzlsicohoq", model.properties().iconUrl());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServiceProvider model = new ServiceProvider().withProperties(new ServiceProviderProperties().withIconUrl("x")
- .withParameters(Arrays.asList(new ServiceProviderParameter())));
+ ServiceProvider model
+ = new ServiceProvider().withProperties(new ServiceProviderProperties().withIconUrl("whzlsicohoq")
+ .withParameters(Arrays.asList(new ServiceProviderParameter())));
model = BinaryData.fromObject(model).toObject(ServiceProvider.class);
- Assertions.assertEquals("x", model.properties().iconUrl());
+ Assertions.assertEquals("whzlsicohoq", model.properties().iconUrl());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkuTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkuTests.java
index 451af01e99932..e0f4519607626 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkuTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkuTests.java
@@ -12,14 +12,14 @@
public final class SkuTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
- Sku model = BinaryData.fromString("{\"name\":\"F0\",\"tier\":\"Standard\"}").toObject(Sku.class);
- Assertions.assertEquals(SkuName.F0, model.name());
+ Sku model = BinaryData.fromString("{\"name\":\"S1\",\"tier\":\"Standard\"}").toObject(Sku.class);
+ Assertions.assertEquals(SkuName.S1, model.name());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Sku model = new Sku().withName(SkuName.F0);
+ Sku model = new Sku().withName(SkuName.S1);
model = BinaryData.fromObject(model).toObject(Sku.class);
- Assertions.assertEquals(SkuName.F0, model.name());
+ Assertions.assertEquals(SkuName.S1, model.name());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelPropertiesTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelPropertiesTests.java
index f7a587688833b..660013349d058 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelPropertiesTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelPropertiesTests.java
@@ -12,42 +12,42 @@ public final class SkypeChannelPropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
SkypeChannelProperties model = BinaryData.fromString(
- "{\"enableMessaging\":true,\"enableMediaCards\":false,\"enableVideo\":true,\"enableCalling\":true,\"enableScreenSharing\":false,\"enableGroups\":true,\"groupsMode\":\"dytdxwitx\",\"callingWebHook\":\"jawgqwg\",\"incomingCallRoute\":\"ni\",\"isEnabled\":true}")
+ "{\"enableMessaging\":false,\"enableMediaCards\":false,\"enableVideo\":false,\"enableCalling\":false,\"enableScreenSharing\":true,\"enableGroups\":false,\"groupsMode\":\"dnhjdauwhvylw\",\"callingWebHook\":\"tdhxujznbmpowuwp\",\"incomingCallRoute\":\"qlveualupjmkh\",\"isEnabled\":true}")
.toObject(SkypeChannelProperties.class);
- Assertions.assertEquals(true, model.enableMessaging());
+ Assertions.assertEquals(false, model.enableMessaging());
Assertions.assertEquals(false, model.enableMediaCards());
- Assertions.assertEquals(true, model.enableVideo());
- Assertions.assertEquals(true, model.enableCalling());
- Assertions.assertEquals(false, model.enableScreenSharing());
- Assertions.assertEquals(true, model.enableGroups());
- Assertions.assertEquals("dytdxwitx", model.groupsMode());
- Assertions.assertEquals("jawgqwg", model.callingWebhook());
- Assertions.assertEquals("ni", model.incomingCallRoute());
+ Assertions.assertEquals(false, model.enableVideo());
+ Assertions.assertEquals(false, model.enableCalling());
+ Assertions.assertEquals(true, model.enableScreenSharing());
+ Assertions.assertEquals(false, model.enableGroups());
+ Assertions.assertEquals("dnhjdauwhvylw", model.groupsMode());
+ Assertions.assertEquals("tdhxujznbmpowuwp", model.callingWebhook());
+ Assertions.assertEquals("qlveualupjmkh", model.incomingCallRoute());
Assertions.assertEquals(true, model.isEnabled());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- SkypeChannelProperties model = new SkypeChannelProperties().withEnableMessaging(true)
+ SkypeChannelProperties model = new SkypeChannelProperties().withEnableMessaging(false)
.withEnableMediaCards(false)
- .withEnableVideo(true)
- .withEnableCalling(true)
- .withEnableScreenSharing(false)
- .withEnableGroups(true)
- .withGroupsMode("dytdxwitx")
- .withCallingWebhook("jawgqwg")
- .withIncomingCallRoute("ni")
+ .withEnableVideo(false)
+ .withEnableCalling(false)
+ .withEnableScreenSharing(true)
+ .withEnableGroups(false)
+ .withGroupsMode("dnhjdauwhvylw")
+ .withCallingWebhook("tdhxujznbmpowuwp")
+ .withIncomingCallRoute("qlveualupjmkh")
.withIsEnabled(true);
model = BinaryData.fromObject(model).toObject(SkypeChannelProperties.class);
- Assertions.assertEquals(true, model.enableMessaging());
+ Assertions.assertEquals(false, model.enableMessaging());
Assertions.assertEquals(false, model.enableMediaCards());
- Assertions.assertEquals(true, model.enableVideo());
- Assertions.assertEquals(true, model.enableCalling());
- Assertions.assertEquals(false, model.enableScreenSharing());
- Assertions.assertEquals(true, model.enableGroups());
- Assertions.assertEquals("dytdxwitx", model.groupsMode());
- Assertions.assertEquals("jawgqwg", model.callingWebhook());
- Assertions.assertEquals("ni", model.incomingCallRoute());
+ Assertions.assertEquals(false, model.enableVideo());
+ Assertions.assertEquals(false, model.enableCalling());
+ Assertions.assertEquals(true, model.enableScreenSharing());
+ Assertions.assertEquals(false, model.enableGroups());
+ Assertions.assertEquals("dnhjdauwhvylw", model.groupsMode());
+ Assertions.assertEquals("tdhxujznbmpowuwp", model.callingWebhook());
+ Assertions.assertEquals("qlveualupjmkh", model.incomingCallRoute());
Assertions.assertEquals(true, model.isEnabled());
}
}
diff --git a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelTests.java b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelTests.java
index 1d2358175b782..e76a611cadafa 100644
--- a/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelTests.java
+++ b/sdk/botservice/azure-resourcemanager-botservice/src/test/java/com/azure/resourcemanager/botservice/generated/SkypeChannelTests.java
@@ -13,48 +13,48 @@ public final class SkypeChannelTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
SkypeChannel model = BinaryData.fromString(
- "{\"channelName\":\"SkypeChannel\",\"properties\":{\"enableMessaging\":false,\"enableMediaCards\":false,\"enableVideo\":true,\"enableCalling\":false,\"enableScreenSharing\":true,\"enableGroups\":false,\"groupsMode\":\"io\",\"callingWebHook\":\"qhakauhashsf\",\"incomingCallRoute\":\"osow\",\"isEnabled\":false},\"etag\":\"ugicjooxdjebw\",\"provisioningState\":\"cwwfvovbvme\",\"location\":\"civyhzceuo\"}")
+ "{\"channelName\":\"SkypeChannel\",\"properties\":{\"enableMessaging\":false,\"enableMediaCards\":true,\"enableVideo\":false,\"enableCalling\":true,\"enableScreenSharing\":true,\"enableGroups\":false,\"groupsMode\":\"ebwpucwwfvo\",\"callingWebHook\":\"vmeueci\",\"incomingCallRoute\":\"hzceuojgjrwjue\",\"isEnabled\":false},\"etag\":\"wmcdytdxwi\",\"provisioningState\":\"nrjawgqwg\",\"location\":\"ni\"}")
.toObject(SkypeChannel.class);
- Assertions.assertEquals("ugicjooxdjebw", model.etag());
- Assertions.assertEquals("civyhzceuo", model.location());
+ Assertions.assertEquals("wmcdytdxwi", model.etag());
+ Assertions.assertEquals("ni", model.location());
Assertions.assertEquals(false, model.properties().enableMessaging());
- Assertions.assertEquals(false, model.properties().enableMediaCards());
- Assertions.assertEquals(true, model.properties().enableVideo());
- Assertions.assertEquals(false, model.properties().enableCalling());
+ Assertions.assertEquals(true, model.properties().enableMediaCards());
+ Assertions.assertEquals(false, model.properties().enableVideo());
+ Assertions.assertEquals(true, model.properties().enableCalling());
Assertions.assertEquals(true, model.properties().enableScreenSharing());
Assertions.assertEquals(false, model.properties().enableGroups());
- Assertions.assertEquals("io", model.properties().groupsMode());
- Assertions.assertEquals("qhakauhashsf", model.properties().callingWebhook());
- Assertions.assertEquals("osow", model.properties().incomingCallRoute());
+ Assertions.assertEquals("ebwpucwwfvo", model.properties().groupsMode());
+ Assertions.assertEquals("vmeueci", model.properties().callingWebhook());
+ Assertions.assertEquals("hzceuojgjrwjue", model.properties().incomingCallRoute());
Assertions.assertEquals(false, model.properties().isEnabled());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- SkypeChannel model = new SkypeChannel().withEtag("ugicjooxdjebw")
- .withLocation("civyhzceuo")
+ SkypeChannel model = new SkypeChannel().withEtag("wmcdytdxwi")
+ .withLocation("ni")
.withProperties(new SkypeChannelProperties().withEnableMessaging(false)
- .withEnableMediaCards(false)
- .withEnableVideo(true)
- .withEnableCalling(false)
+ .withEnableMediaCards(true)
+ .withEnableVideo(false)
+ .withEnableCalling(true)
.withEnableScreenSharing(true)
.withEnableGroups(false)
- .withGroupsMode("io")
- .withCallingWebhook("qhakauhashsf")
- .withIncomingCallRoute("osow")
+ .withGroupsMode("ebwpucwwfvo")
+ .withCallingWebhook("vmeueci")
+ .withIncomingCallRoute("hzceuojgjrwjue")
.withIsEnabled(false));
model = BinaryData.fromObject(model).toObject(SkypeChannel.class);
- Assertions.assertEquals("ugicjooxdjebw", model.etag());
- Assertions.assertEquals("civyhzceuo", model.location());
+ Assertions.assertEquals("wmcdytdxwi", model.etag());
+ Assertions.assertEquals("ni", model.location());
Assertions.assertEquals(false, model.properties().enableMessaging());
- Assertions.assertEquals(false, model.properties().enableMediaCards());
- Assertions.assertEquals(true, model.properties().enableVideo());
- Assertions.assertEquals(false, model.properties().enableCalling());
+ Assertions.assertEquals(true, model.properties().enableMediaCards());
+ Assertions.assertEquals(false, model.properties().enableVideo());
+ Assertions.assertEquals(true, model.properties().enableCalling());
Assertions.assertEquals(true, model.properties().enableScreenSharing());
Assertions.assertEquals(false, model.properties().enableGroups());
- Assertions.assertEquals("io", model.properties().groupsMode());
- Assertions.assertEquals("qhakauhashsf", model.properties().callingWebhook());
- Assertions.assertEquals("osow", model.properties().incomingCallRoute());
+ Assertions.assertEquals("ebwpucwwfvo", model.properties().groupsMode());
+ Assertions.assertEquals("vmeueci", model.properties().callingWebhook());
+ Assertions.assertEquals("hzceuojgjrwjue", model.properties().incomingCallRoute());
Assertions.assertEquals(false, model.properties().isEnabled());
}
}