diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/CHANGELOG.md b/sdk/voiceservices/azure-resourcemanager-voiceservices/CHANGELOG.md
index 6073b25d8825f..674fe1755a8d3 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/CHANGELOG.md
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2023-04-24)
+
+- Azure Resource Manager Voice Services client library for Java. This package contains Microsoft Azure SDK for Voice Services Management SDK. Package tag package-2023-01-31. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/README.md b/sdk/voiceservices/azure-resourcemanager-voiceservices/README.md
index 69519c59dfb1a..29e5d7a184fb9 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/README.md
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager voiceservices client library for Java
+# Azure Resource Manager Voice Services client library for Java
-Azure Resource Manager voiceservices client library for Java.
+Azure Resource Manager Voice Services client library for Java.
-This package contains Microsoft Azure SDK for voiceservices Management SDK. Package tag package-2023-01-31. 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 Voice Services Management SDK. Package tag package-2023-01-31. 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-voiceservices
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -60,7 +60,7 @@ AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
-VoiceservicesManager manager = VoiceservicesManager
+VoiceServicesManager manager = VoiceServicesManager
.authenticate(credential, profile);
```
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/SAMPLE.md b/sdk/voiceservices/azure-resourcemanager-voiceservices/SAMPLE.md
index a223257ea2477..10e3f9eb1044b 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/SAMPLE.md
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/SAMPLE.md
@@ -45,10 +45,10 @@ public final class CommunicationsGatewaysCreateOrUpdateSamples {
/**
* Sample code: CreateCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void createCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.define("myname")
@@ -93,10 +93,10 @@ public final class CommunicationsGatewaysDeleteSamples {
/**
* Sample code: DeleteCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void deleteCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().delete("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
@@ -113,10 +113,10 @@ public final class CommunicationsGatewaysGetByResourceGroupSamples {
/**
* Sample code: GetCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void getCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.getByResourceGroupWithResponse("testrg", "myname", com.azure.core.util.Context.NONE);
@@ -135,10 +135,10 @@ public final class CommunicationsGatewaysListSamples {
/**
* Sample code: ListCommunicationsGatewayResourceSub.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResourceSub(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().list(com.azure.core.util.Context.NONE);
}
}
@@ -155,10 +155,10 @@ public final class CommunicationsGatewaysListByResourceGroupSamples {
/**
* Sample code: ListCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().listByResourceGroup("testrg", com.azure.core.util.Context.NONE);
}
}
@@ -177,10 +177,10 @@ public final class CommunicationsGatewaysUpdateSamples {
/**
* Sample code: UpdateCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void updateCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
CommunicationsGateway resource =
manager
.communicationsGateways()
@@ -204,17 +204,17 @@ public final class NameAvailabilityCheckLocalSamples {
/**
* Sample code: CheckLocalNameAvailability.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void checkLocalNameAvailability(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.nameAvailabilities()
.checkLocalWithResponse(
"useast",
new CheckNameAvailabilityRequest()
.withName("myname")
- .withType("Microsoft.VoiceServices/CommunicationsGateway"),
+ .withType("Microsoft.VoiceServices/CommunicationsGateways"),
com.azure.core.util.Context.NONE);
}
}
@@ -231,9 +231,9 @@ public final class OperationsListSamples {
/**
* Sample code: OperationsList.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
@@ -252,9 +252,9 @@ public final class TestLinesCreateOrUpdateSamples {
/**
* Sample code: CreateTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.testLines()
.define("myline")
@@ -278,9 +278,9 @@ public final class TestLinesDeleteSamples {
/**
* Sample code: DeleteTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().delete("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
@@ -297,9 +297,9 @@ public final class TestLinesGetSamples {
/**
* Sample code: GetTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().getWithResponse("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
@@ -316,9 +316,9 @@ public final class TestLinesListByCommunicationsGatewaySamples {
/**
* Sample code: ListTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().listByCommunicationsGateway("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
@@ -337,9 +337,9 @@ public final class TestLinesUpdateSamples {
/**
* Sample code: UpdateTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
TestLine resource =
manager
.testLines()
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/pom.xml b/sdk/voiceservices/azure-resourcemanager-voiceservices/pom.xml
index e8ab513b60861..f32bbe0fd85d2 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/pom.xml
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/pom.xml
@@ -17,8 +17,8 @@
1.0.0-beta.2
jar
- Microsoft Azure SDK for voiceservices Management
- This package contains Microsoft Azure SDK for voiceservices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-01-31.
+ Microsoft Azure SDK for Voice Services Management
+ This package contains Microsoft Azure SDK for Voice Services Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-01-31.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceservicesManager.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceServicesManager.java
similarity index 93%
rename from sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceservicesManager.java
rename to sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceServicesManager.java
index 1a18e8537d4a5..5da3625d711a7 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceservicesManager.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/VoiceServicesManager.java
@@ -40,8 +40,8 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to VoiceservicesManager. */
-public final class VoiceservicesManager {
+/** Entry point to VoiceServicesManager. */
+public final class VoiceServicesManager {
private Operations operations;
private CommunicationsGateways communicationsGateways;
@@ -52,7 +52,7 @@ public final class VoiceservicesManager {
private final MicrosoftVoiceServices clientObject;
- private VoiceservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ private VoiceServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
@@ -65,38 +65,38 @@ private VoiceservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Du
}
/**
- * Creates an instance of voiceservices service API entry point.
+ * Creates an instance of Voice Services service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the voiceservices service API instance.
+ * @return the Voice Services service API instance.
*/
- public static VoiceservicesManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public static VoiceServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return configure().authenticate(credential, profile);
}
/**
- * Creates an instance of voiceservices service API entry point.
+ * Creates an instance of Voice Services service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the voiceservices service API instance.
+ * @return the Voice Services service API instance.
*/
- public static VoiceservicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ public static VoiceServicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- return new VoiceservicesManager(httpPipeline, profile, null);
+ return new VoiceServicesManager(httpPipeline, profile, null);
}
/**
- * Gets a Configurable instance that can be used to create VoiceservicesManager with optional configuration.
+ * Gets a Configurable instance that can be used to create VoiceServicesManager with optional configuration.
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
- return new VoiceservicesManager.Configurable();
+ return new VoiceServicesManager.Configurable();
}
/** The Configurable allowing configurations to be set. */
@@ -199,13 +199,13 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of voiceservices service API entry point.
+ * Creates an instance of Voice Services service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the voiceservices service API instance.
+ * @return the Voice Services service API instance.
*/
- public VoiceservicesManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public VoiceServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
@@ -268,7 +268,7 @@ public VoiceservicesManager authenticate(TokenCredential credential, AzureProfil
.httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
- return new VoiceservicesManager(httpPipeline, profile, defaultPollInterval);
+ return new VoiceServicesManager(httpPipeline, profile, defaultPollInterval);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CheckNameAvailabilityResponseImpl.java
index 73e60c6525f8d..3d73ee12a20e4 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CheckNameAvailabilityResponseImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CheckNameAvailabilityResponseImpl.java
@@ -11,11 +11,11 @@
public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailabilityResponse {
private CheckNameAvailabilityResponseInner innerObject;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
CheckNameAvailabilityResponseImpl(
CheckNameAvailabilityResponseInner innerObject,
- com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -36,7 +36,7 @@ public CheckNameAvailabilityResponseInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewayImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewayImpl.java
index f166c7cce7865..2300d6a0949d6 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewayImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewayImpl.java
@@ -26,7 +26,7 @@ public final class CommunicationsGatewayImpl
implements CommunicationsGateway, CommunicationsGateway.Definition, CommunicationsGateway.Update {
private CommunicationsGatewayInner innerObject;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -145,7 +145,7 @@ public CommunicationsGatewayInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
@@ -179,7 +179,7 @@ public CommunicationsGateway create(Context context) {
}
CommunicationsGatewayImpl(
- String name, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ String name, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = new CommunicationsGatewayInner();
this.serviceManager = serviceManager;
this.communicationsGatewayName = name;
@@ -212,7 +212,7 @@ public CommunicationsGateway apply(Context context) {
CommunicationsGatewayImpl(
CommunicationsGatewayInner innerObject,
- com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysClientImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysClientImpl.java
index 575352abb39bc..a59f41d45ff0e 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysClientImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysClientImpl.java
@@ -80,8 +80,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -94,8 +93,7 @@ Mono> listByResourceGroup(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@@ -109,8 +107,7 @@ Mono> getByResourceGroup(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -125,8 +122,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -140,8 +136,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> update(
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysImpl.java
index ba3b22b9d2536..2f4c24ab028ca 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/CommunicationsGatewaysImpl.java
@@ -19,11 +19,11 @@ public final class CommunicationsGatewaysImpl implements CommunicationsGateways
private final CommunicationsGatewaysClient innerClient;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public CommunicationsGatewaysImpl(
CommunicationsGatewaysClient innerClient,
- com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -176,7 +176,7 @@ private CommunicationsGatewaysClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesClientImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesClientImpl.java
index d8f20d6d68072..3f6bc55ebe332 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesClientImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesClientImpl.java
@@ -55,8 +55,7 @@ public final class NameAvailabilitiesClientImpl implements NameAvailabilitiesCli
public interface NameAvailabilitiesService {
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}"
- + "/checkNameAvailability")
+ "/subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> checkLocal(
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesImpl.java
index 5ecd4a5b9c8d6..322a93cf6e578 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/NameAvailabilitiesImpl.java
@@ -19,11 +19,11 @@ public final class NameAvailabilitiesImpl implements NameAvailabilities {
private final NameAvailabilitiesClient innerClient;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public NameAvailabilitiesImpl(
NameAvailabilitiesClient innerClient,
- com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -56,7 +56,7 @@ private NameAvailabilitiesClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationImpl.java
index 12d0eeb091505..079b75e4500c1 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationImpl.java
@@ -13,10 +13,10 @@
public final class OperationImpl implements Operation {
private OperationInner innerObject;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
OperationImpl(
- OperationInner innerObject, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ OperationInner innerObject, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -45,7 +45,7 @@ public OperationInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationsImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationsImpl.java
index 9c4f1b57614ac..55221ee4bcf93 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationsImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/OperationsImpl.java
@@ -17,10 +17,10 @@ public final class OperationsImpl implements Operations {
private final OperationsClient innerClient;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public OperationsImpl(
- OperationsClient innerClient, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ OperationsClient innerClient, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -39,7 +39,7 @@ private OperationsClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLineImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLineImpl.java
index 4164f12df3edc..b55b413092911 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLineImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLineImpl.java
@@ -18,7 +18,7 @@
public final class TestLineImpl implements TestLine, TestLine.Definition, TestLine.Update {
private TestLineInner innerObject;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -77,7 +77,7 @@ public TestLineInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
@@ -114,7 +114,7 @@ public TestLine create(Context context) {
return this;
}
- TestLineImpl(String name, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ TestLineImpl(String name, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = new TestLineInner();
this.serviceManager = serviceManager;
this.testLineName = name;
@@ -148,7 +148,7 @@ public TestLine apply(Context context) {
}
TestLineImpl(
- TestLineInner innerObject, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ TestLineInner innerObject, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesClientImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesClientImpl.java
index 7efa1cfaa8f59..413eaf4183085 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesClientImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesClientImpl.java
@@ -68,8 +68,7 @@ public final class TestLinesClientImpl implements TestLinesClient {
public interface TestLinesService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}/testLines")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByCommunicationsGateway(
@@ -83,8 +82,7 @@ Mono> listByCommunicationsGateway(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -99,8 +97,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -116,8 +113,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -132,8 +128,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices"
- + "/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> update(
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesImpl.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesImpl.java
index dba0c112048da..c8443b2249e7f 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesImpl.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/main/java/com/azure/resourcemanager/voiceservices/implementation/TestLinesImpl.java
@@ -19,10 +19,10 @@ public final class TestLinesImpl implements TestLines {
private final TestLinesClient innerClient;
- private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
+ private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;
public TestLinesImpl(
- TestLinesClient innerClient, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
+ TestLinesClient innerClient, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -196,7 +196,7 @@ private TestLinesClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
+ private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysCreateOrUpdateSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysCreateOrUpdateSamples.java
index 9b6dfb0cf0aa0..a6e01cf36a3fe 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysCreateOrUpdateSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysCreateOrUpdateSamples.java
@@ -21,10 +21,10 @@ public final class CommunicationsGatewaysCreateOrUpdateSamples {
/**
* Sample code: CreateCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void createCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.define("myname")
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteSamples.java
index 639f946528ef4..82ce63776d0b2 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteSamples.java
@@ -12,10 +12,10 @@ public final class CommunicationsGatewaysDeleteSamples {
/**
* Sample code: DeleteCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void deleteCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().delete("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysGetByResourceGroupSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysGetByResourceGroupSamples.java
index 5d26f12675e17..bafabffcd16b3 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysGetByResourceGroupSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysGetByResourceGroupSamples.java
@@ -12,10 +12,10 @@ public final class CommunicationsGatewaysGetByResourceGroupSamples {
/**
* Sample code: GetCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void getCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.getByResourceGroupWithResponse("testrg", "myname", com.azure.core.util.Context.NONE);
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListByResourceGroupSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListByResourceGroupSamples.java
index 5d4c394627ef8..70773fb599c08 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListByResourceGroupSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListByResourceGroupSamples.java
@@ -12,10 +12,10 @@ public final class CommunicationsGatewaysListByResourceGroupSamples {
/**
* Sample code: ListCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().listByResourceGroup("testrg", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListSamples.java
index 3eed507347e50..3a640ebd80a17 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysListSamples.java
@@ -12,10 +12,10 @@ public final class CommunicationsGatewaysListSamples {
/**
* Sample code: ListCommunicationsGatewayResourceSub.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResourceSub(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().list(com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysUpdateSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysUpdateSamples.java
index 0bc1c669d42fb..b66e6625aca02 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysUpdateSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysUpdateSamples.java
@@ -14,10 +14,10 @@ public final class CommunicationsGatewaysUpdateSamples {
/**
* Sample code: UpdateCommunicationsGatewayResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void updateCommunicationsGatewayResource(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
CommunicationsGateway resource =
manager
.communicationsGateways()
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilityCheckLocalSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilityCheckLocalSamples.java
index b9406ea568e75..bd8c2bfddf12c 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilityCheckLocalSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilityCheckLocalSamples.java
@@ -14,17 +14,17 @@ public final class NameAvailabilityCheckLocalSamples {
/**
* Sample code: CheckLocalNameAvailability.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
public static void checkLocalNameAvailability(
- com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.nameAvailabilities()
.checkLocalWithResponse(
"useast",
new CheckNameAvailabilityRequest()
.withName("myname")
- .withType("Microsoft.VoiceServices/CommunicationsGateway"),
+ .withType("Microsoft.VoiceServices/CommunicationsGateways"),
com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/OperationsListSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/OperationsListSamples.java
index 417272f7fd223..35007a945d839 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/OperationsListSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/OperationsListSamples.java
@@ -12,9 +12,9 @@ public final class OperationsListSamples {
/**
* Sample code: OperationsList.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateSamples.java
index c04cf1591c252..6b6bfdb37fef0 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateSamples.java
@@ -14,9 +14,9 @@ public final class TestLinesCreateOrUpdateSamples {
/**
* Sample code: CreateTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.testLines()
.define("myline")
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteSamples.java
index 583da0c3196bd..e89a63b0ae32b 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteSamples.java
@@ -12,9 +12,9 @@ public final class TestLinesDeleteSamples {
/**
* Sample code: DeleteTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().delete("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetSamples.java
index b3eb8d2db0c8a..93efb47ebaa72 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetSamples.java
@@ -12,9 +12,9 @@ public final class TestLinesGetSamples {
/**
* Sample code: GetTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().getWithResponse("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewaySamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewaySamples.java
index fff59f60a338b..1e5705b2c0f7d 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewaySamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewaySamples.java
@@ -12,9 +12,9 @@ public final class TestLinesListByCommunicationsGatewaySamples {
/**
* Sample code: ListTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().listByCommunicationsGateway("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesUpdateSamples.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesUpdateSamples.java
index 4c99412516fa0..d2275c0f4b92e 100644
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesUpdateSamples.java
+++ b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/samples/java/com/azure/resourcemanager/voiceservices/generated/TestLinesUpdateSamples.java
@@ -14,9 +14,9 @@ public final class TestLinesUpdateSamples {
/**
* Sample code: UpdateTestLineResource.
*
- * @param manager Entry point to VoiceservicesManager.
+ * @param manager Entry point to VoiceServicesManager.
*/
- public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
+ public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
TestLine resource =
manager
.testLines()
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityRequestTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityRequestTests.java
deleted file mode 100644
index 50ce84b7f8948..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityRequestTests.java
+++ /dev/null
@@ -1,30 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.CheckNameAvailabilityRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckNameAvailabilityRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityRequest model =
- BinaryData
- .fromString("{\"name\":\"peqfpjkjl\",\"type\":\"fpdvhpfxxypi\"}")
- .toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("peqfpjkjl", model.name());
- Assertions.assertEquals("fpdvhpfxxypi", model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityRequest model =
- new CheckNameAvailabilityRequest().withName("peqfpjkjl").withType("fpdvhpfxxypi");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class);
- Assertions.assertEquals("peqfpjkjl", model.name());
- Assertions.assertEquals("fpdvhpfxxypi", model.type());
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityResponseInnerTests.java
deleted file mode 100644
index e3898ef484f99..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CheckNameAvailabilityResponseInnerTests.java
+++ /dev/null
@@ -1,36 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.fluent.models.CheckNameAvailabilityResponseInner;
-import com.azure.resourcemanager.voiceservices.models.CheckNameAvailabilityReason;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckNameAvailabilityResponseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityResponseInner model =
- BinaryData
- .fromString("{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"huyb\"}")
- .toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason());
- Assertions.assertEquals("huyb", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityResponseInner model =
- new CheckNameAvailabilityResponseInner()
- .withNameAvailable(true)
- .withReason(CheckNameAvailabilityReason.INVALID)
- .withMessage("huyb");
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class);
- Assertions.assertEquals(true, model.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason());
- Assertions.assertEquals("huyb", model.message());
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewayUpdateTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewayUpdateTests.java
deleted file mode 100644
index 2c4319e379300..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewayUpdateTests.java
+++ /dev/null
@@ -1,41 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.CommunicationsGatewayUpdate;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CommunicationsGatewayUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CommunicationsGatewayUpdate model =
- BinaryData
- .fromString("{\"tags\":{\"vamih\":\"odepoogin\",\"vyevcciqi\":\"ognarxzxtheotus\"}}")
- .toObject(CommunicationsGatewayUpdate.class);
- Assertions.assertEquals("odepoogin", model.tags().get("vamih"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CommunicationsGatewayUpdate model =
- new CommunicationsGatewayUpdate().withTags(mapOf("vamih", "odepoogin", "vyevcciqi", "ognarxzxtheotus"));
- model = BinaryData.fromObject(model).toObject(CommunicationsGatewayUpdate.class);
- Assertions.assertEquals("odepoogin", model.tags().get("vamih"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteMockTests.java
deleted file mode 100644
index 1a6385b8bad2b..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/CommunicationsGatewaysDeleteMockTests.java
+++ /dev/null
@@ -1,61 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsGatewaysDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.communicationsGateways().delete("itnwuizgazxufi", "uckyf", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilitiesCheckLocalWithResponseMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilitiesCheckLocalWithResponseMockTests.java
deleted file mode 100644
index c7ef2caf2be47..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/NameAvailabilitiesCheckLocalWithResponseMockTests.java
+++ /dev/null
@@ -1,76 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import com.azure.resourcemanager.voiceservices.models.CheckNameAvailabilityReason;
-import com.azure.resourcemanager.voiceservices.models.CheckNameAvailabilityRequest;
-import com.azure.resourcemanager.voiceservices.models.CheckNameAvailabilityResponse;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class NameAvailabilitiesCheckLocalWithResponseMockTests {
- @Test
- public void testCheckLocalWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"dcuf\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityResponse response =
- manager
- .nameAvailabilities()
- .checkLocalWithResponse(
- "sdkf",
- new CheckNameAvailabilityRequest().withName("wxmnteiwao").withType("km"),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(false, response.nameAvailable());
- Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason());
- Assertions.assertEquals("dcuf", response.message());
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationDisplayTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationDisplayTests.java
deleted file mode 100644
index 93111cca30f0e..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationDisplayTests.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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.OperationDisplay;
-
-public final class OperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationDisplay model =
- BinaryData
- .fromString(
- "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}")
- .toObject(OperationDisplay.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationDisplay model = new OperationDisplay();
- model = BinaryData.fromObject(model).toObject(OperationDisplay.class);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationInnerTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationInnerTests.java
deleted file mode 100644
index b0a3442b178c2..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationInnerTests.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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.fluent.models.OperationInner;
-import com.azure.resourcemanager.voiceservices.models.OperationDisplay;
-
-public final class OperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationInner model =
- BinaryData
- .fromString(
- "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
- .toObject(OperationInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationInner model = new OperationInner().withDisplay(new OperationDisplay());
- model = BinaryData.fromObject(model).toObject(OperationInner.class);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationListResultTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationListResultTests.java
deleted file mode 100644
index 390cdb1cae60d..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationListResultTests.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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.OperationListResult;
-
-public final class OperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}")
- .toObject(OperationListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationListResult model = new OperationListResult();
- model = BinaryData.fromObject(model).toObject(OperationListResult.class);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationsListMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationsListMockTests.java
deleted file mode 100644
index c7806d1095fa2..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,64 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import com.azure.resourcemanager.voiceservices.models.Operation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"name\":\"jfddgmbmbe\",\"isDataAction\":true,\"display\":{\"provider\":\"tq\",\"resource\":\"ol\",\"operation\":\"fpsalgbqu\",\"description\":\"gjyjgzjaoyfhrtxi\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/PrimaryRegionPropertiesTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/PrimaryRegionPropertiesTests.java
deleted file mode 100644
index b8205e9d00b46..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/PrimaryRegionPropertiesTests.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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.PrimaryRegionProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrimaryRegionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrimaryRegionProperties model =
- BinaryData
- .fromString(
- "{\"operatorAddresses\":[\"bcryffdfd\",\"sy\",\"expa\",\"jakhmsbzjh\"],\"esrpAddresses\":[\"evdphlxaol\",\"hqtrgqjbpf\"],\"allowedSignalingSourceAddressPrefixes\":[\"inzgvfcj\"],\"allowedMediaSourceAddressPrefixes\":[\"oxxjtfelluwf\",\"it\"]}")
- .toObject(PrimaryRegionProperties.class);
- Assertions.assertEquals("bcryffdfd", model.operatorAddresses().get(0));
- Assertions.assertEquals("evdphlxaol", model.esrpAddresses().get(0));
- Assertions.assertEquals("inzgvfcj", model.allowedSignalingSourceAddressPrefixes().get(0));
- Assertions.assertEquals("oxxjtfelluwf", model.allowedMediaSourceAddressPrefixes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrimaryRegionProperties model =
- new PrimaryRegionProperties()
- .withOperatorAddresses(Arrays.asList("bcryffdfd", "sy", "expa", "jakhmsbzjh"))
- .withEsrpAddresses(Arrays.asList("evdphlxaol", "hqtrgqjbpf"))
- .withAllowedSignalingSourceAddressPrefixes(Arrays.asList("inzgvfcj"))
- .withAllowedMediaSourceAddressPrefixes(Arrays.asList("oxxjtfelluwf", "it"));
- model = BinaryData.fromObject(model).toObject(PrimaryRegionProperties.class);
- Assertions.assertEquals("bcryffdfd", model.operatorAddresses().get(0));
- Assertions.assertEquals("evdphlxaol", model.esrpAddresses().get(0));
- Assertions.assertEquals("inzgvfcj", model.allowedSignalingSourceAddressPrefixes().get(0));
- Assertions.assertEquals("oxxjtfelluwf", model.allowedMediaSourceAddressPrefixes().get(0));
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/ServiceRegionPropertiesTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/ServiceRegionPropertiesTests.java
deleted file mode 100644
index c2e07d7ab3cdf..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/ServiceRegionPropertiesTests.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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.PrimaryRegionProperties;
-import com.azure.resourcemanager.voiceservices.models.ServiceRegionProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ServiceRegionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServiceRegionProperties model =
- BinaryData
- .fromString(
- "{\"name\":\"pjoxzjnch\",\"primaryRegionProperties\":{\"operatorAddresses\":[\"jspodmailzyde\",\"o\",\"wyahuxinpmqnja\"],\"esrpAddresses\":[\"xj\",\"prozvcputegjvwmf\",\"atscmd\",\"pjhulsuuvmkj\"],\"allowedSignalingSourceAddressPrefixes\":[\"rwfndiod\"],\"allowedMediaSourceAddressPrefixes\":[\"lwejdpv\",\"ryo\",\"psoacctazakljl\"]}}")
- .toObject(ServiceRegionProperties.class);
- Assertions.assertEquals("pjoxzjnch", model.name());
- Assertions.assertEquals("jspodmailzyde", model.primaryRegionProperties().operatorAddresses().get(0));
- Assertions.assertEquals("xj", model.primaryRegionProperties().esrpAddresses().get(0));
- Assertions
- .assertEquals("rwfndiod", model.primaryRegionProperties().allowedSignalingSourceAddressPrefixes().get(0));
- Assertions.assertEquals("lwejdpv", model.primaryRegionProperties().allowedMediaSourceAddressPrefixes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServiceRegionProperties model =
- new ServiceRegionProperties()
- .withName("pjoxzjnch")
- .withPrimaryRegionProperties(
- new PrimaryRegionProperties()
- .withOperatorAddresses(Arrays.asList("jspodmailzyde", "o", "wyahuxinpmqnja"))
- .withEsrpAddresses(Arrays.asList("xj", "prozvcputegjvwmf", "atscmd", "pjhulsuuvmkj"))
- .withAllowedSignalingSourceAddressPrefixes(Arrays.asList("rwfndiod"))
- .withAllowedMediaSourceAddressPrefixes(Arrays.asList("lwejdpv", "ryo", "psoacctazakljl")));
- model = BinaryData.fromObject(model).toObject(ServiceRegionProperties.class);
- Assertions.assertEquals("pjoxzjnch", model.name());
- Assertions.assertEquals("jspodmailzyde", model.primaryRegionProperties().operatorAddresses().get(0));
- Assertions.assertEquals("xj", model.primaryRegionProperties().esrpAddresses().get(0));
- Assertions
- .assertEquals("rwfndiod", model.primaryRegionProperties().allowedSignalingSourceAddressPrefixes().get(0));
- Assertions.assertEquals("lwejdpv", model.primaryRegionProperties().allowedMediaSourceAddressPrefixes().get(0));
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineInnerTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineInnerTests.java
deleted file mode 100644
index 39a16cc808228..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineInnerTests.java
+++ /dev/null
@@ -1,53 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.fluent.models.TestLineInner;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class TestLineInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TestLineInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"phoneNumber\":\"ypnddhsgcb\",\"purpose\":\"Manual\"},\"location\":\"hejkotynqgou\",\"tags\":{\"gakeqsr\":\"dlikwyqkgfgibma\",\"qqedqytbciqfou\":\"yb\"},\"id\":\"lmmnkzsmodmglo\",\"name\":\"gpbkwtmut\",\"type\":\"uqktap\"}")
- .toObject(TestLineInner.class);
- Assertions.assertEquals("hejkotynqgou", model.location());
- Assertions.assertEquals("dlikwyqkgfgibma", model.tags().get("gakeqsr"));
- Assertions.assertEquals("ypnddhsgcb", model.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, model.purpose());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TestLineInner model =
- new TestLineInner()
- .withLocation("hejkotynqgou")
- .withTags(mapOf("gakeqsr", "dlikwyqkgfgibma", "qqedqytbciqfou", "yb"))
- .withPhoneNumber("ypnddhsgcb")
- .withPurpose(TestLinePurpose.MANUAL);
- model = BinaryData.fromObject(model).toObject(TestLineInner.class);
- Assertions.assertEquals("hejkotynqgou", model.location());
- Assertions.assertEquals("dlikwyqkgfgibma", model.tags().get("gakeqsr"));
- Assertions.assertEquals("ypnddhsgcb", model.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, model.purpose());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineListResultTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineListResultTests.java
deleted file mode 100644
index 38efe5b297549..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineListResultTests.java
+++ /dev/null
@@ -1,74 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.fluent.models.TestLineInner;
-import com.azure.resourcemanager.voiceservices.models.TestLineListResult;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class TestLineListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TestLineListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"phoneNumber\":\"gbwjzrnf\",\"purpose\":\"Manual\"},\"location\":\"gispemvtzfkufubl\",\"tags\":{\"v\":\"xqeofjaeqjhqjba\",\"zgcwrw\":\"smjqulngsntnbyb\"},\"id\":\"lxxwrljdouskc\",\"name\":\"vkocrcjdkwtn\",\"type\":\"xbnjbiksq\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"phoneNumber\":\"sainqpjwnzl\",\"purpose\":\"Manual\"},\"location\":\"mppeebvmgxs\",\"tags\":{\"jczdzevndh\":\"yqduujit\",\"feusnhut\":\"rwpdappdsbdkvwrw\",\"xhocdgeablgphuti\":\"eltmrldhugjzzdat\"},\"id\":\"ndv\",\"name\":\"aozwyiftyhxhu\",\"type\":\"okftyxolniwpwcuk\"}],\"nextLink\":\"kgiawxklryplwck\"}")
- .toObject(TestLineListResult.class);
- Assertions.assertEquals("gispemvtzfkufubl", model.value().get(0).location());
- Assertions.assertEquals("xqeofjaeqjhqjba", model.value().get(0).tags().get("v"));
- Assertions.assertEquals("gbwjzrnf", model.value().get(0).phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, model.value().get(0).purpose());
- Assertions.assertEquals("kgiawxklryplwck", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TestLineListResult model =
- new TestLineListResult()
- .withValue(
- Arrays
- .asList(
- new TestLineInner()
- .withLocation("gispemvtzfkufubl")
- .withTags(mapOf("v", "xqeofjaeqjhqjba", "zgcwrw", "smjqulngsntnbyb"))
- .withPhoneNumber("gbwjzrnf")
- .withPurpose(TestLinePurpose.MANUAL),
- new TestLineInner()
- .withLocation("mppeebvmgxs")
- .withTags(
- mapOf(
- "jczdzevndh",
- "yqduujit",
- "feusnhut",
- "rwpdappdsbdkvwrw",
- "xhocdgeablgphuti",
- "eltmrldhugjzzdat"))
- .withPhoneNumber("sainqpjwnzl")
- .withPurpose(TestLinePurpose.MANUAL)))
- .withNextLink("kgiawxklryplwck");
- model = BinaryData.fromObject(model).toObject(TestLineListResult.class);
- Assertions.assertEquals("gispemvtzfkufubl", model.value().get(0).location());
- Assertions.assertEquals("xqeofjaeqjhqjba", model.value().get(0).tags().get("v"));
- Assertions.assertEquals("gbwjzrnf", model.value().get(0).phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, model.value().get(0).purpose());
- Assertions.assertEquals("kgiawxklryplwck", model.nextLink());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinePropertiesTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinePropertiesTests.java
deleted file mode 100644
index 79dd7b7156769..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinePropertiesTests.java
+++ /dev/null
@@ -1,31 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.fluent.models.TestLineProperties;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import org.junit.jupiter.api.Assertions;
-
-public final class TestLinePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TestLineProperties model =
- BinaryData
- .fromString("{\"provisioningState\":\"Failed\",\"phoneNumber\":\"gcue\",\"purpose\":\"Automated\"}")
- .toObject(TestLineProperties.class);
- Assertions.assertEquals("gcue", model.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.AUTOMATED, model.purpose());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TestLineProperties model =
- new TestLineProperties().withPhoneNumber("gcue").withPurpose(TestLinePurpose.AUTOMATED);
- model = BinaryData.fromObject(model).toObject(TestLineProperties.class);
- Assertions.assertEquals("gcue", model.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.AUTOMATED, model.purpose());
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineUpdateTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineUpdateTests.java
deleted file mode 100644
index bfd6cf4d2732b..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLineUpdateTests.java
+++ /dev/null
@@ -1,38 +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.voiceservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.voiceservices.models.TestLineUpdate;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class TestLineUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TestLineUpdate model =
- BinaryData.fromString("{\"tags\":{\"bmdg\":\"kdosvqw\"}}").toObject(TestLineUpdate.class);
- Assertions.assertEquals("kdosvqw", model.tags().get("bmdg"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TestLineUpdate model = new TestLineUpdate().withTags(mapOf("bmdg", "kdosvqw"));
- model = BinaryData.fromObject(model).toObject(TestLineUpdate.class);
- Assertions.assertEquals("kdosvqw", model.tags().get("bmdg"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateMockTests.java
deleted file mode 100644
index eb79df457e769..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,92 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import com.azure.resourcemanager.voiceservices.models.TestLine;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class TestLinesCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"phoneNumber\":\"icxm\",\"purpose\":\"Manual\"},\"location\":\"wqvhkhixuigdt\",\"tags\":{\"m\":\"objoghmewu\"},\"id\":\"uhrzayvvt\",\"name\":\"gvdfgiotkftutq\",\"type\":\"ln\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- TestLine response =
- manager
- .testLines()
- .define("dkexxppofm")
- .withRegion("exhd")
- .withExistingCommunicationsGateway("ctbzaq", "qsycbkbfkgu")
- .withTags(mapOf("jnxqbzvddntwn", "bqe"))
- .withPhoneNumber("fjpgddtocjjxhvp")
- .withPurpose(TestLinePurpose.MANUAL)
- .create();
-
- Assertions.assertEquals("wqvhkhixuigdt", response.location());
- Assertions.assertEquals("objoghmewu", response.tags().get("m"));
- Assertions.assertEquals("icxm", response.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, response.purpose());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteMockTests.java
deleted file mode 100644
index 0f6b93a546999..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesDeleteMockTests.java
+++ /dev/null
@@ -1,63 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class TestLinesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .testLines()
- .delete("jionpimexgstxgc", "odgmaajrmvdjwz", "lovmclwhijcoe", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetWithResponseMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetWithResponseMockTests.java
deleted file mode 100644
index a1ecddb1f120f..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,74 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import com.azure.resourcemanager.voiceservices.models.TestLine;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class TestLinesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"phoneNumber\":\"c\",\"purpose\":\"Manual\"},\"location\":\"ljavbqid\",\"tags\":{\"dj\":\"jzyulpk\",\"xzlocxscp\":\"rlkhbzhfepgzgq\"},\"id\":\"ierhhbcsglummaj\",\"name\":\"j\",\"type\":\"odxobnbdxkqpxok\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- TestLine response =
- manager
- .testLines()
- .getWithResponse("bznorcjxvsnby", "qabnmoc", "cyshurzafbljjgp", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("ljavbqid", response.location());
- Assertions.assertEquals("jzyulpk", response.tags().get("dj"));
- Assertions.assertEquals("c", response.phoneNumber());
- Assertions.assertEquals(TestLinePurpose.MANUAL, response.purpose());
- }
-}
diff --git a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewayMockTests.java b/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewayMockTests.java
deleted file mode 100644
index 4fbaddc64fded..0000000000000
--- a/sdk/voiceservices/azure-resourcemanager-voiceservices/src/test/java/com/azure/resourcemanager/voiceservices/generated/TestLinesListByCommunicationsGatewayMockTests.java
+++ /dev/null
@@ -1,74 +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.voiceservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.voiceservices.VoiceservicesManager;
-import com.azure.resourcemanager.voiceservices.models.TestLine;
-import com.azure.resourcemanager.voiceservices.models.TestLinePurpose;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class TestLinesListByCommunicationsGatewayMockTests {
- @Test
- public void testListByCommunicationsGateway() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"phoneNumber\":\"sne\",\"purpose\":\"Automated\"},\"location\":\"wzjeiach\",\"tags\":{\"eeh\":\"sflnrosfqp\",\"swjdkirso\":\"zvypyqrimzinp\"},\"id\":\"dqxhcrmnohjtckwh\",\"name\":\"soifiyipjxsqw\",\"type\":\"gr\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- VoiceservicesManager manager =
- VoiceservicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager
- .testLines()
- .listByCommunicationsGateway("fsrpymzidnse", "cxtbzsg", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("wzjeiach", response.iterator().next().location());
- Assertions.assertEquals("sflnrosfqp", response.iterator().next().tags().get("eeh"));
- Assertions.assertEquals("sne", response.iterator().next().phoneNumber());
- Assertions.assertEquals(TestLinePurpose.AUTOMATED, response.iterator().next().purpose());
- }
-}