list(String location, Context context);
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java
deleted file mode 100644
index 4b42bfc2cf4f1..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java
+++ /dev/null
@@ -1,120 +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.redisenterprise.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Region Sku Detail
- *
- * Details about the location requested and the available skus in the location.
- */
-@Fluent
-public final class RegionSkuDetailInner {
- /*
- * Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise
- */
- @JsonProperty(value = "resourceType")
- private String resourceType;
-
- /*
- * Details about location and its capabilities
- */
- @JsonProperty(value = "locationInfo")
- private LocationInfo locationInfo;
-
- /*
- * Sku Detail
- *
- * Details about available skus
- */
- @JsonProperty(value = "skuDetails")
- private SkuDetail skuDetails;
-
- /** Creates an instance of RegionSkuDetailInner class. */
- public RegionSkuDetailInner() {
- }
-
- /**
- * Get the resourceType property: Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise.
- *
- * @return the resourceType value.
- */
- public String resourceType() {
- return this.resourceType;
- }
-
- /**
- * Set the resourceType property: Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise.
- *
- * @param resourceType the resourceType value to set.
- * @return the RegionSkuDetailInner object itself.
- */
- public RegionSkuDetailInner withResourceType(String resourceType) {
- this.resourceType = resourceType;
- return this;
- }
-
- /**
- * Get the locationInfo property: Details about location and its capabilities.
- *
- * @return the locationInfo value.
- */
- public LocationInfo locationInfo() {
- return this.locationInfo;
- }
-
- /**
- * Set the locationInfo property: Details about location and its capabilities.
- *
- * @param locationInfo the locationInfo value to set.
- * @return the RegionSkuDetailInner object itself.
- */
- public RegionSkuDetailInner withLocationInfo(LocationInfo locationInfo) {
- this.locationInfo = locationInfo;
- return this;
- }
-
- /**
- * Get the skuDetails property: Sku Detail
- *
- *
Details about available skus.
- *
- * @return the skuDetails value.
- */
- public SkuDetail skuDetails() {
- return this.skuDetails;
- }
-
- /**
- * Set the skuDetails property: Sku Detail
- *
- *
Details about available skus.
- *
- * @param skuDetails the skuDetails value to set.
- * @return the RegionSkuDetailInner object itself.
- */
- public RegionSkuDetailInner withSkuDetails(SkuDetail skuDetails) {
- this.skuDetails = skuDetails;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (locationInfo() != null) {
- locationInfo().validate();
- }
- if (skuDetails() != null) {
- skuDetails().validate();
- }
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
index 5acef90ea55b4..d30ea43a458a0 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -114,9 +114,9 @@ Mono>> put(
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}")
- @ExpectedResponses({200, 204})
+ @ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
+ Mono>> delete(
@HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("clusterName") String clusterName,
@@ -830,7 +830,7 @@ public PrivateEndpointConnectionInner put(
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
+ private Mono>> deleteWithResponseAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -888,7 +888,7 @@ private Mono> deleteWithResponseAsync(
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
+ private Mono>> deleteWithResponseAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -929,6 +929,92 @@ private Mono> deleteWithResponseAsync(
context);
}
+ /**
+ * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ return this.beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName).getSyncPoller();
+ }
+
+ /**
+ * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ return this
+ .beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context)
+ .getSyncPoller();
+ }
+
/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
*
@@ -943,8 +1029,9 @@ private Mono> deleteWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName)
- .flatMap(ignored -> Mono.empty());
+ return beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -958,12 +1045,14 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
+ private Mono deleteAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
+ return beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -979,6 +1068,24 @@ public Response deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE);
+ deleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName).block();
+ }
+
+ /**
+ * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ deleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
index a34e9a42241d7..b7fe42cb73e84 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
@@ -68,17 +68,15 @@ public PrivateEndpointConnection get(
}
}
- public Response deleteWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
- return this
- .serviceClient()
- .deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context);
- }
-
public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName);
}
+ public void delete(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName, context);
+ }
+
public PrivateEndpointConnection getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
@@ -168,10 +166,10 @@ public void deleteById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.",
id)));
}
- this.deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE);
+ this.delete(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
+ public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER
@@ -198,7 +196,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
"The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.",
id)));
}
- return this.deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context);
+ this.delete(resourceGroupName, clusterName, privateEndpointConnectionName, context);
}
private PrivateEndpointConnectionsClient serviceClient() {
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
index 998d6c966e8ca..5df3344132954 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
@@ -137,7 +137,7 @@ public RedisEnterpriseManagementClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
- subscriptionId,
+ this.subscriptionId,
localEndpoint);
return client;
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
index bd4aadb26a2e8..a13569c3ca736 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.resourcemanager.redisenterprise.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterpriseManagementClient;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterprisesClient;
-import com.azure.resourcemanager.redisenterprise.fluent.SkusClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -186,18 +185,6 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
- /** The SkusClient object to access its operations. */
- private final SkusClient skus;
-
- /**
- * Gets the SkusClient object to access its operations.
- *
- * @return the SkusClient object.
- */
- public SkusClient getSkus() {
- return this.skus;
- }
-
/**
* Initializes an instance of RedisEnterpriseManagementClient client.
*
@@ -220,14 +207,13 @@ public SkusClient getSkus() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-03-01-preview";
+ this.apiVersion = "2023-10-01-preview";
this.operations = new OperationsClientImpl(this);
this.operationsStatus = new OperationsStatusClientImpl(this);
this.redisEnterprises = new RedisEnterprisesClientImpl(this);
this.databases = new DatabasesClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
- this.skus = new SkusClientImpl(this);
}
/**
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java
index e97c22f9e28f9..9f2d16b6f6e89 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -34,6 +35,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterprisesClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
+import com.azure.resourcemanager.redisenterprise.models.CheckNameAvailabilityParameters;
import com.azure.resourcemanager.redisenterprise.models.ClusterList;
import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;
import java.nio.ByteBuffer;
@@ -148,6 +150,18 @@ Mono> list(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Cache/checkNameAvailability")
+ @ExpectedResponses({204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") CheckNameAvailabilityParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -1372,6 +1386,139 @@ public PagedIterable list(Context context) {
return new PagedIterable<>(listAsync(context));
}
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ CheckNameAvailabilityParameters parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono checkNameAvailabilityAsync(CheckNameAvailabilityParameters parameters) {
+ return checkNameAvailabilityWithResponseAsync(parameters).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response checkNameAvailabilityWithResponse(
+ CheckNameAvailabilityParameters parameters, Context context) {
+ return checkNameAvailabilityWithResponseAsync(parameters, context).block();
+ }
+
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void checkNameAvailability(CheckNameAvailabilityParameters parameters) {
+ checkNameAvailabilityWithResponse(parameters, Context.NONE);
+ }
+
/**
* Get the next page of items.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesImpl.java
index fc2ebe8fcbcfb..79d8af4f21fb8 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesImpl.java
@@ -11,6 +11,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterprisesClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
+import com.azure.resourcemanager.redisenterprise.models.CheckNameAvailabilityParameters;
import com.azure.resourcemanager.redisenterprise.models.Cluster;
import com.azure.resourcemanager.redisenterprise.models.RedisEnterprises;
@@ -80,6 +81,15 @@ public PagedIterable list(Context context) {
return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
}
+ public Response checkNameAvailabilityWithResponse(
+ CheckNameAvailabilityParameters parameters, Context context) {
+ return this.serviceClient().checkNameAvailabilityWithResponse(parameters, context);
+ }
+
+ public void checkNameAvailability(CheckNameAvailabilityParameters parameters) {
+ this.serviceClient().checkNameAvailability(parameters);
+ }
+
public Cluster getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RegionSkuDetailImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RegionSkuDetailImpl.java
deleted file mode 100644
index 047d9d2f74e84..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RegionSkuDetailImpl.java
+++ /dev/null
@@ -1,43 +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.redisenterprise.implementation;
-
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-
-public final class RegionSkuDetailImpl implements RegionSkuDetail {
- private RegionSkuDetailInner innerObject;
-
- private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;
-
- RegionSkuDetailImpl(
- RegionSkuDetailInner innerObject,
- com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String resourceType() {
- return this.innerModel().resourceType();
- }
-
- public LocationInfo locationInfo() {
- return this.innerModel().locationInfo();
- }
-
- public SkuDetail skuDetails() {
- return this.innerModel().skuDetails();
- }
-
- public RegionSkuDetailInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusClientImpl.java
deleted file mode 100644
index 86f6a63c3672c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusClientImpl.java
+++ /dev/null
@@ -1,222 +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.redisenterprise.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.redisenterprise.fluent.SkusClient;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetails;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in SkusClient. */
-public final class SkusClientImpl implements SkusClient {
- /** The proxy service used to perform REST calls. */
- private final SkusService service;
-
- /** The service client containing this operation class. */
- private final RedisEnterpriseManagementClientImpl client;
-
- /**
- * Initializes an instance of SkusClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- SkusClientImpl(RedisEnterpriseManagementClientImpl client) {
- this.service = RestProxy.create(SkusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for RedisEnterpriseManagementClientSkus to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "RedisEnterpriseManag")
- public interface SkusService {
- @Headers({"Content-Type: application/json"})
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String location) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (location == null) {
- return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String location, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (location == null) {
- return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- location,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String location) {
- return new PagedFlux<>(() -> listSinglePageAsync(location));
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String location, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(location, context));
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String location) {
- return new PagedIterable<>(listAsync(location));
- }
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String location, Context context) {
- return new PagedIterable<>(listAsync(location, context));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusImpl.java
deleted file mode 100644
index ef64fe0143f8d..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusImpl.java
+++ /dev/null
@@ -1,45 +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.redisenterprise.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.redisenterprise.fluent.SkusClient;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.Skus;
-
-public final class SkusImpl implements Skus {
- private static final ClientLogger LOGGER = new ClientLogger(SkusImpl.class);
-
- private final SkusClient innerClient;
-
- private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;
-
- public SkusImpl(
- SkusClient innerClient, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String location) {
- PagedIterable inner = this.serviceClient().list(location);
- return Utils.mapPage(inner, inner1 -> new RegionSkuDetailImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String location, Context context) {
- PagedIterable inner = this.serviceClient().list(location, context);
- return Utils.mapPage(inner, inner1 -> new RegionSkuDetailImpl(inner1, this.manager()));
- }
-
- private SkusClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/Utils.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/Utils.java
index 6d2c2ff2db617..3cf7ce4e03e66 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/Utils.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/Utils.java
@@ -20,6 +20,9 @@
import reactor.core.publisher.Flux;
final class Utils {
+ private Utils() {
+ }
+
static String getValueFromIdByName(String id, String name) {
if (id == null) {
return null;
@@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
segments.add(idSegment);
idItrReverted.forEachRemaining(segments::add);
Collections.reverse(segments);
- if (segments.size() > 0 && segments.get(0).isEmpty()) {
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
segments.remove(0);
}
return String.join("/", segments);
@@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
}
static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
- return new PagedIterableImpl(pageIterable, mapper);
+ return new PagedIterableImpl<>(pageIterable, mapper);
}
private static final class PagedIterableImpl extends PagedIterable {
@@ -133,30 +136,27 @@ public Stream> streamByPage(String continuationToken, int prefe
@Override
public Iterator iterator() {
- return new IteratorImpl(pagedIterable.iterator(), mapper);
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
}
@Override
public Iterable> iterableByPage() {
- return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(continuationToken), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
}
@Override
public Iterable> iterableByPage(int preferredPageSize) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
}
}
@@ -198,7 +198,7 @@ private IterableImpl(Iterable iterable, Function mapper) {
@Override
public Iterator iterator() {
- return new IteratorImpl(iterable.iterator(), mapper);
+ return new IteratorImpl<>(iterable.iterator(), mapper);
}
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Capability.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Capability.java
deleted file mode 100644
index 5eeb214d8498b..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Capability.java
+++ /dev/null
@@ -1,80 +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.redisenterprise.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Capability
- *
- * Information about the features the location supports.
- */
-@Fluent
-public final class Capability {
- /*
- * Feature name
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * Indicates whether feature is supported or not
- */
- @JsonProperty(value = "value")
- private Boolean value;
-
- /** Creates an instance of Capability class. */
- public Capability() {
- }
-
- /**
- * Get the name property: Feature name.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Feature name.
- *
- * @param name the name value to set.
- * @return the Capability object itself.
- */
- public Capability withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the value property: Indicates whether feature is supported or not.
- *
- * @return the value value.
- */
- public Boolean value() {
- return this.value;
- }
-
- /**
- * Set the value property: Indicates whether feature is supported or not.
- *
- * @param value the value value to set.
- * @return the Capability object itself.
- */
- public Capability withValue(Boolean value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/CheckNameAvailabilityParameters.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/CheckNameAvailabilityParameters.java
new file mode 100644
index 0000000000000..c55351c385498
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/CheckNameAvailabilityParameters.java
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Parameters body to pass for resource name availability check. */
+@Fluent
+public final class CheckNameAvailabilityParameters {
+ /*
+ * Resource name.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Resource type. The only legal value of this property for checking redis enterprise cache name availability is
+ * 'Microsoft.Cache/redisenterprise'.
+ */
+ @JsonProperty(value = "type", required = true)
+ private String type;
+
+ /** Creates an instance of CheckNameAvailabilityParameters class. */
+ public CheckNameAvailabilityParameters() {
+ }
+
+ /**
+ * Get the name property: Resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Resource name.
+ *
+ * @param name the name value to set.
+ * @return the CheckNameAvailabilityParameters object itself.
+ */
+ public CheckNameAvailabilityParameters withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: Resource type. The only legal value of this property for checking redis enterprise cache
+ * name availability is 'Microsoft.Cache/redisenterprise'.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Resource type. The only legal value of this property for checking redis enterprise cache
+ * name availability is 'Microsoft.Cache/redisenterprise'.
+ *
+ * @param type the type value to set.
+ * @return the CheckNameAvailabilityParameters object itself.
+ */
+ public CheckNameAvailabilityParameters withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property name in model CheckNameAvailabilityParameters"));
+ }
+ if (type() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property type in model CheckNameAvailabilityParameters"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityParameters.class);
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java
index 39ac8576d9391..6d6da1ba10c98 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java
@@ -162,11 +162,13 @@ interface Definition
DefinitionStages.WithSku,
DefinitionStages.WithCreate {
}
+
/** The Cluster definition stages. */
interface DefinitionStages {
/** The first stage of the Cluster definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the Cluster definition allowing to specify location. */
interface WithLocation {
/**
@@ -185,6 +187,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the Cluster definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -195,6 +198,7 @@ interface WithResourceGroup {
*/
WithSku withExistingResourceGroup(String resourceGroupName);
}
+
/** The stage of the Cluster definition allowing to specify sku. */
interface WithSku {
/**
@@ -205,6 +209,7 @@ interface WithSku {
*/
WithCreate withSku(Sku sku);
}
+
/**
* The stage of the Cluster definition which contains all the minimum required properties for the resource to be
* created, but also allows for any other optional properties to be specified.
@@ -230,6 +235,7 @@ interface WithCreate
*/
Cluster create(Context context);
}
+
/** The stage of the Cluster definition allowing to specify tags. */
interface WithTags {
/**
@@ -240,6 +246,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the Cluster definition allowing to specify zones. */
interface WithZones {
/**
@@ -250,6 +257,7 @@ interface WithZones {
*/
WithCreate withZones(List zones);
}
+
/** The stage of the Cluster definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -260,6 +268,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ManagedServiceIdentity identity);
}
+
/** The stage of the Cluster definition allowing to specify minimumTlsVersion. */
interface WithMinimumTlsVersion {
/**
@@ -270,6 +279,7 @@ interface WithMinimumTlsVersion {
*/
WithCreate withMinimumTlsVersion(TlsVersion minimumTlsVersion);
}
+
/** The stage of the Cluster definition allowing to specify encryption. */
interface WithEncryption {
/**
@@ -281,6 +291,7 @@ interface WithEncryption {
WithCreate withEncryption(ClusterPropertiesEncryption encryption);
}
}
+
/**
* Begins update for the Cluster resource.
*
@@ -310,6 +321,7 @@ interface Update
*/
Cluster apply(Context context);
}
+
/** The Cluster update stages. */
interface UpdateStages {
/** The stage of the Cluster update allowing to specify tags. */
@@ -322,6 +334,7 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+
/** The stage of the Cluster update allowing to specify sku. */
interface WithSku {
/**
@@ -332,6 +345,7 @@ interface WithSku {
*/
Update withSku(Sku sku);
}
+
/** The stage of the Cluster update allowing to specify identity. */
interface WithIdentity {
/**
@@ -342,6 +356,7 @@ interface WithIdentity {
*/
Update withIdentity(ManagedServiceIdentity identity);
}
+
/** The stage of the Cluster update allowing to specify minimumTlsVersion. */
interface WithMinimumTlsVersion {
/**
@@ -352,6 +367,7 @@ interface WithMinimumTlsVersion {
*/
Update withMinimumTlsVersion(TlsVersion minimumTlsVersion);
}
+
/** The stage of the Cluster update allowing to specify encryption. */
interface WithEncryption {
/**
@@ -363,6 +379,7 @@ interface WithEncryption {
Update withEncryption(ClusterPropertiesEncryption encryption);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java
index 93d3dfb8c1c42..90c15c255cd33 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java
@@ -124,11 +124,13 @@ public interface Database {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The Database definition stages. */
interface DefinitionStages {
/** The first stage of the Database definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the Database definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -140,6 +142,7 @@ interface WithParentResource {
*/
WithCreate withExistingRedisEnterprise(String resourceGroupName, String clusterName);
}
+
/**
* The stage of the Database definition which contains all the minimum required properties for the resource to
* be created, but also allows for any other optional properties to be specified.
@@ -167,6 +170,7 @@ interface WithCreate
*/
Database create(Context context);
}
+
/** The stage of the Database definition allowing to specify clientProtocol. */
interface WithClientProtocol {
/**
@@ -179,6 +183,7 @@ interface WithClientProtocol {
*/
WithCreate withClientProtocol(Protocol clientProtocol);
}
+
/** The stage of the Database definition allowing to specify port. */
interface WithPort {
/**
@@ -190,6 +195,7 @@ interface WithPort {
*/
WithCreate withPort(Integer port);
}
+
/** The stage of the Database definition allowing to specify clusteringPolicy. */
interface WithClusteringPolicy {
/**
@@ -201,6 +207,7 @@ interface WithClusteringPolicy {
*/
WithCreate withClusteringPolicy(ClusteringPolicy clusteringPolicy);
}
+
/** The stage of the Database definition allowing to specify evictionPolicy. */
interface WithEvictionPolicy {
/**
@@ -211,6 +218,7 @@ interface WithEvictionPolicy {
*/
WithCreate withEvictionPolicy(EvictionPolicy evictionPolicy);
}
+
/** The stage of the Database definition allowing to specify persistence. */
interface WithPersistence {
/**
@@ -221,6 +229,7 @@ interface WithPersistence {
*/
WithCreate withPersistence(Persistence persistence);
}
+
/** The stage of the Database definition allowing to specify modules. */
interface WithModules {
/**
@@ -233,6 +242,7 @@ interface WithModules {
*/
WithCreate withModules(List modules);
}
+
/** The stage of the Database definition allowing to specify geoReplication. */
interface WithGeoReplication {
/**
@@ -245,6 +255,7 @@ interface WithGeoReplication {
WithCreate withGeoReplication(DatabasePropertiesGeoReplication geoReplication);
}
}
+
/**
* Begins update for the Database resource.
*
@@ -270,6 +281,7 @@ interface Update
*/
Database apply(Context context);
}
+
/** The Database update stages. */
interface UpdateStages {
/** The stage of the Database update allowing to specify clientProtocol. */
@@ -284,6 +296,7 @@ interface WithClientProtocol {
*/
Update withClientProtocol(Protocol clientProtocol);
}
+
/** The stage of the Database update allowing to specify evictionPolicy. */
interface WithEvictionPolicy {
/**
@@ -294,6 +307,7 @@ interface WithEvictionPolicy {
*/
Update withEvictionPolicy(EvictionPolicy evictionPolicy);
}
+
/** The stage of the Database update allowing to specify persistence. */
interface WithPersistence {
/**
@@ -305,6 +319,7 @@ interface WithPersistence {
Update withPersistence(Persistence persistence);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ExportClusterParameters.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ExportClusterParameters.java
index db429aa7d8e98..65f6b52f816eb 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ExportClusterParameters.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ExportClusterParameters.java
@@ -18,7 +18,7 @@ public final class ExportClusterParameters {
/*
* SAS URI for the target directory to export to
*/
- @JsonProperty(value = "sasUri", required = true)
+ @JsonProperty(value = "sasUri")
private String sasUri;
/** Creates an instance of ExportClusterParameters class. */
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/FlushParameters.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/FlushParameters.java
index 6961dd359be76..51c8bcae2e301 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/FlushParameters.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/FlushParameters.java
@@ -9,14 +9,14 @@
import java.util.List;
/**
- * Flush all the keys from the current and all its linked databases
+ * Flush all the keys from the current and all its linked databases.
*
* Parameters for a Redis Enterprise active geo-replication flush operation.
*/
@Fluent
public final class FlushParameters {
/*
- * The resource identifiers of all the other database resources in the georeplication group to be flushed
+ * The identifiers of all the other database resources in the georeplication group to be flushed.
*/
@JsonProperty(value = "ids")
private List ids;
@@ -26,8 +26,8 @@ public FlushParameters() {
}
/**
- * Get the ids property: The resource identifiers of all the other database resources in the georeplication group to
- * be flushed.
+ * Get the ids property: The identifiers of all the other database resources in the georeplication group to be
+ * flushed.
*
* @return the ids value.
*/
@@ -36,8 +36,8 @@ public List ids() {
}
/**
- * Set the ids property: The resource identifiers of all the other database resources in the georeplication group to
- * be flushed.
+ * Set the ids property: The identifiers of all the other database resources in the georeplication group to be
+ * flushed.
*
* @param ids the ids value to set.
* @return the FlushParameters object itself.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ImportClusterParameters.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ImportClusterParameters.java
index 2c1fdd2517c02..ac010f6587966 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ImportClusterParameters.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ImportClusterParameters.java
@@ -19,7 +19,7 @@ public final class ImportClusterParameters {
/*
* SAS URIs for the target blobs to import from
*/
- @JsonProperty(value = "sasUris", required = true)
+ @JsonProperty(value = "sasUris")
private List sasUris;
/** Creates an instance of ImportClusterParameters class. */
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/LocationInfo.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/LocationInfo.java
deleted file mode 100644
index c07423fea2d1f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/LocationInfo.java
+++ /dev/null
@@ -1,80 +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.redisenterprise.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Information about location (for example: features that it supports). */
-@Fluent
-public final class LocationInfo {
- /*
- * Location name
- */
- @JsonProperty(value = "location")
- private String location;
-
- /*
- * List of capabilities
- */
- @JsonProperty(value = "capabilities")
- private List capabilities;
-
- /** Creates an instance of LocationInfo class. */
- public LocationInfo() {
- }
-
- /**
- * Get the location property: Location name.
- *
- * @return the location value.
- */
- public String location() {
- return this.location;
- }
-
- /**
- * Set the location property: Location name.
- *
- * @param location the location value to set.
- * @return the LocationInfo object itself.
- */
- public LocationInfo withLocation(String location) {
- this.location = location;
- return this;
- }
-
- /**
- * Get the capabilities property: List of capabilities.
- *
- * @return the capabilities value.
- */
- public List capabilities() {
- return this.capabilities;
- }
-
- /**
- * Set the capabilities property: List of capabilities.
- *
- * @param capabilities the capabilities value to set.
- * @return the LocationInfo object itself.
- */
- public LocationInfo withCapabilities(List capabilities) {
- this.capabilities = capabilities;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (capabilities() != null) {
- capabilities().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java
index d9c1082fad26c..5344c9eabbb42 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java
@@ -78,11 +78,13 @@ public interface PrivateEndpointConnection {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The PrivateEndpointConnection definition stages. */
interface DefinitionStages {
/** The first stage of the PrivateEndpointConnection definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the PrivateEndpointConnection definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -94,6 +96,7 @@ interface WithParentResource {
*/
WithCreate withExistingRedisEnterprise(String resourceGroupName, String clusterName);
}
+
/**
* The stage of the PrivateEndpointConnection definition which contains all the minimum required properties for
* the resource to be created, but also allows for any other optional properties to be specified.
@@ -115,6 +118,7 @@ interface WithCreate
*/
PrivateEndpointConnection create(Context context);
}
+
/** The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint. */
interface WithPrivateEndpoint {
/**
@@ -125,6 +129,7 @@ interface WithPrivateEndpoint {
*/
WithCreate withPrivateEndpoint(PrivateEndpoint privateEndpoint);
}
+
/**
* The stage of the PrivateEndpointConnection definition allowing to specify privateLinkServiceConnectionState.
*/
@@ -141,6 +146,7 @@ WithCreate withPrivateLinkServiceConnectionState(
PrivateLinkServiceConnectionState privateLinkServiceConnectionState);
}
}
+
/**
* Begins update for the PrivateEndpointConnection resource.
*
@@ -165,6 +171,7 @@ interface Update extends UpdateStages.WithPrivateEndpoint, UpdateStages.WithPriv
*/
PrivateEndpointConnection apply(Context context);
}
+
/** The PrivateEndpointConnection update stages. */
interface UpdateStages {
/** The stage of the PrivateEndpointConnection update allowing to specify privateEndpoint. */
@@ -177,6 +184,7 @@ interface WithPrivateEndpoint {
*/
Update withPrivateEndpoint(PrivateEndpoint privateEndpoint);
}
+
/** The stage of the PrivateEndpointConnection update allowing to specify privateLinkServiceConnectionState. */
interface WithPrivateLinkServiceConnectionState {
/**
@@ -191,6 +199,7 @@ Update withPrivateLinkServiceConnectionState(
PrivateLinkServiceConnectionState privateLinkServiceConnectionState);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java
index 04d8334ce2964..b48d46725de1e 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java
@@ -75,14 +75,11 @@ Response getWithResponse(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
- Response deleteWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+ void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -91,11 +88,12 @@ Response deleteWithResponse(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
- void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
+ void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
/**
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -140,9 +138,8 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
- Response deleteByIdWithResponse(String id, Context context);
+ void deleteByIdWithResponse(String id, Context context);
/**
* Begins definition for a new PrivateEndpointConnection resource.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java
index 2a66480a02f4d..ca990fd9136f7 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java
@@ -103,6 +103,30 @@ public interface RedisEnterprises {
*/
PagedIterable list(Context context);
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ Response checkNameAvailabilityWithResponse(CheckNameAvailabilityParameters parameters, Context context);
+
+ /**
+ * Checks that the Redis Enterprise cache name is valid and is not already in use.
+ *
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
+ * type is 'Microsoft.Cache/redisenterprise'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void checkNameAvailability(CheckNameAvailabilityParameters parameters);
+
/**
* Gets information about a RedisEnterprise cluster.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetail.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetail.java
deleted file mode 100644
index 520df8717f2fa..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetail.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.redisenterprise.models;
-
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-
-/** An immutable client-side representation of RegionSkuDetail. */
-public interface RegionSkuDetail {
- /**
- * Gets the resourceType property: Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise.
- *
- * @return the resourceType value.
- */
- String resourceType();
-
- /**
- * Gets the locationInfo property: Details about location and its capabilities.
- *
- * @return the locationInfo value.
- */
- LocationInfo locationInfo();
-
- /**
- * Gets the skuDetails property: Sku Detail
- *
- * Details about available skus.
- *
- * @return the skuDetails value.
- */
- SkuDetail skuDetails();
-
- /**
- * Gets the inner com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner object.
- *
- * @return the inner object.
- */
- RegionSkuDetailInner innerModel();
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetails.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetails.java
deleted file mode 100644
index 6bf8863b0e6b1..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetails.java
+++ /dev/null
@@ -1,59 +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.redisenterprise.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/**
- * Region Sku Details
- *
- *
List of details about all the available SKUs.
- */
-@Fluent
-public final class RegionSkuDetails {
- /*
- * List of Sku Detail
- */
- @JsonProperty(value = "value")
- private List value;
-
- /** Creates an instance of RegionSkuDetails class. */
- public RegionSkuDetails() {
- }
-
- /**
- * Get the value property: List of Sku Detail.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: List of Sku Detail.
- *
- * @param value the value value to set.
- * @return the RegionSkuDetails object itself.
- */
- public RegionSkuDetails withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ResourceState.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ResourceState.java
index 05fd95a4b78b6..a22bebd1cb901 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ResourceState.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ResourceState.java
@@ -46,6 +46,12 @@ public final class ResourceState extends ExpandableStringEnum {
/** Static value Disabled for ResourceState. */
public static final ResourceState DISABLED = fromString("Disabled");
+ /** Static value Scaling for ResourceState. */
+ public static final ResourceState SCALING = fromString("Scaling");
+
+ /** Static value ScalingFailed for ResourceState. */
+ public static final ResourceState SCALING_FAILED = fromString("ScalingFailed");
+
/**
* Creates a new instance of ResourceState value.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuDetail.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuDetail.java
deleted file mode 100644
index bb8bf16368d17..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuDetail.java
+++ /dev/null
@@ -1,56 +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.redisenterprise.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * Sku Detail
- *
- * Information about Sku.
- */
-@Fluent
-public final class SkuDetail {
- /*
- * The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
- */
- @JsonProperty(value = "name")
- private SkuName name;
-
- /** Creates an instance of SkuDetail class. */
- public SkuDetail() {
- }
-
- /**
- * Get the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10,
- * EnterpriseFlash_F300 etc.).
- *
- * @return the name value.
- */
- public SkuName name() {
- return this.name;
- }
-
- /**
- * Set the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10,
- * EnterpriseFlash_F300 etc.).
- *
- * @param name the name value to set.
- * @return the SkuDetail object itself.
- */
- public SkuDetail withName(SkuName name) {
- this.name = name;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java
index cfc69f2906aa7..941f6434be8c1 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java
@@ -10,6 +10,9 @@
/** Defines values for SkuName. */
public final class SkuName extends ExpandableStringEnum {
+ /** Static value Enterprise_E5 for SkuName. */
+ public static final SkuName ENTERPRISE_E5 = fromString("Enterprise_E5");
+
/** Static value Enterprise_E10 for SkuName. */
public static final SkuName ENTERPRISE_E10 = fromString("Enterprise_E10");
@@ -22,6 +25,12 @@ public final class SkuName extends ExpandableStringEnum {
/** Static value Enterprise_E100 for SkuName. */
public static final SkuName ENTERPRISE_E100 = fromString("Enterprise_E100");
+ /** Static value Enterprise_E200 for SkuName. */
+ public static final SkuName ENTERPRISE_E200 = fromString("Enterprise_E200");
+
+ /** Static value Enterprise_E400 for SkuName. */
+ public static final SkuName ENTERPRISE_E400 = fromString("Enterprise_E400");
+
/** Static value EnterpriseFlash_F300 for SkuName. */
public static final SkuName ENTERPRISE_FLASH_F300 = fromString("EnterpriseFlash_F300");
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Skus.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Skus.java
deleted file mode 100644
index 0d035c1bae9ff..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Skus.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.redisenterprise.models;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-
-/** Resource collection API of Skus. */
-public interface Skus {
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedIterable}.
- */
- PagedIterable list(String location);
-
- /**
- * Gets information about skus in specified location for the given subscription id.
- *
- * @param location The name of Azure region.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about skus in specified location for the given subscription id as paginated response with
- * {@link PagedIterable}.
- */
- PagedIterable list(String location, Context context);
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json
new file mode 100644
index 0000000000000..071af40d70b0e
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json
@@ -0,0 +1 @@
+[ [ "com.azure.resourcemanager.redisenterprise.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.redisenterprise.implementation.OperationsStatusClientImpl$OperationsStatusService" ], [ "com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesClientImpl$RedisEnterprisesService" ], [ "com.azure.resourcemanager.redisenterprise.implementation.DatabasesClientImpl$DatabasesService" ], [ "com.azure.resourcemanager.redisenterprise.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService" ] ]
\ No newline at end of file
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/reflect-config.json b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/reflect-config.json
new file mode 100644
index 0000000000000..51a41f58261fa
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/reflect-config.json
@@ -0,0 +1,271 @@
+[ {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.OperationListResult",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.OperationDisplay",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.Sku",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.ClusterProperties",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionProperties",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusterUpdate",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusterList",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.DatabaseList",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseProperties",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.Persistence",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.Module",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.LinkedDatabase",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.AccessKeysInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionListResult",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateLinkResourceListResult",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceProperties",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.FlushParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.CheckNameAvailabilityParameters",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.Origin",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ActionType",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.SkuName",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.TlsVersion",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.CmkIdentityType",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ProvisioningState",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ResourceState",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionProvisioningState",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.Protocol",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.EvictionPolicy",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.AofFrequency",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.RdbFrequency",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.LinkState",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.redisenterprise.models.AccessKeyType",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+} ]
\ No newline at end of file
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java
index 38cd9fcae483d..cece939cd2665 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java
@@ -17,7 +17,7 @@
/** Samples for Databases Create. */
public final class DatabasesCreateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesCreate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesCreate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate.
@@ -45,7 +45,7 @@ public static void redisEnterpriseDatabasesCreate(
}
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate With Active Geo Replication.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java
index 62f5a06b8e6f3..cdbe65bb30ac6 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for Databases Delete. */
public final class DatabasesDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesDelete.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesDelete.json
*/
/**
* Sample code: RedisEnterpriseDatabasesDelete.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java
index 3f88f12b2f0f0..183fdc7045e5c 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java
@@ -9,7 +9,7 @@
/** Samples for Databases Export. */
public final class DatabasesExportSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesExport.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesExport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesExport.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java
index 326ea36a78eca..81405e7165880 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java
@@ -10,7 +10,7 @@
/** Samples for Databases Flush. */
public final class DatabasesFlushSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesFlush.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesFlush.json
*/
/**
* Sample code: How to flush all the keys in the database.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java
index 937ba66aa8c83..864edde9aea1d 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java
@@ -10,7 +10,7 @@
/** Samples for Databases ForceUnlink. */
public final class DatabasesForceUnlinkSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesForceUnlink.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesForceUnlink.json
*/
/**
* Sample code: How to unlink a database during a regional outage.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java
index 4afaa584562cd..bfc512b1c9886 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for Databases Get. */
public final class DatabasesGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesGet.json
*/
/**
* Sample code: RedisEnterpriseDatabasesGet.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java
index 51e054badbecf..fba862d6decfd 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java
@@ -10,7 +10,7 @@
/** Samples for Databases ImportMethod. */
public final class DatabasesImportMethodSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesImport.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesImport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesImport.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java
index 3d2345f7f550e..16ddf92620ca7 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java
@@ -7,7 +7,7 @@
/** Samples for Databases ListByCluster. */
public final class DatabasesListByClusterSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesListByCluster.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesListByCluster.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListByCluster.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java
index 810aebae03b76..804be21b0e653 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java
@@ -7,7 +7,7 @@
/** Samples for Databases ListKeys. */
public final class DatabasesListKeysSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesListKeys.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesListKeys.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListKeys.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java
index a35052532820a..8f6ee1326cd8a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java
@@ -10,7 +10,7 @@
/** Samples for Databases RegenerateKey. */
public final class DatabasesRegenerateKeySamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesRegenerateKey.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesRegenerateKey.json
*/
/**
* Sample code: RedisEnterpriseDatabasesRegenerateKey.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java
index 56565da1f6655..9d5407f3140a8 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for Databases Update. */
public final class DatabasesUpdateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesUpdate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDatabasesUpdate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesUpdate.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java
index 665c43997f3f8..758ea1c365535 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/OperationsList.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/OperationsList.json
*/
/**
* Sample code: OperationsList.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java
index 271cbd96ea8b2..f0c8362f37ced 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for OperationsStatus Get. */
public final class OperationsStatusGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/OperationsStatusGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/OperationsStatusGet.json
*/
/**
* Sample code: OperationsStatusGet.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java
index 67c0b482b470e..3627d3d098a7a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseDeletePrivateEndpointConnection.
@@ -16,8 +16,6 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public static void redisEnterpriseDeletePrivateEndpointConnection(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager
- .privateEndpointConnections()
- .deleteWithResponse("rg1", "cache1", "pectest01", com.azure.core.util.Context.NONE);
+ manager.privateEndpointConnections().delete("rg1", "cache1", "pectest01", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java
index 926418d4529e7..2537d583de55a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseGetPrivateEndpointConnection.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java
index 137cdd9ad5709..a8796904aa704 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections List. */
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateEndpointConnections.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseListPrivateEndpointConnections.json
*/
/**
* Sample code: RedisEnterpriseListPrivateEndpointConnections.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java
index afa3503d855fb..9285dcdacb60d 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java
@@ -10,7 +10,7 @@
/** Samples for PrivateEndpointConnections Put. */
public final class PrivateEndpointConnectionsPutSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterprisePutPrivateEndpointConnection.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java
index 95b20f5b140b6..a150178f0803f 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java
@@ -7,7 +7,7 @@
/** Samples for PrivateLinkResources ListByCluster. */
public final class PrivateLinkResourcesListByClusterSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateLinkResources.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseListPrivateLinkResources.json
*/
/**
* Sample code: RedisEnterpriseListPrivateLinkResources.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCheckNameAvailabilitySamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCheckNameAvailabilitySamples.java
new file mode 100644
index 0000000000000..8dee223c626a5
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCheckNameAvailabilitySamples.java
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.generated;
+
+import com.azure.resourcemanager.redisenterprise.models.CheckNameAvailabilityParameters;
+
+/** Samples for RedisEnterprise CheckNameAvailability. */
+public final class RedisEnterpriseCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseCheckNameAvailability.json
+ */
+ /**
+ * Sample code: RedisCacheList.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void redisCacheList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager
+ .redisEnterprises()
+ .checkNameAvailabilityWithResponse(
+ new CheckNameAvailabilityParameters().withName("cacheName").withType("Microsoft.Cache/redisenterprise"),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java
index 0e215713432d1..383fb6da1db04 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java
@@ -21,7 +21,7 @@
/** Samples for RedisEnterprise Create. */
public final class RedisEnterpriseCreateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseCreate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseCreate.json
*/
/**
* Sample code: RedisEnterpriseCreate.
@@ -58,6 +58,7 @@ public static void redisEnterpriseCreate(com.azure.resourcemanager.redisenterpri
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java
index a84c3525976dc..6ffbc6dd34a8a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java
@@ -7,7 +7,7 @@
/** Samples for RedisEnterprise Delete. */
public final class RedisEnterpriseDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDelete.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseDelete.json
*/
/**
* Sample code: RedisEnterpriseDelete.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java
index 65dfb9caa35f5..c9ebee9b9bb3c 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for RedisEnterprise GetByResourceGroup. */
public final class RedisEnterpriseGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseGet.json
*/
/**
* Sample code: RedisEnterpriseGet.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java
index 6bf487cdaecfc..4f1a9f969648d 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java
@@ -7,7 +7,7 @@
/** Samples for RedisEnterprise ListByResourceGroup. */
public final class RedisEnterpriseListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListByResourceGroup.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseListByResourceGroup.json
*/
/**
* Sample code: RedisEnterpriseListByResourceGroup.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java
index caee449cc761d..6b488fe73a6ed 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java
@@ -7,7 +7,7 @@
/** Samples for RedisEnterprise List. */
public final class RedisEnterpriseListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseList.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseList.json
*/
/**
* Sample code: RedisEnterpriseList.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java
index 05b9adf7bc81e..9d9114ee2b948 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java
@@ -14,7 +14,7 @@
/** Samples for RedisEnterprise Update. */
public final class RedisEnterpriseUpdateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseUpdate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-10-01-preview/examples/RedisEnterpriseUpdate.json
*/
/**
* Sample code: RedisEnterpriseUpdate.
@@ -35,6 +35,7 @@ public static void redisEnterpriseUpdate(com.azure.resourcemanager.redisenterpri
.apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/SkusListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/SkusListSamples.java
deleted file mode 100644
index a7560f8f95a0c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/SkusListSamples.java
+++ /dev/null
@@ -1,20 +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.redisenterprise.generated;
-
-/** Samples for Skus List. */
-public final class SkusListSamples {
- /*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseSkusList.json
- */
- /**
- * Sample code: SkusList.
- *
- * @param manager Entry point to RedisEnterpriseManager.
- */
- public static void skusList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.skus().list("westus2", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java
deleted file mode 100644
index 610043a8d46dd..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import org.junit.jupiter.api.Assertions;
-
-public final class CapabilityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Capability model =
- BinaryData.fromString("{\"name\":\"oklyaxuconuq\",\"value\":false}").toObject(Capability.class);
- Assertions.assertEquals("oklyaxuconuq", model.name());
- Assertions.assertEquals(false, model.value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Capability model = new Capability().withName("oklyaxuconuq").withValue(false);
- model = BinaryData.fromObject(model).toObject(Capability.class);
- Assertions.assertEquals("oklyaxuconuq", model.name());
- Assertions.assertEquals(false, model.value());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java
deleted file mode 100644
index 15f7bbc8cbedb..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java
+++ /dev/null
@@ -1,73 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterInner model =
- BinaryData
- .fromString(
- "{\"sku\":{\"name\":\"EnterpriseFlash_F700\",\"capacity\":992034682},\"zones\":[\"k\",\"vd\"],\"identity\":{\"principalId\":\"f5d47d63-4d8c-4425-9f08-befe321ff670\",\"tenantId\":\"aa43d95d-3905-4c9d-96c4-efd75eb5dbc2\",\"type\":\"None\",\"userAssignedIdentities\":{\"ukxgaud\":{\"principalId\":\"7a20e069-609c-4680-b9aa-e9ce7d87d024\",\"clientId\":\"1efc16fa-c5ff-48a1-9c85-4910c07da9c6\"},\"nhsjcnyej\":{\"principalId\":\"e40317fa-41f4-40d8-baea-a1e193f6138a\",\"clientId\":\"61cfc4f6-8a7d-4ccf-bc66-c8b1864a2f63\"}}},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"encryption\":{},\"hostName\":\"apcz\",\"provisioningState\":\"Creating\",\"resourceState\":\"DeleteFailed\",\"redisVersion\":\"emkkvnipjox\",\"privateEndpointConnections\":[{\"id\":\"gejspodmailzyde\",\"name\":\"o\",\"type\":\"wyahuxinpmqnja\"},{\"id\":\"xj\",\"name\":\"prozvcputegjvwmf\",\"type\":\"atscmd\"}]},\"location\":\"jhulsuuvmkjo\",\"tags\":{\"ej\":\"wfndiodjpsl\",\"azakl\":\"pvwryoqpsoacc\"},\"id\":\"lahbcryff\",\"name\":\"fdosyg\",\"type\":\"xpaojakhmsbz\"}")
- .toObject(ClusterInner.class);
- Assertions.assertEquals("jhulsuuvmkjo", model.location());
- Assertions.assertEquals("wfndiodjpsl", model.tags().get("ej"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, model.sku().name());
- Assertions.assertEquals(992034682, model.sku().capacity());
- Assertions.assertEquals("k", model.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterInner model =
- new ClusterInner()
- .withLocation("jhulsuuvmkjo")
- .withTags(mapOf("ej", "wfndiodjpsl", "azakl", "pvwryoqpsoacc"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F700).withCapacity(992034682))
- .withZones(Arrays.asList("k", "vd"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(
- mapOf("ukxgaud", new UserAssignedIdentity(), "nhsjcnyej", new UserAssignedIdentity())))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO)
- .withEncryption(new ClusterPropertiesEncryption());
- model = BinaryData.fromObject(model).toObject(ClusterInner.class);
- Assertions.assertEquals("jhulsuuvmkjo", model.location());
- Assertions.assertEquals("wfndiodjpsl", model.tags().get("ej"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, model.sku().name());
- Assertions.assertEquals(992034682, model.sku().capacity());
- Assertions.assertEquals("k", model.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java
deleted file mode 100644
index 35b760d40b2d0..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java
+++ /dev/null
@@ -1,114 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusterList;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"sku\":{\"name\":\"Enterprise_E100\",\"capacity\":757698897},\"zones\":[\"l\",\"ndlik\",\"yqkgfg\"],\"identity\":{\"principalId\":\"90eff83e-825f-48f3-965e-3d795be6a629\",\"tenantId\":\"75977f0f-8699-47eb-a4d1-da4ff4ec7b73\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"hostName\":\"rxybz\",\"provisioningState\":\"Canceled\",\"resourceState\":\"Disabled\",\"redisVersion\":\"tbciqfouflmm\",\"privateEndpointConnections\":[]},\"location\":\"smodmgloug\",\"tags\":{\"ta\":\"wtmutduq\",\"whbmd\":\"spwgcuertumkdosv\",\"bhtqqrolfpfpsa\":\"bbjfddgmbmbexp\",\"jgzjaoyfhrtx\":\"gbquxigj\"},\"id\":\"lnerkujysvleju\",\"name\":\"fqawrlyxw\",\"type\":\"kcprbnw\"},{\"sku\":{\"name\":\"EnterpriseFlash_F1500\",\"capacity\":19976049},\"zones\":[\"bvpyss\",\"dnrujqguhmuouqfp\",\"wzwbnguitn\"],\"identity\":{\"principalId\":\"c00a688f-e999-484c-a8a0-66e1185caef2\",\"tenantId\":\"2cbddb9d-555d-4e1d-bad2-29624caf2ff6\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"hostName\":\"zuckyfi\",\"provisioningState\":\"Creating\",\"resourceState\":\"EnableFailed\",\"redisVersion\":\"vzwdzuhtymwis\",\"privateEndpointConnections\":[]},\"location\":\"thwxmnteiwaopvkm\",\"tags\":{\"uf\":\"mmxdcu\"},\"id\":\"rpymzidnsez\",\"name\":\"xtbzsgfyccsne\",\"type\":\"mdwzjeiachboo\"},{\"sku\":{\"name\":\"Enterprise_E20\",\"capacity\":219333087},\"zones\":[\"sfqpteehz\",\"vypyqrimzinpv\",\"wjdk\"],\"identity\":{\"principalId\":\"3bd9ea38-b56c-4244-85ed-751adf8ece99\",\"tenantId\":\"e55d238e-b999-422a-bc19-990b3d105f10\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"hostName\":\"mnoh\",\"provisioningState\":\"Failed\",\"resourceState\":\"Running\",\"redisVersion\":\"dsoifiyipj\",\"privateEndpointConnections\":[]},\"location\":\"wpgrjbzno\",\"tags\":{\"nb\":\"xv\",\"rzafbljjgpbtoqcj\":\"xqabnmocpcysh\",\"vbqid\":\"klj\"},\"id\":\"qajzyulpkudjkr\",\"name\":\"khbzhfepgzg\",\"type\":\"e\"},{\"sku\":{\"name\":\"Enterprise_E20\",\"capacity\":1678385538},\"zones\":[\"scpai\",\"rhhbcs\",\"l\"],\"identity\":{\"principalId\":\"7b158bd3-97df-4c2a-ac7e-1b2217741991\",\"tenantId\":\"e484b802-9883-4733-a687-d29514741b98\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"hostName\":\"obnbdxkqpxokaj\",\"provisioningState\":\"Succeeded\",\"resourceState\":\"Disabling\",\"redisVersion\":\"ex\",\"privateEndpointConnections\":[]},\"location\":\"xgcp\",\"tags\":{\"mcl\":\"maajrmvdjwzrlo\",\"jctbza\":\"hijco\"},\"id\":\"s\",\"name\":\"sycbkbfk\",\"type\":\"ukdkexxppofmxa\"}],\"nextLink\":\"fjpgddtocjjxhvp\"}")
- .toObject(ClusterList.class);
- Assertions.assertEquals("smodmgloug", model.value().get(0).location());
- Assertions.assertEquals("wtmutduq", model.value().get(0).tags().get("ta"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.value().get(0).sku().name());
- Assertions.assertEquals(757698897, model.value().get(0).sku().capacity());
- Assertions.assertEquals("l", model.value().get(0).zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, model.value().get(0).minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterList model =
- new ClusterList()
- .withValue(
- Arrays
- .asList(
- new ClusterInner()
- .withLocation("smodmgloug")
- .withTags(
- mapOf(
- "ta",
- "wtmutduq",
- "whbmd",
- "spwgcuertumkdosv",
- "bhtqqrolfpfpsa",
- "bbjfddgmbmbexp",
- "jgzjaoyfhrtx",
- "gbquxigj"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E100).withCapacity(757698897))
- .withZones(Arrays.asList("l", "ndlik", "yqkgfg"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE),
- new ClusterInner()
- .withLocation("thwxmnteiwaopvkm")
- .withTags(mapOf("uf", "mmxdcu"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F1500).withCapacity(19976049))
- .withZones(Arrays.asList("bvpyss", "dnrujqguhmuouqfp", "wzwbnguitn"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE),
- new ClusterInner()
- .withLocation("wpgrjbzno")
- .withTags(mapOf("nb", "xv", "rzafbljjgpbtoqcj", "xqabnmocpcysh", "vbqid", "klj"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(219333087))
- .withZones(Arrays.asList("sfqpteehz", "vypyqrimzinpv", "wjdk"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO),
- new ClusterInner()
- .withLocation("xgcp")
- .withTags(mapOf("mcl", "maajrmvdjwzrlo", "jctbza", "hijco"))
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(1678385538))
- .withZones(Arrays.asList("scpai", "rhhbcs", "l"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_TWO)));
- model = BinaryData.fromObject(model).toObject(ClusterList.class);
- Assertions.assertEquals("smodmgloug", model.value().get(0).location());
- Assertions.assertEquals("wtmutduq", model.value().get(0).tags().get("ta"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.value().get(0).sku().name());
- Assertions.assertEquals(757698897, model.value().get(0).sku().capacity());
- Assertions.assertEquals("l", model.value().get(0).zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, model.value().get(0).minimumTlsVersion());
- }
-
- @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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java
deleted file mode 100644
index f4ebd3e0e5c6c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java
+++ /dev/null
@@ -1,37 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity;
-import com.azure.resourcemanager.redisenterprise.models.CmkIdentityType;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model =
- BinaryData
- .fromString(
- "{\"userAssignedIdentityResourceId\":\"ininmay\",\"identityType\":\"systemAssignedIdentity\"}")
- .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class);
- Assertions.assertEquals("ininmay", model.userAssignedIdentityResourceId());
- Assertions.assertEquals(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model =
- new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity()
- .withUserAssignedIdentityResourceId("ininmay")
- .withIdentityType(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY);
- model =
- BinaryData
- .fromObject(model)
- .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class);
- Assertions.assertEquals("ininmay", model.userAssignedIdentityResourceId());
- Assertions.assertEquals(CmkIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java
deleted file mode 100644
index 5465c3945be3e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java
+++ /dev/null
@@ -1,72 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClusterUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClusterUpdate model =
- BinaryData
- .fromString(
- "{\"sku\":{\"name\":\"EnterpriseFlash_F300\",\"capacity\":422670277},\"properties\":{\"minimumTlsVersion\":\"1.0\",\"encryption\":{},\"hostName\":\"tnhxbn\",\"provisioningState\":\"Creating\",\"resourceState\":\"EnableFailed\",\"redisVersion\":\"rglssainqpj\",\"privateEndpointConnections\":[{\"id\":\"jfm\",\"name\":\"pee\",\"type\":\"vmgxsab\"},{\"id\":\"duuji\",\"name\":\"c\",\"type\":\"czdzev\"},{\"id\":\"krwpdap\",\"name\":\"dsbdkvwrwjf\",\"type\":\"usnhutje\"},{\"id\":\"rl\",\"name\":\"hugjzzdatqxhoc\",\"type\":\"geablgphuticndvk\"}]},\"identity\":{\"principalId\":\"e84f62b1-2b03-467b-b87a-d96e0b7bea22\",\"tenantId\":\"658aedbe-c6c3-465e-887d-c6bc7115ba00\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"hxh\":{\"principalId\":\"ef6b2490-4e98-4cfb-b2e2-351940dfc312\",\"clientId\":\"05a96c3d-d9e2-42d5-aa75-35d9cd89e45c\"},\"k\":{\"principalId\":\"4c71974d-b491-42db-8c3a-2b0ae199951c\",\"clientId\":\"6d3c5a9d-76cb-4700-b927-e153ac1b3d29\"},\"xolniwpwcukjfk\":{\"principalId\":\"3c01bd84-5c98-4fff-acf3-94fdcf59eff5\",\"clientId\":\"dd3813d9-95e6-4ddf-86ce-64f6207edea3\"}}},\"tags\":{\"klryplwck\":\"w\",\"pnddhsgcbacphejk\":\"asy\"}}")
- .toObject(ClusterUpdate.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F300, model.sku().name());
- Assertions.assertEquals(422670277, model.sku().capacity());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("w", model.tags().get("klryplwck"));
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClusterUpdate model =
- new ClusterUpdate()
- .withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(422670277))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "hxh",
- new UserAssignedIdentity(),
- "k",
- new UserAssignedIdentity(),
- "xolniwpwcukjfk",
- new UserAssignedIdentity())))
- .withTags(mapOf("klryplwck", "w", "pnddhsgcbacphejk", "asy"))
- .withMinimumTlsVersion(TlsVersion.ONE_ZERO)
- .withEncryption(new ClusterPropertiesEncryption());
- model = BinaryData.fromObject(model).toObject(ClusterUpdate.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F300, model.sku().name());
- Assertions.assertEquals(422670277, model.sku().capacity());
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type());
- Assertions.assertEquals("w", model.tags().get("klryplwck"));
- Assertions.assertEquals(TlsVersion.ONE_ZERO, model.minimumTlsVersion());
- }
-
- @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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java
deleted file mode 100644
index 8bc50f5acc18a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java
+++ /dev/null
@@ -1,79 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":248377661,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[{\"name\":\"ftutqxlngxlefgu\",\"args\":\"xkrxdqmi\",\"version\":\"thz\"},{\"name\":\"vqdra\",\"args\":\"jybige\",\"version\":\"qfbow\"},{\"name\":\"kanyktzlcuiywg\",\"args\":\"wgndrvynhzgpp\",\"version\":\"cgyncocpecf\"},{\"name\":\"m\",\"args\":\"oo\",\"version\":\"xlzevgbmqjqabcy\"}],\"geoReplication\":{\"groupNickname\":\"vkwlzuvccfwnf\",\"linkedDatabases\":[]}},\"id\":\"fionl\",\"name\":\"bxetqgtzxdpn\",\"type\":\"bqqwxrj\"}")
- .toObject(DatabaseInner.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(248377661, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("ftutqxlngxlefgu", model.modules().get(0).name());
- Assertions.assertEquals("xkrxdqmi", model.modules().get(0).args());
- Assertions.assertEquals("vkwlzuvccfwnf", model.geoReplication().groupNickname());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseInner model =
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(248377661)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_RANDOM)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.SIXH))
- .withModules(
- Arrays
- .asList(
- new Module().withName("ftutqxlngxlefgu").withArgs("xkrxdqmi"),
- new Module().withName("vqdra").withArgs("jybige"),
- new Module().withName("kanyktzlcuiywg").withArgs("wgndrvynhzgpp"),
- new Module().withName("m").withArgs("oo")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("vkwlzuvccfwnf")
- .withLinkedDatabases(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(DatabaseInner.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(248377661, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("ftutqxlngxlefgu", model.modules().get(0).name());
- Assertions.assertEquals("xkrxdqmi", model.modules().get(0).args());
- Assertions.assertEquals("vkwlzuvccfwnf", model.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java
deleted file mode 100644
index 49347126f3ae9..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java
+++ /dev/null
@@ -1,55 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabaseList;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseList model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":2146697807,\"provisioningState\":\"Deleting\",\"resourceState\":\"Disabling\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLFU\",\"modules\":[]},\"id\":\"vddntwn\",\"name\":\"eic\",\"type\":\"twnpzaoqvuhrhcf\"},{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1519639894,\"provisioningState\":\"Failed\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysLFU\",\"modules\":[]},\"id\":\"icxm\",\"name\":\"ciwqvhk\",\"type\":\"ixuigdtopbobj\"}],\"nextLink\":\"hm\"}")
- .toObject(DatabaseList.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.value().get(0).clientProtocol());
- Assertions.assertEquals(2146697807, model.value().get(0).port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.value().get(0).clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, model.value().get(0).evictionPolicy());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseList model =
- new DatabaseList()
- .withValue(
- Arrays
- .asList(
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(2146697807)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_LFU)
- .withModules(Arrays.asList()),
- new DatabaseInner()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(1519639894)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.ALL_KEYS_LFU)
- .withModules(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(DatabaseList.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.value().get(0).clientProtocol());
- Assertions.assertEquals(2146697807, model.value().get(0).port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.value().get(0).clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, model.value().get(0).evictionPolicy());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java
deleted file mode 100644
index 6cf75af31d898..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabasePropertiesGeoReplicationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabasePropertiesGeoReplication model =
- BinaryData
- .fromString(
- "{\"groupNickname\":\"zzvdudgwds\",\"linkedDatabases\":[{\"id\":\"twmcynpwlb\",\"state\":\"LinkFailed\"},{\"id\":\"acfta\",\"state\":\"UnlinkFailed\"},{\"id\":\"nltyfsoppusuesnz\",\"state\":\"Linking\"},{\"id\":\"bavo\",\"state\":\"Unlinking\"}]}")
- .toObject(DatabasePropertiesGeoReplication.class);
- Assertions.assertEquals("zzvdudgwds", model.groupNickname());
- Assertions.assertEquals("twmcynpwlb", model.linkedDatabases().get(0).id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabasePropertiesGeoReplication model =
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("zzvdudgwds")
- .withLinkedDatabases(
- Arrays
- .asList(
- new LinkedDatabase().withId("twmcynpwlb"),
- new LinkedDatabase().withId("acfta"),
- new LinkedDatabase().withId("nltyfsoppusuesnz"),
- new LinkedDatabase().withId("bavo")));
- model = BinaryData.fromObject(model).toObject(DatabasePropertiesGeoReplication.class);
- Assertions.assertEquals("zzvdudgwds", model.groupNickname());
- Assertions.assertEquals("twmcynpwlb", model.linkedDatabases().get(0).id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java
deleted file mode 100644
index 1717ca2791d1b..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseProperties;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabasePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseProperties model =
- BinaryData
- .fromString(
- "{\"clientProtocol\":\"Encrypted\",\"port\":61111335,\"provisioningState\":\"Failed\",\"resourceState\":\"Running\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":true,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[{\"name\":\"xaqwoochcbonqv\",\"args\":\"vlrxnjeaseiph\",\"version\":\"f\"}],\"geoReplication\":{\"groupNickname\":\"eyy\",\"linkedDatabases\":[{\"id\":\"bdlwtgrhpdjpj\",\"state\":\"Unlinking\"}]}}")
- .toObject(DatabaseProperties.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(61111335, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(true, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("xaqwoochcbonqv", model.modules().get(0).name());
- Assertions.assertEquals("vlrxnjeaseiph", model.modules().get(0).args());
- Assertions.assertEquals("eyy", model.geoReplication().groupNickname());
- Assertions.assertEquals("bdlwtgrhpdjpj", model.geoReplication().linkedDatabases().get(0).id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseProperties model =
- new DatabaseProperties()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(61111335)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.ALL_KEYS_RANDOM)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(true)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.SIXH))
- .withModules(Arrays.asList(new Module().withName("xaqwoochcbonqv").withArgs("vlrxnjeaseiph")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("eyy")
- .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId("bdlwtgrhpdjpj"))));
- model = BinaryData.fromObject(model).toObject(DatabaseProperties.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(61111335, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(true, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, model.persistence().rdbFrequency());
- Assertions.assertEquals("xaqwoochcbonqv", model.modules().get(0).name());
- Assertions.assertEquals("vlrxnjeaseiph", model.modules().get(0).args());
- Assertions.assertEquals("eyy", model.geoReplication().groupNickname());
- Assertions.assertEquals("bdlwtgrhpdjpj", model.geoReplication().linkedDatabases().get(0).id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java
deleted file mode 100644
index b3064decc0129..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java
+++ /dev/null
@@ -1,77 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class DatabaseUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- DatabaseUpdate model =
- BinaryData
- .fromString(
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1222672575,\"provisioningState\":\"Creating\",\"resourceState\":\"Disabled\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"NoEviction\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"1h\"},\"modules\":[{\"name\":\"lazjdyggdtjixhbk\",\"args\":\"fqweykhmene\",\"version\":\"yexfwh\"},{\"name\":\"bcibvyvdcsitynn\",\"args\":\"mdectehfiqscjey\",\"version\":\"hezrkgq\"}],\"geoReplication\":{\"groupNickname\":\"refovgmkqsleyyvx\",\"linkedDatabases\":[]}}}")
- .toObject(DatabaseUpdate.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(1222672575, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONEH, model.persistence().rdbFrequency());
- Assertions.assertEquals("lazjdyggdtjixhbk", model.modules().get(0).name());
- Assertions.assertEquals("fqweykhmene", model.modules().get(0).args());
- Assertions.assertEquals("refovgmkqsleyyvx", model.geoReplication().groupNickname());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- DatabaseUpdate model =
- new DatabaseUpdate()
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(1222672575)
- .withClusteringPolicy(ClusteringPolicy.OSSCLUSTER)
- .withEvictionPolicy(EvictionPolicy.NO_EVICTION)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.ONEH))
- .withModules(
- Arrays
- .asList(
- new Module().withName("lazjdyggdtjixhbk").withArgs("fqweykhmene"),
- new Module().withName("bcibvyvdcsitynn").withArgs("mdectehfiqscjey")))
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("refovgmkqsleyyvx")
- .withLinkedDatabases(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(DatabaseUpdate.class);
- Assertions.assertEquals(Protocol.ENCRYPTED, model.clientProtocol());
- Assertions.assertEquals(1222672575, model.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, model.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, model.evictionPolicy());
- Assertions.assertEquals(true, model.persistence().aofEnabled());
- Assertions.assertEquals(false, model.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONEH, model.persistence().rdbFrequency());
- Assertions.assertEquals("lazjdyggdtjixhbk", model.modules().get(0).name());
- Assertions.assertEquals("fqweykhmene", model.modules().get(0).args());
- Assertions.assertEquals("refovgmkqsleyyvx", model.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java
deleted file mode 100644
index 1d026883e806c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class DatabasesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":1688847935,\"provisioningState\":\"Succeeded\",\"resourceState\":\"CreateFailed\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"VolatileLFU\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"1s\",\"rdbFrequency\":\"12h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"qaqtdoqmcbxvwvxy\",\"linkedDatabases\":[]}},\"id\":\"bhsfxob\",\"name\":\"ytkblmpew\",\"type\":\"wfbkrvrns\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Database response =
- manager
- .databases()
- .define("pfqbuaceopzf")
- .withExistingRedisEnterprise("pkteo", "llwptfdy")
- .withClientProtocol(Protocol.ENCRYPTED)
- .withPort(350693240)
- .withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER)
- .withEvictionPolicy(EvictionPolicy.VOLATILE_LFU)
- .withPersistence(
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(true)
- .withAofFrequency(AofFrequency.ONES)
- .withRdbFrequency(RdbFrequency.ONEH))
- .withModules(Arrays.asList())
- .withGeoReplication(
- new DatabasePropertiesGeoReplication()
- .withGroupNickname("gbkdmoizpos")
- .withLinkedDatabases(Arrays.asList()))
- .create();
-
- Assertions.assertEquals(Protocol.ENCRYPTED, response.clientProtocol());
- Assertions.assertEquals(1688847935, response.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.VOLATILE_LFU, response.evictionPolicy());
- Assertions.assertEquals(true, response.persistence().aofEnabled());
- Assertions.assertEquals(false, response.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ONES, response.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, response.persistence().rdbFrequency());
- Assertions.assertEquals("qaqtdoqmcbxvwvxy", response.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java
deleted file mode 100644
index 35e3751ef932f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-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 DatabasesDeleteMockTests {
- @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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.databases().delete("aloayqcgwrtzju", "gwyzm", "txon", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java
deleted file mode 100644
index 7571027a5ed35..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
-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 DatabasesExportMockTests {
- @Test
- public void testExport() 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .export(
- "us",
- "ttouwaboekqvkel",
- "smv",
- new ExportClusterParameters().withSasUri("xwyjsflhhc"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java
deleted file mode 100644
index 3f68e7a662de9..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java
+++ /dev/null
@@ -1,70 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-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 DatabasesFlushMockTests {
- @Test
- public void testFlush() 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .flush(
- "tfolhbnx",
- "nalaulppg",
- "dtpnapnyiropuhp",
- new FlushParameters().withIds(Arrays.asList("pgylg", "git", "medjvcslynqwwncw", "zhxgktrmgucn")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java
deleted file mode 100644
index e588496574d9a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java
+++ /dev/null
@@ -1,70 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-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 DatabasesForceUnlinkMockTests {
- @Test
- public void testForceUnlink() 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .forceUnlink(
- "aln",
- "ixisxyawjoy",
- "qcslyjpkiid",
- new ForceUnlinkParameters().withIds(Arrays.asList("exznelixhnr")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java
deleted file mode 100644
index e44c59e23dae2..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,83 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-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 DatabasesGetWithResponseMockTests {
- @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\":{\"clientProtocol\":\"Plaintext\",\"port\":96984034,\"provisioningState\":\"Succeeded\",\"resourceState\":\"DeleteFailed\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"NoEviction\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":true,\"aofFrequency\":\"always\",\"rdbFrequency\":\"12h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"blcg\",\"linkedDatabases\":[]}},\"id\":\"vlvqhjkbegi\",\"name\":\"t\",\"type\":\"mxiebw\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Database response =
- manager
- .databases()
- .getWithResponse("pow", "wpr", "qlveualupjmkh", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(Protocol.PLAINTEXT, response.clientProtocol());
- Assertions.assertEquals(96984034, response.port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.NO_EVICTION, response.evictionPolicy());
- Assertions.assertEquals(true, response.persistence().aofEnabled());
- Assertions.assertEquals(true, response.persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, response.persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, response.persistence().rdbFrequency());
- Assertions.assertEquals("blcg", response.geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java
deleted file mode 100644
index e1dece8e9b95e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java
+++ /dev/null
@@ -1,70 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-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 DatabasesImportMethodMockTests {
- @Test
- public void testImportMethod() 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .databases()
- .importMethod(
- "awjvzunluthnnp",
- "nxipeil",
- "jzuaejxdultskzbb",
- new ImportClusterParameters().withSasUris(Arrays.asList("zumveekgpwo", "uh", "fpbsjyofdxl")),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java
deleted file mode 100644
index e4ae57805bfc3..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Database;
-import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
-import com.azure.resourcemanager.redisenterprise.models.Protocol;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-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 DatabasesListByClusterMockTests {
- @Test
- public void testListByCluster() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"clientProtocol\":\"Encrypted\",\"port\":838785311,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"clusteringPolicy\":\"OSSCluster\",\"evictionPolicy\":\"AllKeysRandom\",\"persistence\":{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"6h\"},\"modules\":[],\"geoReplication\":{\"groupNickname\":\"cg\",\"linkedDatabases\":[]}},\"id\":\"ndnhj\",\"name\":\"auwhvylwzbtdhx\",\"type\":\"jznb\"}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.databases().listByCluster("hzceuojgjrwjue", "otwmcdyt", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(Protocol.ENCRYPTED, response.iterator().next().clientProtocol());
- Assertions.assertEquals(838785311, response.iterator().next().port());
- Assertions.assertEquals(ClusteringPolicy.OSSCLUSTER, response.iterator().next().clusteringPolicy());
- Assertions.assertEquals(EvictionPolicy.ALL_KEYS_RANDOM, response.iterator().next().evictionPolicy());
- Assertions.assertEquals(true, response.iterator().next().persistence().aofEnabled());
- Assertions.assertEquals(false, response.iterator().next().persistence().rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, response.iterator().next().persistence().aofFrequency());
- Assertions.assertEquals(RdbFrequency.SIXH, response.iterator().next().persistence().rdbFrequency());
- Assertions.assertEquals("cg", response.iterator().next().geoReplication().groupNickname());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java
deleted file mode 100644
index 9590cb888fc5f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExportClusterParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExportClusterParameters model =
- BinaryData.fromString("{\"sasUri\":\"mdajv\"}").toObject(ExportClusterParameters.class);
- Assertions.assertEquals("mdajv", model.sasUri());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExportClusterParameters model = new ExportClusterParameters().withSasUri("mdajv");
- model = BinaryData.fromObject(model).toObject(ExportClusterParameters.class);
- Assertions.assertEquals("mdajv", model.sasUri());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java
deleted file mode 100644
index 5b48bf4dfa7a7..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FlushParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FlushParameters model =
- BinaryData.fromString("{\"ids\":[\"yp\",\"rbpizc\",\"r\",\"j\"]}").toObject(FlushParameters.class);
- Assertions.assertEquals("yp", model.ids().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FlushParameters model = new FlushParameters().withIds(Arrays.asList("yp", "rbpizc", "r", "j"));
- model = BinaryData.fromObject(model).toObject(FlushParameters.class);
- Assertions.assertEquals("yp", model.ids().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java
deleted file mode 100644
index eabac60a4c479..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java
+++ /dev/null
@@ -1,29 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ForceUnlinkParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ForceUnlinkParameters model =
- BinaryData
- .fromString("{\"ids\":[\"udwtiukbl\",\"ngkpocipazy\",\"o\",\"gukgjnpiucgygevq\"]}")
- .toObject(ForceUnlinkParameters.class);
- Assertions.assertEquals("udwtiukbl", model.ids().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ForceUnlinkParameters model =
- new ForceUnlinkParameters().withIds(Arrays.asList("udwtiukbl", "ngkpocipazy", "o", "gukgjnpiucgygevq"));
- model = BinaryData.fromObject(model).toObject(ForceUnlinkParameters.class);
- Assertions.assertEquals("udwtiukbl", model.ids().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java
deleted file mode 100644
index 288858100d8f4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportClusterParametersTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportClusterParameters model =
- BinaryData.fromString("{\"sasUris\":[\"tpngjcrcczsqpjh\"]}").toObject(ImportClusterParameters.class);
- Assertions.assertEquals("tpngjcrcczsqpjh", model.sasUris().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportClusterParameters model = new ImportClusterParameters().withSasUris(Arrays.asList("tpngjcrcczsqpjh"));
- model = BinaryData.fromObject(model).toObject(ImportClusterParameters.class);
- Assertions.assertEquals("tpngjcrcczsqpjh", model.sasUris().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java
deleted file mode 100644
index 5c53a83717ef8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase;
-import org.junit.jupiter.api.Assertions;
-
-public final class LinkedDatabaseTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LinkedDatabase model =
- BinaryData.fromString("{\"id\":\"mohctb\",\"state\":\"Unlinking\"}").toObject(LinkedDatabase.class);
- Assertions.assertEquals("mohctb", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LinkedDatabase model = new LinkedDatabase().withId("mohctb");
- model = BinaryData.fromObject(model).toObject(LinkedDatabase.class);
- Assertions.assertEquals("mohctb", model.id());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java
deleted file mode 100644
index 8d035589a9a92..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java
+++ /dev/null
@@ -1,43 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class LocationInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LocationInfo model =
- BinaryData
- .fromString(
- "{\"location\":\"iyqzrnk\",\"capabilities\":[{\"name\":\"xlwhzlsicoh\",\"value\":false},{\"name\":\"wvl\",\"value\":true},{\"name\":\"w\",\"value\":false},{\"name\":\"nmmqhgyxzkon\",\"value\":false}]}")
- .toObject(LocationInfo.class);
- Assertions.assertEquals("iyqzrnk", model.location());
- Assertions.assertEquals("xlwhzlsicoh", model.capabilities().get(0).name());
- Assertions.assertEquals(false, model.capabilities().get(0).value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LocationInfo model =
- new LocationInfo()
- .withLocation("iyqzrnk")
- .withCapabilities(
- Arrays
- .asList(
- new Capability().withName("xlwhzlsicoh").withValue(false),
- new Capability().withName("wvl").withValue(true),
- new Capability().withName("w").withValue(false),
- new Capability().withName("nmmqhgyxzkon").withValue(false)));
- model = BinaryData.fromObject(model).toObject(LocationInfo.class);
- Assertions.assertEquals("iyqzrnk", model.location());
- Assertions.assertEquals("xlwhzlsicoh", model.capabilities().get(0).name());
- Assertions.assertEquals(false, model.capabilities().get(0).value());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java
deleted file mode 100644
index 1c914772d06a8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ManagedServiceIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ManagedServiceIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"dabd5595-3707-45a0-8967-0fd31b5a53c6\",\"tenantId\":\"ec59c503-6073-4511-9117-7263b52fba34\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{\"xaolth\":{\"principalId\":\"90144684-e22a-4def-8298-6504ea6b234f\",\"clientId\":\"a3ae5ac2-093c-43b6-bc9a-18fbabe04950\"},\"gqjbpfzfsin\":{\"principalId\":\"793822a9-fb3b-4447-ad4b-344968f46931\",\"clientId\":\"8058c9f0-23ec-4873-8165-f8a4b89577e3\"}}}")
- .toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ManagedServiceIdentity model =
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf("xaolth", new UserAssignedIdentity(), "gqjbpfzfsin", new UserAssignedIdentity()));
- model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
- }
-
- @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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java
deleted file mode 100644
index af73ca64f3555..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Module;
-import org.junit.jupiter.api.Assertions;
-
-public final class ModuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Module model =
- BinaryData.fromString("{\"name\":\"e\",\"args\":\"alhbx\",\"version\":\"e\"}").toObject(Module.class);
- Assertions.assertEquals("e", model.name());
- Assertions.assertEquals("alhbx", model.args());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Module model = new Module().withName("e").withArgs("alhbx");
- model = BinaryData.fromObject(model).toObject(Module.class);
- Assertions.assertEquals("e", model.name());
- Assertions.assertEquals("alhbx", model.args());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java
deleted file mode 100644
index 30619a60b740a..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java
deleted file mode 100644
index 4310fe891b131..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner;
-import com.azure.resourcemanager.redisenterprise.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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java
deleted file mode 100644
index 1b0b23c234564..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java
deleted file mode 100644
index 3368f76057d52..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java
+++ /dev/null
@@ -1,42 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class OperationStatusInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationStatusInner model =
- BinaryData
- .fromString(
- "{\"id\":\"a\",\"name\":\"th\",\"startTime\":\"hab\",\"endTime\":\"pikxwczbyscnpqxu\",\"status\":\"vyq\"}")
- .toObject(OperationStatusInner.class);
- Assertions.assertEquals("a", model.id());
- Assertions.assertEquals("th", model.name());
- Assertions.assertEquals("hab", model.startTime());
- Assertions.assertEquals("pikxwczbyscnpqxu", model.endTime());
- Assertions.assertEquals("vyq", model.status());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationStatusInner model =
- new OperationStatusInner()
- .withId("a")
- .withName("th")
- .withStartTime("hab")
- .withEndTime("pikxwczbyscnpqxu")
- .withStatus("vyq");
- model = BinaryData.fromObject(model).toObject(OperationStatusInner.class);
- Assertions.assertEquals("a", model.id());
- Assertions.assertEquals("th", model.name());
- Assertions.assertEquals("hab", model.startTime());
- Assertions.assertEquals("pikxwczbyscnpqxu", model.endTime());
- Assertions.assertEquals("vyq", model.status());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java
deleted file mode 100644
index ba33e9507fea4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.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\":\"ypewrmjmwvvjekt\",\"isDataAction\":false,\"display\":{\"provider\":\"hwlrsf\",\"resource\":\"zpwv\",\"operation\":\"dqgbiqylihkaetc\",\"description\":\"vfcivfsnkymuc\"},\"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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java
deleted file mode 100644
index 06dcd7a9cb7c7..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.OperationStatus;
-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 OperationsStatusGetWithResponseMockTests {
- @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 =
- "{\"id\":\"hfnljkyq\",\"name\":\"vuujq\",\"startTime\":\"dokgjl\",\"endTime\":\"oxgvclt\",\"status\":\"sncghkjeszz\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- OperationStatus response =
- manager
- .operationsStatus()
- .getWithResponse("bebrjcxerfuwuttt", "fvjrbirphxepcy", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("hfnljkyq", response.id());
- Assertions.assertEquals("vuujq", response.name());
- Assertions.assertEquals("dokgjl", response.startTime());
- Assertions.assertEquals("oxgvclt", response.endTime());
- Assertions.assertEquals("sncghkjeszz", response.status());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java
deleted file mode 100644
index d55a1c70ed64e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.AofFrequency;
-import com.azure.resourcemanager.redisenterprise.models.Persistence;
-import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
-import org.junit.jupiter.api.Assertions;
-
-public final class PersistenceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Persistence model =
- BinaryData
- .fromString(
- "{\"aofEnabled\":true,\"rdbEnabled\":false,\"aofFrequency\":\"always\",\"rdbFrequency\":\"12h\"}")
- .toObject(Persistence.class);
- Assertions.assertEquals(true, model.aofEnabled());
- Assertions.assertEquals(false, model.rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, model.rdbFrequency());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Persistence model =
- new Persistence()
- .withAofEnabled(true)
- .withRdbEnabled(false)
- .withAofFrequency(AofFrequency.ALWAYS)
- .withRdbFrequency(RdbFrequency.ONE_TWOH);
- model = BinaryData.fromObject(model).toObject(Persistence.class);
- Assertions.assertEquals(true, model.aofEnabled());
- Assertions.assertEquals(false, model.rdbEnabled());
- Assertions.assertEquals(AofFrequency.ALWAYS, model.aofFrequency());
- Assertions.assertEquals(RdbFrequency.ONE_TWOH, model.rdbFrequency());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java
deleted file mode 100644
index 6cd32544b5f12..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"podepoo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vamih\",\"actionsRequired\":\"gnarxzxtheo\"},\"provisioningState\":\"Succeeded\"},\"id\":\"vyevcciqi\",\"name\":\"nhungbw\",\"type\":\"zrnf\"}")
- .toObject(PrivateEndpointConnectionInner.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("vamih", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("gnarxzxtheo", model.privateLinkServiceConnectionState().actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionInner model =
- new PrivateEndpointConnectionInner()
- .withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("vamih")
- .withActionsRequired("gnarxzxtheo"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("vamih", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("gnarxzxtheo", model.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java
deleted file mode 100644
index 4ab89f86798fa..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionListResult;
-import java.util.Arrays;
-
-public final class PrivateEndpointConnectionListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"canoaeupf\",\"name\":\"yhltrpmopjmcm\",\"type\":\"tuo\"},{\"properties\":{\"provisioningState\":\"Failed\"},\"id\":\"uaodsfcpk\",\"name\":\"xodpuozmyzydagfu\",\"type\":\"xbezyiuokktwh\"},{\"properties\":{\"provisioningState\":\"Deleting\"},\"id\":\"wqsmbsur\",\"name\":\"xim\",\"type\":\"ryocfsfksymdd\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"uxh\",\"name\":\"yudxorrqnbp\",\"type\":\"czvyifq\"}]}")
- .toObject(PrivateEndpointConnectionListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionListResult model =
- new PrivateEndpointConnectionListResult()
- .withValue(
- Arrays
- .asList(
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner(),
- new PrivateEndpointConnectionInner()));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java
deleted file mode 100644
index df218cb4d4456..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionProperties;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateEndpointConnectionPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpointConnectionProperties model =
- BinaryData
- .fromString(
- "{\"privateEndpoint\":{\"id\":\"gispemvtzfkufubl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"qeof\",\"actionsRequired\":\"e\"},\"provisioningState\":\"Deleting\"}")
- .toObject(PrivateEndpointConnectionProperties.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("qeof", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("e", model.privateLinkServiceConnectionState().actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpointConnectionProperties model =
- new PrivateEndpointConnectionProperties()
- .withPrivateEndpoint(new PrivateEndpoint())
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED)
- .withDescription("qeof")
- .withActionsRequired("e"));
- model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class);
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("qeof", model.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("e", model.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
deleted file mode 100644
index 5697992989324..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-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 PrivateEndpointConnectionsDeleteWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .privateEndpointConnections()
- .deleteWithResponse("lfmmdnbbglzpswi", "d", "cwyhzdxssa", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
deleted file mode 100644
index 4558d341901dc..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-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 PrivateEndpointConnectionsGetWithResponseMockTests {
- @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\":{\"privateEndpoint\":{\"id\":\"thnzd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"gnayqigynduh\",\"actionsRequired\":\"hqlkthumaqo\"},\"provisioningState\":\"Creating\"},\"id\":\"cdui\",\"name\":\"r\",\"type\":\"gccymvaolpssl\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PrivateEndpointConnection response =
- manager
- .privateEndpointConnections()
- .getWithResponse("tjrybnwjewgdr", "ervnaenqpehi", "doy", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.APPROVED, response.privateLinkServiceConnectionState().status());
- Assertions.assertEquals("gnayqigynduh", response.privateLinkServiceConnectionState().description());
- Assertions.assertEquals("hqlkthumaqo", response.privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java
deleted file mode 100644
index 9aff5ed5cd0ae..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-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 PrivateEndpointConnectionsListMockTests {
- @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\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"sub\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"irx\",\"actionsRequired\":\"ybsrfbjfdtwss\"},\"provisioningState\":\"Deleting\"},\"id\":\"pvjzbe\",\"name\":\"ilzznfqqnvwp\",\"type\":\"qtaruoujmkcjhwq\"}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.privateEndpointConnections().list("shqjohxcrsbf", "vasrruvwb", com.azure.core.util.Context.NONE);
-
- Assertions
- .assertEquals(
- PrivateEndpointServiceConnectionStatus.PENDING,
- response.iterator().next().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("irx", response.iterator().next().privateLinkServiceConnectionState().description());
- Assertions
- .assertEquals(
- "ybsrfbjfdtwss", response.iterator().next().privateLinkServiceConnectionState().actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java
deleted file mode 100644
index e3c58a78aa859..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
-
-public final class PrivateEndpointTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateEndpoint model = BinaryData.fromString("{\"id\":\"jbasvmsmjqulngs\"}").toObject(PrivateEndpoint.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateEndpoint model = new PrivateEndpoint();
- model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java
deleted file mode 100644
index d785a22925e72..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java
+++ /dev/null
@@ -1,29 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"groupId\":\"uo\",\"requiredMembers\":[\"kg\",\"sauuimj\",\"vxieduugidyj\"],\"requiredZoneNames\":[\"byao\"]},\"id\":\"e\",\"name\":\"csonpclhoco\",\"type\":\"slkevle\"}")
- .toObject(PrivateLinkResourceInner.class);
- Assertions.assertEquals("byao", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceInner model = new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("byao"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class);
- Assertions.assertEquals("byao", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java
deleted file mode 100644
index 1fb137970057b..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResourceListResult;
-import java.util.Arrays;
-
-public final class PrivateLinkResourceListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"properties\":{\"groupId\":\"jsllrmv\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"atkpnp\",\"name\":\"lexxbczwtru\",\"type\":\"iqzbq\"},{\"properties\":{\"groupId\":\"ovm\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"cspkwlhzdobpxjmf\",\"name\":\"bvvnchrkcciw\",\"type\":\"zjuqkhrsaj\"}]}")
- .toObject(PrivateLinkResourceListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceListResult model =
- new PrivateLinkResourceListResult()
- .withValue(
- Arrays
- .asList(
- new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList()),
- new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java
deleted file mode 100644
index 9d8eaf83c242e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkResourceProperties model =
- BinaryData
- .fromString(
- "{\"groupId\":\"zfbuhf\",\"requiredMembers\":[\"axkffei\",\"th\",\"vmezy\"],\"requiredZoneNames\":[\"xmzsbbzogg\",\"grxwbu\",\"vjxxjnsp\",\"dptkoenkouk\"]}")
- .toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("xmzsbbzogg", model.requiredZoneNames().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkResourceProperties model =
- new PrivateLinkResourceProperties()
- .withRequiredZoneNames(Arrays.asList("xmzsbbzogg", "grxwbu", "vjxxjnsp", "dptkoenkouk"));
- model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class);
- Assertions.assertEquals("xmzsbbzogg", model.requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java
deleted file mode 100644
index bd162feb4a6d2..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java
+++ /dev/null
@@ -1,68 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResource;
-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 PrivateLinkResourcesListByClusterMockTests {
- @Test
- public void testListByCluster() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"groupId\":\"bncblylpstdbhhx\",\"requiredMembers\":[\"dzu\",\"erscdntne\",\"fiwjmygtdssls\",\"tmweriofzpyq\"],\"requiredZoneNames\":[\"wab\",\"ets\",\"hszhedplvwiwu\",\"mwmbes\"]},\"id\":\"nkww\",\"name\":\"pp\",\"type\":\"flcxoga\"}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.privateLinkResources().listByCluster("bzmnvdfznud", "od", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("wab", response.iterator().next().requiredZoneNames().get(0));
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java
deleted file mode 100644
index 87ed5d97b7b19..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java
+++ /dev/null
@@ -1,37 +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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrivateLinkServiceConnectionStateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrivateLinkServiceConnectionState model =
- BinaryData
- .fromString(
- "{\"status\":\"Pending\",\"description\":\"ybkzgcwr\",\"actionsRequired\":\"lxxwrljdouskc\"}")
- .toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status());
- Assertions.assertEquals("ybkzgcwr", model.description());
- Assertions.assertEquals("lxxwrljdouskc", model.actionsRequired());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrivateLinkServiceConnectionState model =
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.PENDING)
- .withDescription("ybkzgcwr")
- .withActionsRequired("lxxwrljdouskc");
- model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class);
- Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status());
- Assertions.assertEquals("ybkzgcwr", model.description());
- Assertions.assertEquals("lxxwrljdouskc", model.actionsRequired());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java
deleted file mode 100644
index b86dcba68f90f..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java
+++ /dev/null
@@ -1,107 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-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 RedisEnterprisesCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"sku\":{\"name\":\"EnterpriseFlash_F1500\",\"capacity\":946722582},\"zones\":[\"ehhseyvjusrts\",\"hspkdeemao\",\"mx\",\"gkvtmelmqkrhah\"],\"identity\":{\"principalId\":\"50dd1237-7f30-4f28-bca3-7c9de2f1af8d\",\"tenantId\":\"2f6d603e-e2e2-4f45-84e6-bbe28e373dad\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"mdua\",\"provisioningState\":\"Succeeded\",\"resourceState\":\"Updating\",\"redisVersion\":\"vfadmws\",\"privateEndpointConnections\":[]},\"location\":\"vxpvgomz\",\"tags\":{\"ali\":\"isgwbnbbeldawkz\",\"hashsfwxosow\":\"urqhaka\"},\"id\":\"xcug\",\"name\":\"cjooxdjebwpucwwf\",\"type\":\"ovbvmeueciv\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Cluster response =
- manager
- .redisEnterprises()
- .define("kphywpnvjto")
- .withRegion("kqujidsuyono")
- .withExistingResourceGroup("nxdhbt")
- .withSku(new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(963875156))
- .withTags(mapOf("dxyt", "aocqxtccmgy", "txhdzh", "moyrxvwfudwpz", "rxsbkyvp", "rqjbhckfrl"))
- .withZones(Arrays.asList("lfplp"))
- .withIdentity(
- new ManagedServiceIdentity()
- .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withMinimumTlsVersion(TlsVersion.ONE_ONE)
- .withEncryption(new ClusterPropertiesEncryption())
- .create();
-
- Assertions.assertEquals("vxpvgomz", response.location());
- Assertions.assertEquals("isgwbnbbeldawkz", response.tags().get("ali"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F1500, response.sku().name());
- Assertions.assertEquals(946722582, response.sku().capacity());
- Assertions.assertEquals("ehhseyvjusrts", response.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.minimumTlsVersion());
- }
-
- @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/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java
deleted file mode 100644
index 6778b7b1679b0..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-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 RedisEnterprisesDeleteMockTests {
- @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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.redisEnterprises().delete("ijhtxf", "gx", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index e8c177eca1dad..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,79 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-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 RedisEnterprisesGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"sku\":{\"name\":\"Enterprise_E10\",\"capacity\":68854326},\"zones\":[\"qkkrb\",\"pukgriwflzlfb\"],\"identity\":{\"principalId\":\"55e58f56-9e33-48ba-885c-97ad97c5f51b\",\"tenantId\":\"36313e29-f41c-4156-b818-bc7c5007c8de\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"ahmgkbrp\",\"provisioningState\":\"Canceled\",\"resourceState\":\"Enabling\",\"redisVersion\":\"nuqqkpikadrgvt\",\"privateEndpointConnections\":[]},\"location\":\"buynhijggm\",\"tags\":{\"zzmhjrunmpxttd\":\"siarbutrcvpn\",\"nbtkcxywnytnr\":\"hrbnlankxmyskpbh\",\"qidybyx\":\"yn\"},\"id\":\"zfcl\",\"name\":\"aaxdbabphlwrq\",\"type\":\"fkts\"}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Cluster response =
- manager
- .redisEnterprises()
- .getByResourceGroupWithResponse("fsm", "nehmpvecx", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("buynhijggm", response.location());
- Assertions.assertEquals("siarbutrcvpn", response.tags().get("zzmhjrunmpxttd"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, response.sku().name());
- Assertions.assertEquals(68854326, response.sku().capacity());
- Assertions.assertEquals("qkkrb", response.zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java
deleted file mode 100644
index db5fe315e648c..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,78 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-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 RedisEnterprisesListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"sku\":{\"name\":\"EnterpriseFlash_F700\",\"capacity\":1572561560},\"zones\":[\"t\"],\"identity\":{\"principalId\":\"a8db838c-5ddd-40c4-beff-8564c1e49c3f\",\"tenantId\":\"5b6879d8-e7f2-4945-b9c6-8fc033e50d5c\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.1\",\"encryption\":{},\"hostName\":\"zywbiex\",\"provisioningState\":\"Failed\",\"resourceState\":\"UpdateFailed\",\"redisVersion\":\"axibxujw\",\"privateEndpointConnections\":[]},\"location\":\"almuzyoxaepdkzja\",\"tags\":{\"zt\":\"xrhdwbavxbniwdjs\"},\"id\":\"dbpgnxytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.redisEnterprises().listByResourceGroup("hsucoc", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("almuzyoxaepdkzja", response.iterator().next().location());
- Assertions.assertEquals("xrhdwbavxbniwdjs", response.iterator().next().tags().get("zt"));
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F700, response.iterator().next().sku().name());
- Assertions.assertEquals(1572561560, response.iterator().next().sku().capacity());
- Assertions.assertEquals("t", response.iterator().next().zones().get(0));
- Assertions
- .assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type());
- Assertions.assertEquals(TlsVersion.ONE_ONE, response.iterator().next().minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java
deleted file mode 100644
index 4f0cb9d9b1bb4..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.Cluster;
-import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
-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 RedisEnterprisesListMockTests {
- @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\":[{\"sku\":{\"name\":\"Enterprise_E100\",\"capacity\":946920071},\"zones\":[\"zbhvgyuguosv\",\"kfssxqukkf\",\"l\"],\"identity\":{\"principalId\":\"d05e3a18-1e79-4f8c-a32e-611e8bf0eff7\",\"tenantId\":\"1a47553c-b560-458e-ae9d-b13b7525c4cd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"minimumTlsVersion\":\"1.2\",\"encryption\":{},\"hostName\":\"lpvlopw\",\"provisioningState\":\"Canceled\",\"resourceState\":\"CreateFailed\",\"redisVersion\":\"pkdwzbai\",\"privateEndpointConnections\":[]},\"location\":\"a\",\"tags\":{\"mtxpsiebtfh\":\"yqupedeojnabckh\",\"htldwk\":\"pesapskrdqmhjj\",\"otogtwrupqs\":\"zxuutkncwscwsvl\",\"cykvceo\":\"vnm\"},\"id\":\"eil\",\"name\":\"vnotyfjfcnj\",\"type\":\"k\"}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.redisEnterprises().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("a", response.iterator().next().location());
- Assertions.assertEquals("yqupedeojnabckh", response.iterator().next().tags().get("mtxpsiebtfh"));
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, response.iterator().next().sku().name());
- Assertions.assertEquals(946920071, response.iterator().next().sku().capacity());
- Assertions.assertEquals("zbhvgyuguosv", response.iterator().next().zones().get(0));
- Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type());
- Assertions.assertEquals(TlsVersion.ONE_TWO, response.iterator().next().minimumTlsVersion());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java
deleted file mode 100644
index 5c0b74e0470f8..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.Capability;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionSkuDetailInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionSkuDetailInner model =
- BinaryData
- .fromString(
- "{\"resourceType\":\"jdeyeamdpha\",\"locationInfo\":{\"location\":\"pbuxwgipwhon\",\"capabilities\":[{\"name\":\"shwankixzbinje\",\"value\":true},{\"name\":\"mryw\",\"value\":true}]},\"skuDetails\":{\"name\":\"Enterprise_E10\"}}")
- .toObject(RegionSkuDetailInner.class);
- Assertions.assertEquals("jdeyeamdpha", model.resourceType());
- Assertions.assertEquals("pbuxwgipwhon", model.locationInfo().location());
- Assertions.assertEquals("shwankixzbinje", model.locationInfo().capabilities().get(0).name());
- Assertions.assertEquals(true, model.locationInfo().capabilities().get(0).value());
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, model.skuDetails().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionSkuDetailInner model =
- new RegionSkuDetailInner()
- .withResourceType("jdeyeamdpha")
- .withLocationInfo(
- new LocationInfo()
- .withLocation("pbuxwgipwhon")
- .withCapabilities(
- Arrays
- .asList(
- new Capability().withName("shwankixzbinje").withValue(true),
- new Capability().withName("mryw").withValue(true))))
- .withSkuDetails(new SkuDetail().withName(SkuName.ENTERPRISE_E10));
- model = BinaryData.fromObject(model).toObject(RegionSkuDetailInner.class);
- Assertions.assertEquals("jdeyeamdpha", model.resourceType());
- Assertions.assertEquals("pbuxwgipwhon", model.locationInfo().location());
- Assertions.assertEquals("shwankixzbinje", model.locationInfo().capabilities().get(0).name());
- Assertions.assertEquals(true, model.locationInfo().capabilities().get(0).value());
- Assertions.assertEquals(SkuName.ENTERPRISE_E10, model.skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java
deleted file mode 100644
index b9d124b482176..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
-import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetails;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class RegionSkuDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RegionSkuDetails model =
- BinaryData
- .fromString(
- "{\"value\":[{\"resourceType\":\"dnfyhxdeoejzicwi\",\"locationInfo\":{\"location\":\"ttgzfbis\",\"capabilities\":[]},\"skuDetails\":{\"name\":\"Enterprise_E20\"}}]}")
- .toObject(RegionSkuDetails.class);
- Assertions.assertEquals("dnfyhxdeoejzicwi", model.value().get(0).resourceType());
- Assertions.assertEquals("ttgzfbis", model.value().get(0).locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.value().get(0).skuDetails().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RegionSkuDetails model =
- new RegionSkuDetails()
- .withValue(
- Arrays
- .asList(
- new RegionSkuDetailInner()
- .withResourceType("dnfyhxdeoejzicwi")
- .withLocationInfo(
- new LocationInfo().withLocation("ttgzfbis").withCapabilities(Arrays.asList()))
- .withSkuDetails(new SkuDetail().withName(SkuName.ENTERPRISE_E20))));
- model = BinaryData.fromObject(model).toObject(RegionSkuDetails.class);
- Assertions.assertEquals("dnfyhxdeoejzicwi", model.value().get(0).resourceType());
- Assertions.assertEquals("ttgzfbis", model.value().get(0).locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.value().get(0).skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java
deleted file mode 100644
index b34533b1da795..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class SkuDetailTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SkuDetail model = BinaryData.fromString("{\"name\":\"Enterprise_E100\"}").toObject(SkuDetail.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SkuDetail model = new SkuDetail().withName(SkuName.ENTERPRISE_E100);
- model = BinaryData.fromObject(model).toObject(SkuDetail.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E100, model.name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java
deleted file mode 100644
index 445d576836c0e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.Sku;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class SkuTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Sku model = BinaryData.fromString("{\"name\":\"Enterprise_E20\",\"capacity\":1041872032}").toObject(Sku.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.name());
- Assertions.assertEquals(1041872032, model.capacity());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Sku model = new Sku().withName(SkuName.ENTERPRISE_E20).withCapacity(1041872032);
- model = BinaryData.fromObject(model).toObject(Sku.class);
- Assertions.assertEquals(SkuName.ENTERPRISE_E20, model.name());
- Assertions.assertEquals(1041872032, model.capacity());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java
deleted file mode 100644
index 12ba74366352e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java
+++ /dev/null
@@ -1,70 +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.redisenterprise.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.redisenterprise.RedisEnterpriseManager;
-import com.azure.resourcemanager.redisenterprise.models.RegionSkuDetail;
-import com.azure.resourcemanager.redisenterprise.models.SkuName;
-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 SkusListMockTests {
- @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\":[{\"resourceType\":\"kqze\",\"locationInfo\":{\"location\":\"dltfz\",\"capabilities\":[]},\"skuDetails\":{\"name\":\"EnterpriseFlash_F1500\"}}]}";
-
- 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);
- }));
-
- RedisEnterpriseManager manager =
- RedisEnterpriseManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.skus().list("konzmnsik", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("kqze", response.iterator().next().resourceType());
- Assertions.assertEquals("dltfz", response.iterator().next().locationInfo().location());
- Assertions.assertEquals(SkuName.ENTERPRISE_FLASH_F1500, response.iterator().next().skuDetails().name());
- }
-}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java
deleted file mode 100644
index 083300105568e..0000000000000
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.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.redisenterprise.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
-
-public final class UserAssignedIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UserAssignedIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"5c1631dd-070c-4338-9225-6fff8f2c7868\",\"clientId\":\"a805f8c8-5f6c-431e-b4b3-0a93d1604117\"}")
- .toObject(UserAssignedIdentity.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentity model = new UserAssignedIdentity();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class);
- }
-}