scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Redis service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Redis service API instance.
+ */
+ public RedisManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.redis.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new RedisManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Redis. It manages RedisResource.
+ *
+ * @return Resource collection API of Redis.
+ */
+ public Redis redis() {
+ if (this.redis == null) {
+ this.redis = new RedisImpl(clientObject.getRedis(), this);
+ }
+ return redis;
+ }
+
+ /**
+ * Gets the resource collection API of FirewallRules.
+ *
+ * @return Resource collection API of FirewallRules.
+ */
+ public FirewallRules firewallRules() {
+ if (this.firewallRules == null) {
+ this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
+ }
+ return firewallRules;
+ }
+
+ /**
+ * Gets the resource collection API of PatchSchedules. It manages RedisPatchSchedule.
+ *
+ * @return Resource collection API of PatchSchedules.
+ */
+ public PatchSchedules patchSchedules() {
+ if (this.patchSchedules == null) {
+ this.patchSchedules = new PatchSchedulesImpl(clientObject.getPatchSchedules(), this);
+ }
+ return patchSchedules;
+ }
+
+ /**
+ * Gets the resource collection API of LinkedServers. It manages RedisLinkedServerWithProperties.
+ *
+ * @return Resource collection API of LinkedServers.
+ */
+ public LinkedServers linkedServers() {
+ if (this.linkedServers == null) {
+ this.linkedServers = new LinkedServersImpl(clientObject.getLinkedServers(), this);
+ }
+ return linkedServers;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of AsyncOperationStatus.
+ *
+ * @return Resource collection API of AsyncOperationStatus.
+ */
+ public AsyncOperationStatus asyncOperationStatus() {
+ if (this.asyncOperationStatus == null) {
+ this.asyncOperationStatus = new AsyncOperationStatusImpl(clientObject.getAsyncOperationStatus(), this);
+ }
+ return asyncOperationStatus;
+ }
+
+ /**
+ * Gets the resource collection API of AccessPolicies. It manages RedisCacheAccessPolicy.
+ *
+ * @return Resource collection API of AccessPolicies.
+ */
+ public AccessPolicies accessPolicies() {
+ if (this.accessPolicies == null) {
+ this.accessPolicies = new AccessPoliciesImpl(clientObject.getAccessPolicies(), this);
+ }
+ return accessPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of AccessPolicyAssignments. It manages RedisCacheAccessPolicyAssignment.
+ *
+ * @return Resource collection API of AccessPolicyAssignments.
+ */
+ public AccessPolicyAssignments accessPolicyAssignments() {
+ if (this.accessPolicyAssignments == null) {
+ this.accessPolicyAssignments =
+ new AccessPolicyAssignmentsImpl(clientObject.getAccessPolicyAssignments(), this);
+ }
+ return accessPolicyAssignments;
+ }
+
+ /**
+ * Gets wrapped service client RedisManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client RedisManagementClient.
+ */
+ public RedisManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPoliciesClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPoliciesClient.java
new file mode 100644
index 0000000000000..5685566f23f3f
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPoliciesClient.java
@@ -0,0 +1,207 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyInner;
+
+/** An instance of this class provides access to all the operations defined in AccessPoliciesClient. */
+public interface AccessPoliciesClient {
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters);
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context);
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyInner createUpdate(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters);
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context);
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName, String accessPolicyName);
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context);
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String accessPolicyName);
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String accessPolicyName, Context context);
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context);
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName);
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName);
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName, Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPolicyAssignmentsClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPolicyAssignmentsClient.java
new file mode 100644
index 0000000000000..7a59e69f6dd06
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AccessPolicyAssignmentsClient.java
@@ -0,0 +1,218 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyAssignmentInner;
+
+/** An instance of this class provides access to all the operations defined in AccessPolicyAssignmentsClient. */
+public interface AccessPolicyAssignmentsClient {
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters);
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyAssignmentInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters);
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyAssignmentInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context);
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName);
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context);
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String accessPolicyAssignmentName);
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context);
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context);
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisCacheAccessPolicyAssignmentInner get(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName);
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName);
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String cacheName, Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AsyncOperationStatusClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AsyncOperationStatusClient.java
new file mode 100644
index 0000000000000..f05bdfffd921b
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/AsyncOperationStatusClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationStatusInner;
+
+/** An instance of this class provides access to all the operations defined in AsyncOperationStatusClient. */
+public interface AsyncOperationStatusClient {
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous operation.
+ * @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 asynchronous operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String operationId, Context context);
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous 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 asynchronous operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner get(String location, String operationId);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/FirewallRulesClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/FirewallRulesClient.java
new file mode 100644
index 0000000000000..56e5abd83e3b3
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/FirewallRulesClient.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisFirewallRuleInner;
+
+/** An instance of this class provides access to all the operations defined in FirewallRulesClient. */
+public interface FirewallRulesClient {
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName);
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName, Context context);
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule operation.
+ * @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String cacheName,
+ String ruleName,
+ RedisFirewallRuleInner parameters,
+ Context context);
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule 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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisFirewallRuleInner createOrUpdate(
+ String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters);
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 a single firewall rule in a specified redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String cacheName, String ruleName, Context context);
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 a single firewall rule in a specified redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisFirewallRuleInner get(String resourceGroupName, String cacheName, String ruleName);
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String cacheName, String ruleName, Context context);
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String ruleName);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/LinkedServersClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/LinkedServersClient.java
new file mode 100644
index 0000000000000..d92e6d5b6340d
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/LinkedServersClient.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisLinkedServerWithPropertiesInner;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServerCreateParameters;
+
+/** An instance of this class provides access to all the operations defined in LinkedServersClient. */
+public interface LinkedServersClient {
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Linked server operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to put/get linked server (with properties) for Redis
+ * cache.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisLinkedServerWithPropertiesInner> beginCreate(
+ String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters parameters);
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Linked server operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response to put/get linked server (with properties) for Redis
+ * cache.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisLinkedServerWithPropertiesInner> beginCreate(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context);
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Linked server 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 response to put/get linked server (with properties) for Redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisLinkedServerWithPropertiesInner create(
+ String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters parameters);
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Linked server operation.
+ * @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 response to put/get linked server (with properties) for Redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisLinkedServerWithPropertiesInner create(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context);
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name, String linkedServerName);
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String name, String linkedServerName, Context context);
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, String linkedServerName);
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, String linkedServerName, Context context);
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server.
+ * @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 detailed information about a linked server of a redis cache (requires Premium SKU) along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String name, String linkedServerName, Context context);
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param linkedServerName The name of the linked server.
+ * @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 detailed information about a linked server of a redis cache (requires Premium SKU).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisLinkedServerWithPropertiesInner get(String resourceGroupName, String name, String linkedServerName);
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @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 list of linked servers associated with this redis cache (requires Premium SKU) as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String name);
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @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 list of linked servers associated with this redis cache (requires Premium SKU) as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String name, Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/OperationsClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..b2befa825759a
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
+ *
+ * @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 result of the request to list REST API operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
+ *
+ * @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 result of the request to list REST API operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PatchSchedulesClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PatchSchedulesClient.java
new file mode 100644
index 0000000000000..30a973c57020e
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PatchSchedulesClient.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisPatchScheduleInner;
+import com.azure.resourcemanager.redis.generated.models.DefaultName;
+
+/** An instance of this class provides access to all the operations defined in PatchSchedulesClient. */
+public interface PatchSchedulesClient {
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRedisResource(String resourceGroupName, String cacheName);
+
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRedisResource(
+ String resourceGroupName, String cacheName, Context context);
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @param parameters Parameters to set the patching schedule for Redis cache.
+ * @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 response to put/get patch schedules for Redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String name,
+ DefaultName defaultParameter,
+ RedisPatchScheduleInner parameters,
+ Context context);
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @param parameters Parameters to set the patching schedule for Redis cache.
+ * @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 response to put/get patch schedules for Redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisPatchScheduleInner createOrUpdate(
+ String resourceGroupName, String name, DefaultName defaultParameter, RedisPatchScheduleInner parameters);
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String name, DefaultName defaultParameter, Context context);
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, DefaultName defaultParameter);
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @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 patching schedule of a redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String name, DefaultName defaultParameter, Context context);
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the redis cache.
+ * @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
+ * @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 patching schedule of a redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisPatchScheduleInner get(String resourceGroupName, String name, DefaultName defaultParameter);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 0000000000000..d29fd21c93482
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,194 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * List all the private endpoint connections associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName);
+
+ /**
+ * List all the private endpoint connections associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String cacheName, Context context);
+
+ /**
+ * Gets the specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String cacheName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets the specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String cacheName, String privateEndpointConnectionName);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginPut(
+ String resourceGroupName,
+ String cacheName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginPut(
+ String resourceGroupName,
+ String cacheName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner put(
+ String resourceGroupName,
+ String cacheName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner put(
+ String resourceGroupName,
+ String cacheName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String cacheName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cacheName, String privateEndpointConnectionName);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateLinkResourcesClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 0000000000000..f226879bb1781
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources that need to be created for a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRedisCache(String resourceGroupName, String cacheName);
+
+ /**
+ * Gets the private link resources that need to be created for a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRedisCache(
+ String resourceGroupName, String cacheName, Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisClient.java
new file mode 100644
index 0000000000000..76760c587c787
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisClient.java
@@ -0,0 +1,592 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisAccessKeysInner;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisForceRebootResponseInner;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisResourceInner;
+import com.azure.resourcemanager.redis.generated.fluent.models.UpgradeNotificationInner;
+import com.azure.resourcemanager.redis.generated.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.redis.generated.models.ExportRdbParameters;
+import com.azure.resourcemanager.redis.generated.models.ImportRdbParameters;
+import com.azure.resourcemanager.redis.generated.models.RedisCreateParameters;
+import com.azure.resourcemanager.redis.generated.models.RedisRebootParameters;
+import com.azure.resourcemanager.redis.generated.models.RedisRegenerateKeyParameters;
+import com.azure.resourcemanager.redis.generated.models.RedisUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in RedisClient. */
+public interface RedisClient {
+ /**
+ * Checks that the redis 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/redis'.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(CheckNameAvailabilityParameters parameters, Context context);
+
+ /**
+ * Checks that the redis 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/redis'.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void checkNameAvailability(CheckNameAvailabilityParameters parameters);
+
+ /**
+ * Gets any upgrade notifications for a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param history how many minutes in past to look for upgrade notifications.
+ * @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 any upgrade notifications for a Redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUpgradeNotifications(
+ String resourceGroupName, String name, double history);
+
+ /**
+ * Gets any upgrade notifications for a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param history how many minutes in past to look for upgrade notifications.
+ * @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 any upgrade notifications for a Redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUpgradeNotifications(
+ String resourceGroupName, String name, double history, Context context);
+
+ /**
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Create Redis operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisResourceInner> beginCreate(
+ String resourceGroupName, String name, RedisCreateParameters parameters);
+
+ /**
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Create Redis operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisResourceInner> beginCreate(
+ String resourceGroupName, String name, RedisCreateParameters parameters, Context context);
+
+ /**
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Create Redis 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 a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisResourceInner create(String resourceGroupName, String name, RedisCreateParameters parameters);
+
+ /**
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Create Redis operation.
+ * @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 a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisResourceInner create(String resourceGroupName, String name, RedisCreateParameters parameters, Context context);
+
+ /**
+ * Update an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Update Redis operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisResourceInner> beginUpdate(
+ String resourceGroupName, String name, RedisUpdateParameters parameters);
+
+ /**
+ * Update an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Update Redis operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RedisResourceInner> beginUpdate(
+ String resourceGroupName, String name, RedisUpdateParameters parameters, Context context);
+
+ /**
+ * Update an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Update Redis 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 a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisResourceInner update(String resourceGroupName, String name, RedisUpdateParameters parameters);
+
+ /**
+ * Update an existing Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters supplied to the Update Redis operation.
+ * @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 a single Redis item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisResourceInner update(String resourceGroupName, String name, RedisUpdateParameters parameters, Context context);
+
+ /**
+ * Deletes a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name);
+
+ /**
+ * Deletes a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context);
+
+ /**
+ * Deletes a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name);
+
+ /**
+ * Deletes a Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, Context context);
+
+ /**
+ * Gets a Redis cache (resource description).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @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 a Redis cache (resource description) along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Gets a Redis cache (resource description).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @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 a Redis cache (resource description).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisResourceInner getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Lists all Redis caches in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 response of list Redis operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all Redis caches in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 response of list Redis operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Gets all Redis caches in the specified subscription.
+ *
+ * @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 all Redis caches in the specified subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all Redis caches in the specified subscription.
+ *
+ * @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 all Redis caches in the specified subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @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 redis cache access keys along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @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 redis cache access keys.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisAccessKeysInner listKeys(String resourceGroupName, String name);
+
+ /**
+ * Regenerate Redis cache's access keys. This operation requires write permission to the cache resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Specifies which key to regenerate.
+ * @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 redis cache access keys along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeyWithResponse(
+ String resourceGroupName, String name, RedisRegenerateKeyParameters parameters, Context context);
+
+ /**
+ * Regenerate Redis cache's access keys. This operation requires write permission to the cache resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Specifies which key to regenerate.
+ * @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 redis cache access keys.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisAccessKeysInner regenerateKey(String resourceGroupName, String name, RedisRegenerateKeyParameters parameters);
+
+ /**
+ * Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be
+ * potential data loss.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Specifies which Redis node(s) to reboot.
+ * @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 response to force reboot for Redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response forceRebootWithResponse(
+ String resourceGroupName, String name, RedisRebootParameters parameters, Context context);
+
+ /**
+ * Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be
+ * potential data loss.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Specifies which Redis node(s) to reboot.
+ * @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 response to force reboot for Redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RedisForceRebootResponseInner forceReboot(String resourceGroupName, String name, RedisRebootParameters parameters);
+
+ /**
+ * Import data into Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis import operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginImportData(
+ String resourceGroupName, String name, ImportRdbParameters parameters);
+
+ /**
+ * Import data into Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis import operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginImportData(
+ String resourceGroupName, String name, ImportRdbParameters parameters, Context context);
+
+ /**
+ * Import data into Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis import 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importData(String resourceGroupName, String name, ImportRdbParameters parameters);
+
+ /**
+ * Import data into Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis import operation.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void importData(String resourceGroupName, String name, ImportRdbParameters parameters, Context context);
+
+ /**
+ * Export data from the redis cache to blobs in a container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis export operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExportData(
+ String resourceGroupName, String name, ExportRdbParameters parameters);
+
+ /**
+ * Export data from the redis cache to blobs in a container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis export operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginExportData(
+ String resourceGroupName, String name, ExportRdbParameters parameters, Context context);
+
+ /**
+ * Export data from the redis cache to blobs in a container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis export 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void exportData(String resourceGroupName, String name, ExportRdbParameters parameters);
+
+ /**
+ * Export data from the redis cache to blobs in a container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Redis cache.
+ * @param parameters Parameters for Redis export operation.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void exportData(String resourceGroupName, String name, ExportRdbParameters parameters, Context context);
+
+ /**
+ * Deletes all of the keys in a cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OperationStatusResultInner> beginFlushCache(
+ String resourceGroupName, String cacheName);
+
+ /**
+ * Deletes all of the keys in a cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OperationStatusResultInner> beginFlushCache(
+ String resourceGroupName, String cacheName, Context context);
+
+ /**
+ * Deletes all of the keys in a cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner flushCache(String resourceGroupName, String cacheName);
+
+ /**
+ * Deletes all of the keys in a cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner flushCache(String resourceGroupName, String cacheName, Context context);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisManagementClient.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisManagementClient.java
new file mode 100644
index 0000000000000..212bb3d87ae57
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisManagementClient.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for RedisManagementClient class. */
+public interface RedisManagementClient {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the RedisClient object to access its operations.
+ *
+ * @return the RedisClient object.
+ */
+ RedisClient getRedis();
+
+ /**
+ * Gets the FirewallRulesClient object to access its operations.
+ *
+ * @return the FirewallRulesClient object.
+ */
+ FirewallRulesClient getFirewallRules();
+
+ /**
+ * Gets the PatchSchedulesClient object to access its operations.
+ *
+ * @return the PatchSchedulesClient object.
+ */
+ PatchSchedulesClient getPatchSchedules();
+
+ /**
+ * Gets the LinkedServersClient object to access its operations.
+ *
+ * @return the LinkedServersClient object.
+ */
+ LinkedServersClient getLinkedServers();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the AsyncOperationStatusClient object to access its operations.
+ *
+ * @return the AsyncOperationStatusClient object.
+ */
+ AsyncOperationStatusClient getAsyncOperationStatus();
+
+ /**
+ * Gets the AccessPoliciesClient object to access its operations.
+ *
+ * @return the AccessPoliciesClient object.
+ */
+ AccessPoliciesClient getAccessPolicies();
+
+ /**
+ * Gets the AccessPolicyAssignmentsClient object to access its operations.
+ *
+ * @return the AccessPolicyAssignmentsClient object.
+ */
+ AccessPolicyAssignmentsClient getAccessPolicyAssignments();
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..92c3d7a2169e9
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationInner.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redis.generated.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** REST API operation. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The object that describes the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: The object that describes the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The object that describes the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusInner.java
new file mode 100644
index 0000000000000..4b2fb7b25c342
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusInner.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Asynchronous operation status. */
+@Fluent
+public final class OperationStatusInner extends OperationStatusResultInner {
+ /*
+ * Additional properties from RP, only when operation is successful
+ */
+ @JsonProperty(value = "properties")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map properties;
+
+ /** Creates an instance of OperationStatusInner class. */
+ public OperationStatusInner() {
+ }
+
+ /**
+ * Get the properties property: Additional properties from RP, only when operation is successful.
+ *
+ * @return the properties value.
+ */
+ public Map properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Additional properties from RP, only when operation is successful.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationStatusInner object itself.
+ */
+ public OperationStatusInner withProperties(Map properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withName(String name) {
+ super.withName(name);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withStatus(String status) {
+ super.withStatus(status);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withPercentComplete(Float percentComplete) {
+ super.withPercentComplete(percentComplete);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withStartTime(OffsetDateTime startTime) {
+ super.withStartTime(startTime);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withEndTime(OffsetDateTime endTime) {
+ super.withEndTime(endTime);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withOperations(List operations) {
+ super.withOperations(operations);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public OperationStatusInner withError(ManagementError error) {
+ super.withError(error);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusResultInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 0000000000000..f9c893d1d5dca
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusResultInner.java
@@ -0,0 +1,247 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The current status of an async operation. */
+@Fluent
+public class OperationStatusResultInner {
+ /*
+ * Fully qualified ID for the async operation.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Name of the async operation.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status", required = true)
+ private String status;
+
+ /*
+ * Percent of the operation that is complete.
+ */
+ @JsonProperty(value = "percentComplete")
+ private Float percentComplete;
+
+ /*
+ * The start time of the operation.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * The end time of the operation.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /*
+ * The operations list.
+ */
+ @JsonProperty(value = "operations")
+ private List operations;
+
+ /*
+ * If present, details of the operation error.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /** Creates an instance of OperationStatusResultInner class. */
+ public OperationStatusResultInner() {
+ }
+
+ /**
+ * Get the id property: Fully qualified ID for the async operation.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Fully qualified ID for the async operation.
+ *
+ * @param id the id value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the name property: Name of the async operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Name of the async operation.
+ *
+ * @param name the name value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Operation status.
+ *
+ * @param status the status value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the percentComplete property: Percent of the operation that is complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Float percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * Set the percentComplete property: Percent of the operation that is complete.
+ *
+ * @param percentComplete the percentComplete value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withPercentComplete(Float percentComplete) {
+ this.percentComplete = percentComplete;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: The start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: The start time of the operation.
+ *
+ * @param startTime the startTime value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: The end time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: The end time of the operation.
+ *
+ * @param endTime the endTime value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the operations property: The operations list.
+ *
+ * @return the operations value.
+ */
+ public List operations() {
+ return this.operations;
+ }
+
+ /**
+ * Set the operations property: The operations list.
+ *
+ * @param operations the operations value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withOperations(List operations) {
+ this.operations = operations;
+ return this;
+ }
+
+ /**
+ * Get the error property: If present, details of the operation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: If present, details of the operation error.
+ *
+ * @param error the error value to set.
+ * @return the OperationStatusResultInner object itself.
+ */
+ public OperationStatusResultInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property status in model OperationStatusResultInner"));
+ }
+ if (operations() != null) {
+ operations().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultInner.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..d4d79bc435f8d
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Private Endpoint Connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..5993f13c2f911
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,112 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the PrivateEndpointConnectProperties. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 0000000000000..10d6e8c064f1a
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A private link resource. */
+@Fluent
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateLinkResourceProperties innerProperties;
+
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredZoneNames(requiredZoneNames);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..41ada021ed1af
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /** Creates an instance of PrivateLinkResourceProperties class. */
+ public PrivateLinkResourceProperties() {
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisAccessKeysInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisAccessKeysInner.java
new file mode 100644
index 0000000000000..8e342e2f67388
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisAccessKeysInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Redis cache access keys. */
+@Immutable
+public final class RedisAccessKeysInner {
+ /*
+ * The current primary key that clients can use to authenticate with Redis cache.
+ */
+ @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryKey;
+
+ /*
+ * The current secondary key that clients can use to authenticate with Redis cache.
+ */
+ @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryKey;
+
+ /** Creates an instance of RedisAccessKeysInner class. */
+ public RedisAccessKeysInner() {
+ }
+
+ /**
+ * Get the primaryKey property: The current primary key that clients can use to authenticate with Redis cache.
+ *
+ * @return the primaryKey value.
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Get the secondaryKey property: The current secondary key that clients can use to authenticate with Redis cache.
+ *
+ * @return the secondaryKey value.
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentInner.java
new file mode 100644
index 0000000000000..6ec103ef58bbe
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentInner.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyAssignmentProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response to an operation on access policy assignment. */
+@Fluent
+public final class RedisCacheAccessPolicyAssignmentInner extends ProxyResource {
+ /*
+ * Properties of an access policy assignment
+ */
+ @JsonProperty(value = "properties")
+ private RedisCacheAccessPolicyAssignmentProperties innerProperties;
+
+ /** Creates an instance of RedisCacheAccessPolicyAssignmentInner class. */
+ public RedisCacheAccessPolicyAssignmentInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of an access policy assignment.
+ *
+ * @return the innerProperties value.
+ */
+ private RedisCacheAccessPolicyAssignmentProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of an access policy assignment set.
+ *
+ * @return the provisioningState value.
+ */
+ public AccessPolicyAssignmentProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the objectId property: Object Id to assign access policy to.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().objectId();
+ }
+
+ /**
+ * Set the objectId property: Object Id to assign access policy to.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RedisCacheAccessPolicyAssignmentInner object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentInner withObjectId(String objectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisCacheAccessPolicyAssignmentProperties();
+ }
+ this.innerProperties().withObjectId(objectId);
+ return this;
+ }
+
+ /**
+ * Get the objectIdAlias property: User friendly name for object id. Also represents username for token based
+ * authentication.
+ *
+ * @return the objectIdAlias value.
+ */
+ public String objectIdAlias() {
+ return this.innerProperties() == null ? null : this.innerProperties().objectIdAlias();
+ }
+
+ /**
+ * Set the objectIdAlias property: User friendly name for object id. Also represents username for token based
+ * authentication.
+ *
+ * @param objectIdAlias the objectIdAlias value to set.
+ * @return the RedisCacheAccessPolicyAssignmentInner object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentInner withObjectIdAlias(String objectIdAlias) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisCacheAccessPolicyAssignmentProperties();
+ }
+ this.innerProperties().withObjectIdAlias(objectIdAlias);
+ return this;
+ }
+
+ /**
+ * Get the accessPolicyName property: The name of the access policy that is being assigned.
+ *
+ * @return the accessPolicyName value.
+ */
+ public String accessPolicyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessPolicyName();
+ }
+
+ /**
+ * Set the accessPolicyName property: The name of the access policy that is being assigned.
+ *
+ * @param accessPolicyName the accessPolicyName value to set.
+ * @return the RedisCacheAccessPolicyAssignmentInner object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentInner withAccessPolicyName(String accessPolicyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisCacheAccessPolicyAssignmentProperties();
+ }
+ this.innerProperties().withAccessPolicyName(accessPolicyName);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentProperties.java
new file mode 100644
index 0000000000000..086ce8e13186b
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyAssignmentProperties.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyAssignmentProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties for an access policy assignment. */
+@Fluent
+public final class RedisCacheAccessPolicyAssignmentProperties {
+ /*
+ * Provisioning state of an access policy assignment set
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private AccessPolicyAssignmentProvisioningState provisioningState;
+
+ /*
+ * Object Id to assign access policy to
+ */
+ @JsonProperty(value = "objectId", required = true)
+ private String objectId;
+
+ /*
+ * User friendly name for object id. Also represents username for token based authentication
+ */
+ @JsonProperty(value = "objectIdAlias", required = true)
+ private String objectIdAlias;
+
+ /*
+ * The name of the access policy that is being assigned
+ */
+ @JsonProperty(value = "accessPolicyName", required = true)
+ private String accessPolicyName;
+
+ /** Creates an instance of RedisCacheAccessPolicyAssignmentProperties class. */
+ public RedisCacheAccessPolicyAssignmentProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of an access policy assignment set.
+ *
+ * @return the provisioningState value.
+ */
+ public AccessPolicyAssignmentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the objectId property: Object Id to assign access policy to.
+ *
+ * @return the objectId value.
+ */
+ public String objectId() {
+ return this.objectId;
+ }
+
+ /**
+ * Set the objectId property: Object Id to assign access policy to.
+ *
+ * @param objectId the objectId value to set.
+ * @return the RedisCacheAccessPolicyAssignmentProperties object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentProperties withObjectId(String objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ /**
+ * Get the objectIdAlias property: User friendly name for object id. Also represents username for token based
+ * authentication.
+ *
+ * @return the objectIdAlias value.
+ */
+ public String objectIdAlias() {
+ return this.objectIdAlias;
+ }
+
+ /**
+ * Set the objectIdAlias property: User friendly name for object id. Also represents username for token based
+ * authentication.
+ *
+ * @param objectIdAlias the objectIdAlias value to set.
+ * @return the RedisCacheAccessPolicyAssignmentProperties object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentProperties withObjectIdAlias(String objectIdAlias) {
+ this.objectIdAlias = objectIdAlias;
+ return this;
+ }
+
+ /**
+ * Get the accessPolicyName property: The name of the access policy that is being assigned.
+ *
+ * @return the accessPolicyName value.
+ */
+ public String accessPolicyName() {
+ return this.accessPolicyName;
+ }
+
+ /**
+ * Set the accessPolicyName property: The name of the access policy that is being assigned.
+ *
+ * @param accessPolicyName the accessPolicyName value to set.
+ * @return the RedisCacheAccessPolicyAssignmentProperties object itself.
+ */
+ public RedisCacheAccessPolicyAssignmentProperties withAccessPolicyName(String accessPolicyName) {
+ this.accessPolicyName = accessPolicyName;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (objectId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property objectId in model RedisCacheAccessPolicyAssignmentProperties"));
+ }
+ if (objectIdAlias() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property objectIdAlias in model RedisCacheAccessPolicyAssignmentProperties"));
+ }
+ if (accessPolicyName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property accessPolicyName in model"
+ + " RedisCacheAccessPolicyAssignmentProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisCacheAccessPolicyAssignmentProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyInner.java
new file mode 100644
index 0000000000000..e602b4907f5c1
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyInner.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response to get/put access policy. */
+@Fluent
+public final class RedisCacheAccessPolicyInner extends ProxyResource {
+ /*
+ * Properties of an access policy.
+ */
+ @JsonProperty(value = "properties")
+ private RedisCacheAccessPolicyProperties innerProperties;
+
+ /** Creates an instance of RedisCacheAccessPolicyInner class. */
+ public RedisCacheAccessPolicyInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of an access policy.
+ *
+ * @return the innerProperties value.
+ */
+ private RedisCacheAccessPolicyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of access policy.
+ *
+ * @return the provisioningState value.
+ */
+ public AccessPolicyProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the type property: Built-In or Custom access policy.
+ *
+ * @return the type value.
+ */
+ public AccessPolicyType typePropertiesType() {
+ return this.innerProperties() == null ? null : this.innerProperties().type();
+ }
+
+ /**
+ * Get the permissions property: Permissions for the access policy. Learn how to configure permissions at
+ * https://aka.ms/redis/AADPreRequisites.
+ *
+ * @return the permissions value.
+ */
+ public String permissions() {
+ return this.innerProperties() == null ? null : this.innerProperties().permissions();
+ }
+
+ /**
+ * Set the permissions property: Permissions for the access policy. Learn how to configure permissions at
+ * https://aka.ms/redis/AADPreRequisites.
+ *
+ * @param permissions the permissions value to set.
+ * @return the RedisCacheAccessPolicyInner object itself.
+ */
+ public RedisCacheAccessPolicyInner withPermissions(String permissions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisCacheAccessPolicyProperties();
+ }
+ this.innerProperties().withPermissions(permissions);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyProperties.java
new file mode 100644
index 0000000000000..6f38e5e7e7ba0
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCacheAccessPolicyProperties.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** All properties of an access policy. */
+@Fluent
+public final class RedisCacheAccessPolicyProperties {
+ /*
+ * Provisioning state of access policy
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private AccessPolicyProvisioningState provisioningState;
+
+ /*
+ * Built-In or Custom access policy
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private AccessPolicyType type;
+
+ /*
+ * Permissions for the access policy. Learn how to configure permissions at https://aka.ms/redis/AADPreRequisites
+ */
+ @JsonProperty(value = "permissions", required = true)
+ private String permissions;
+
+ /** Creates an instance of RedisCacheAccessPolicyProperties class. */
+ public RedisCacheAccessPolicyProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of access policy.
+ *
+ * @return the provisioningState value.
+ */
+ public AccessPolicyProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the type property: Built-In or Custom access policy.
+ *
+ * @return the type value.
+ */
+ public AccessPolicyType type() {
+ return this.type;
+ }
+
+ /**
+ * Get the permissions property: Permissions for the access policy. Learn how to configure permissions at
+ * https://aka.ms/redis/AADPreRequisites.
+ *
+ * @return the permissions value.
+ */
+ public String permissions() {
+ return this.permissions;
+ }
+
+ /**
+ * Set the permissions property: Permissions for the access policy. Learn how to configure permissions at
+ * https://aka.ms/redis/AADPreRequisites.
+ *
+ * @param permissions the permissions value to set.
+ * @return the RedisCacheAccessPolicyProperties object itself.
+ */
+ public RedisCacheAccessPolicyProperties withPermissions(String permissions) {
+ this.permissions = permissions;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (permissions() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property permissions in model RedisCacheAccessPolicyProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisCacheAccessPolicyProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCreateProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCreateProperties.java
new file mode 100644
index 0000000000000..4f80594edf20a
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCreateProperties.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonProperties;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonPropertiesRedisConfiguration;
+import com.azure.resourcemanager.redis.generated.models.Sku;
+import com.azure.resourcemanager.redis.generated.models.TlsVersion;
+import com.azure.resourcemanager.redis.generated.models.UpdateChannel;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Properties supplied to Create Redis operation. */
+@Fluent
+public class RedisCreateProperties extends RedisCommonProperties {
+ /*
+ * The SKU of the Redis cache to deploy.
+ */
+ @JsonProperty(value = "sku", required = true)
+ private Sku sku;
+
+ /*
+ * The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
+ */
+ @JsonProperty(value = "subnetId")
+ private String subnetId;
+
+ /*
+ * Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual
+ * Network; auto assigned by default.
+ */
+ @JsonProperty(value = "staticIP")
+ private String staticIp;
+
+ /** Creates an instance of RedisCreateProperties class. */
+ public RedisCreateProperties() {
+ }
+
+ /**
+ * Get the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @param sku the sku value to set.
+ * @return the RedisCreateProperties object itself.
+ */
+ public RedisCreateProperties withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
+ * Example format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.subnetId;
+ }
+
+ /**
+ * Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
+ * Example format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
+ *
+ * @param subnetId the subnetId value to set.
+ * @return the RedisCreateProperties object itself.
+ */
+ public RedisCreateProperties withSubnetId(String subnetId) {
+ this.subnetId = subnetId;
+ return this;
+ }
+
+ /**
+ * Get the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an
+ * existing Azure Virtual Network; auto assigned by default.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.staticIp;
+ }
+
+ /**
+ * Set the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an
+ * existing Azure Virtual Network; auto assigned by default.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the RedisCreateProperties object itself.
+ */
+ public RedisCreateProperties withStaticIp(String staticIp) {
+ this.staticIp = staticIp;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withRedisConfiguration(RedisCommonPropertiesRedisConfiguration redisConfiguration) {
+ super.withRedisConfiguration(redisConfiguration);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withRedisVersion(String redisVersion) {
+ super.withRedisVersion(redisVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withEnableNonSslPort(Boolean enableNonSslPort) {
+ super.withEnableNonSslPort(enableNonSslPort);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withReplicasPerMaster(Integer replicasPerMaster) {
+ super.withReplicasPerMaster(replicasPerMaster);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withReplicasPerPrimary(Integer replicasPerPrimary) {
+ super.withReplicasPerPrimary(replicasPerPrimary);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withTenantSettings(Map tenantSettings) {
+ super.withTenantSettings(tenantSettings);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withShardCount(Integer shardCount) {
+ super.withShardCount(shardCount);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ super.withMinimumTlsVersion(minimumTlsVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ super.withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisCreateProperties withUpdateChannel(UpdateChannel updateChannel) {
+ super.withUpdateChannel(updateChannel);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (sku() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property sku in model RedisCreateProperties"));
+ } else {
+ sku().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisCreateProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleInner.java
new file mode 100644
index 0000000000000..b55e42c2c38bc
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleInner.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect.
+ */
+@Fluent
+public class RedisFirewallRuleInner extends ProxyResource {
+ /*
+ * redis cache firewall rule properties
+ */
+ @JsonProperty(value = "properties", required = true)
+ private RedisFirewallRuleProperties innerProperties = new RedisFirewallRuleProperties();
+
+ /** Creates an instance of RedisFirewallRuleInner class. */
+ public RedisFirewallRuleInner() {
+ }
+
+ /**
+ * Get the innerProperties property: redis cache firewall rule properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RedisFirewallRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the startIp property: lowest IP address included in the range.
+ *
+ * @return the startIp value.
+ */
+ public String startIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().startIp();
+ }
+
+ /**
+ * Set the startIp property: lowest IP address included in the range.
+ *
+ * @param startIp the startIp value to set.
+ * @return the RedisFirewallRuleInner object itself.
+ */
+ public RedisFirewallRuleInner withStartIp(String startIp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisFirewallRuleProperties();
+ }
+ this.innerProperties().withStartIp(startIp);
+ return this;
+ }
+
+ /**
+ * Get the endIp property: highest IP address included in the range.
+ *
+ * @return the endIp value.
+ */
+ public String endIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().endIp();
+ }
+
+ /**
+ * Set the endIp property: highest IP address included in the range.
+ *
+ * @param endIp the endIp value to set.
+ * @return the RedisFirewallRuleInner object itself.
+ */
+ public RedisFirewallRuleInner withEndIp(String endIp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisFirewallRuleProperties();
+ }
+ this.innerProperties().withEndIp(endIp);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model RedisFirewallRuleInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisFirewallRuleInner.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleProperties.java
new file mode 100644
index 0000000000000..d7df52c9aa732
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisFirewallRuleProperties.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Specifies a range of IP addresses permitted to connect to the cache. */
+@Fluent
+public final class RedisFirewallRuleProperties {
+ /*
+ * lowest IP address included in the range
+ */
+ @JsonProperty(value = "startIP", required = true)
+ private String startIp;
+
+ /*
+ * highest IP address included in the range
+ */
+ @JsonProperty(value = "endIP", required = true)
+ private String endIp;
+
+ /** Creates an instance of RedisFirewallRuleProperties class. */
+ public RedisFirewallRuleProperties() {
+ }
+
+ /**
+ * Get the startIp property: lowest IP address included in the range.
+ *
+ * @return the startIp value.
+ */
+ public String startIp() {
+ return this.startIp;
+ }
+
+ /**
+ * Set the startIp property: lowest IP address included in the range.
+ *
+ * @param startIp the startIp value to set.
+ * @return the RedisFirewallRuleProperties object itself.
+ */
+ public RedisFirewallRuleProperties withStartIp(String startIp) {
+ this.startIp = startIp;
+ return this;
+ }
+
+ /**
+ * Get the endIp property: highest IP address included in the range.
+ *
+ * @return the endIp value.
+ */
+ public String endIp() {
+ return this.endIp;
+ }
+
+ /**
+ * Set the endIp property: highest IP address included in the range.
+ *
+ * @param endIp the endIp value to set.
+ * @return the RedisFirewallRuleProperties object itself.
+ */
+ public RedisFirewallRuleProperties withEndIp(String endIp) {
+ this.endIp = endIp;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (startIp() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property startIp in model RedisFirewallRuleProperties"));
+ }
+ if (endIp() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property endIp in model RedisFirewallRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisFirewallRuleProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisForceRebootResponseInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisForceRebootResponseInner.java
new file mode 100644
index 0000000000000..1875de298c0a1
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisForceRebootResponseInner.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response to force reboot for Redis cache. */
+@Immutable
+public final class RedisForceRebootResponseInner {
+ /*
+ * Status message
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /** Creates an instance of RedisForceRebootResponseInner class. */
+ public RedisForceRebootResponseInner() {
+ }
+
+ /**
+ * Get the message property: Status message.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerCreateProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerCreateProperties.java
new file mode 100644
index 0000000000000..da1cf9e433987
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerCreateProperties.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.ReplicationRole;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Create properties for a linked server. */
+@Fluent
+public class RedisLinkedServerCreateProperties {
+ /*
+ * Fully qualified resourceId of the linked redis cache.
+ */
+ @JsonProperty(value = "linkedRedisCacheId", required = true)
+ private String linkedRedisCacheId;
+
+ /*
+ * Location of the linked redis cache.
+ */
+ @JsonProperty(value = "linkedRedisCacheLocation", required = true)
+ private String linkedRedisCacheLocation;
+
+ /*
+ * Role of the linked server.
+ */
+ @JsonProperty(value = "serverRole", required = true)
+ private ReplicationRole serverRole;
+
+ /*
+ * The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for
+ * seamless Geo Failover experience.
+ */
+ @JsonProperty(value = "geoReplicatedPrimaryHostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String geoReplicatedPrimaryHostname;
+
+ /*
+ * The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or
+ * after the Geo Failover.
+ */
+ @JsonProperty(value = "primaryHostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryHostname;
+
+ /** Creates an instance of RedisLinkedServerCreateProperties class. */
+ public RedisLinkedServerCreateProperties() {
+ }
+
+ /**
+ * Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
+ *
+ * @return the linkedRedisCacheId value.
+ */
+ public String linkedRedisCacheId() {
+ return this.linkedRedisCacheId;
+ }
+
+ /**
+ * Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
+ *
+ * @param linkedRedisCacheId the linkedRedisCacheId value to set.
+ * @return the RedisLinkedServerCreateProperties object itself.
+ */
+ public RedisLinkedServerCreateProperties withLinkedRedisCacheId(String linkedRedisCacheId) {
+ this.linkedRedisCacheId = linkedRedisCacheId;
+ return this;
+ }
+
+ /**
+ * Get the linkedRedisCacheLocation property: Location of the linked redis cache.
+ *
+ * @return the linkedRedisCacheLocation value.
+ */
+ public String linkedRedisCacheLocation() {
+ return this.linkedRedisCacheLocation;
+ }
+
+ /**
+ * Set the linkedRedisCacheLocation property: Location of the linked redis cache.
+ *
+ * @param linkedRedisCacheLocation the linkedRedisCacheLocation value to set.
+ * @return the RedisLinkedServerCreateProperties object itself.
+ */
+ public RedisLinkedServerCreateProperties withLinkedRedisCacheLocation(String linkedRedisCacheLocation) {
+ this.linkedRedisCacheLocation = linkedRedisCacheLocation;
+ return this;
+ }
+
+ /**
+ * Get the serverRole property: Role of the linked server.
+ *
+ * @return the serverRole value.
+ */
+ public ReplicationRole serverRole() {
+ return this.serverRole;
+ }
+
+ /**
+ * Set the serverRole property: Role of the linked server.
+ *
+ * @param serverRole the serverRole value to set.
+ * @return the RedisLinkedServerCreateProperties object itself.
+ */
+ public RedisLinkedServerCreateProperties withServerRole(ReplicationRole serverRole) {
+ this.serverRole = serverRole;
+ return this;
+ }
+
+ /**
+ * Get the geoReplicatedPrimaryHostname property: The unchanging DNS name which will always point to current
+ * geo-primary cache among the linked redis caches for seamless Geo Failover experience.
+ *
+ * @return the geoReplicatedPrimaryHostname value.
+ */
+ public String geoReplicatedPrimaryHostname() {
+ return this.geoReplicatedPrimaryHostname;
+ }
+
+ /**
+ * Get the primaryHostname property: The changing DNS name that resolves to the current geo-primary cache among the
+ * linked redis caches before or after the Geo Failover.
+ *
+ * @return the primaryHostname value.
+ */
+ public String primaryHostname() {
+ return this.primaryHostname;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (linkedRedisCacheId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property linkedRedisCacheId in model RedisLinkedServerCreateProperties"));
+ }
+ if (linkedRedisCacheLocation() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property linkedRedisCacheLocation in model"
+ + " RedisLinkedServerCreateProperties"));
+ }
+ if (serverRole() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property serverRole in model RedisLinkedServerCreateProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisLinkedServerCreateProperties.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerProperties.java
new file mode 100644
index 0000000000000..074eba5a8f0a5
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerProperties.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redis.generated.models.ReplicationRole;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a linked server to be returned in get/put response. */
+@Fluent
+public final class RedisLinkedServerProperties extends RedisLinkedServerCreateProperties {
+ /*
+ * Terminal state of the link between primary and secondary redis cache.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /** Creates an instance of RedisLinkedServerProperties class. */
+ public RedisLinkedServerProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisLinkedServerProperties withLinkedRedisCacheId(String linkedRedisCacheId) {
+ super.withLinkedRedisCacheId(linkedRedisCacheId);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisLinkedServerProperties withLinkedRedisCacheLocation(String linkedRedisCacheLocation) {
+ super.withLinkedRedisCacheLocation(linkedRedisCacheLocation);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisLinkedServerProperties withServerRole(ReplicationRole serverRole) {
+ super.withServerRole(serverRole);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerWithPropertiesInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerWithPropertiesInner.java
new file mode 100644
index 0000000000000..5c34331273413
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisLinkedServerWithPropertiesInner.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.redis.generated.models.ReplicationRole;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response to put/get linked server (with properties) for Redis cache. */
+@Fluent
+public final class RedisLinkedServerWithPropertiesInner extends ProxyResource {
+ /*
+ * Properties of the linked server.
+ */
+ @JsonProperty(value = "properties")
+ private RedisLinkedServerProperties innerProperties;
+
+ /** Creates an instance of RedisLinkedServerWithPropertiesInner class. */
+ public RedisLinkedServerWithPropertiesInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the linked server.
+ *
+ * @return the innerProperties value.
+ */
+ private RedisLinkedServerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Terminal state of the link between primary and secondary redis cache.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
+ *
+ * @return the linkedRedisCacheId value.
+ */
+ public String linkedRedisCacheId() {
+ return this.innerProperties() == null ? null : this.innerProperties().linkedRedisCacheId();
+ }
+
+ /**
+ * Set the linkedRedisCacheId property: Fully qualified resourceId of the linked redis cache.
+ *
+ * @param linkedRedisCacheId the linkedRedisCacheId value to set.
+ * @return the RedisLinkedServerWithPropertiesInner object itself.
+ */
+ public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheId(String linkedRedisCacheId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisLinkedServerProperties();
+ }
+ this.innerProperties().withLinkedRedisCacheId(linkedRedisCacheId);
+ return this;
+ }
+
+ /**
+ * Get the linkedRedisCacheLocation property: Location of the linked redis cache.
+ *
+ * @return the linkedRedisCacheLocation value.
+ */
+ public String linkedRedisCacheLocation() {
+ return this.innerProperties() == null ? null : this.innerProperties().linkedRedisCacheLocation();
+ }
+
+ /**
+ * Set the linkedRedisCacheLocation property: Location of the linked redis cache.
+ *
+ * @param linkedRedisCacheLocation the linkedRedisCacheLocation value to set.
+ * @return the RedisLinkedServerWithPropertiesInner object itself.
+ */
+ public RedisLinkedServerWithPropertiesInner withLinkedRedisCacheLocation(String linkedRedisCacheLocation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisLinkedServerProperties();
+ }
+ this.innerProperties().withLinkedRedisCacheLocation(linkedRedisCacheLocation);
+ return this;
+ }
+
+ /**
+ * Get the serverRole property: Role of the linked server.
+ *
+ * @return the serverRole value.
+ */
+ public ReplicationRole serverRole() {
+ return this.innerProperties() == null ? null : this.innerProperties().serverRole();
+ }
+
+ /**
+ * Set the serverRole property: Role of the linked server.
+ *
+ * @param serverRole the serverRole value to set.
+ * @return the RedisLinkedServerWithPropertiesInner object itself.
+ */
+ public RedisLinkedServerWithPropertiesInner withServerRole(ReplicationRole serverRole) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisLinkedServerProperties();
+ }
+ this.innerProperties().withServerRole(serverRole);
+ return this;
+ }
+
+ /**
+ * Get the geoReplicatedPrimaryHostname property: The unchanging DNS name which will always point to current
+ * geo-primary cache among the linked redis caches for seamless Geo Failover experience.
+ *
+ * @return the geoReplicatedPrimaryHostname value.
+ */
+ public String geoReplicatedPrimaryHostname() {
+ return this.innerProperties() == null ? null : this.innerProperties().geoReplicatedPrimaryHostname();
+ }
+
+ /**
+ * Get the primaryHostname property: The changing DNS name that resolves to the current geo-primary cache among the
+ * linked redis caches before or after the Geo Failover.
+ *
+ * @return the primaryHostname value.
+ */
+ public String primaryHostname() {
+ return this.innerProperties() == null ? null : this.innerProperties().primaryHostname();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPatchScheduleInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPatchScheduleInner.java
new file mode 100644
index 0000000000000..aae7acd6f2c7e
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPatchScheduleInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.ScheduleEntry;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Response to put/get patch schedules for Redis cache. */
+@Fluent
+public final class RedisPatchScheduleInner extends ProxyResource {
+ /*
+ * List of patch schedules for a Redis cache.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private ScheduleEntries innerProperties = new ScheduleEntries();
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /** Creates an instance of RedisPatchScheduleInner class. */
+ public RedisPatchScheduleInner() {
+ }
+
+ /**
+ * Get the innerProperties property: List of patch schedules for a Redis cache.
+ *
+ * @return the innerProperties value.
+ */
+ private ScheduleEntries innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the scheduleEntries property: List of patch schedules for a Redis cache.
+ *
+ * @return the scheduleEntries value.
+ */
+ public List scheduleEntries() {
+ return this.innerProperties() == null ? null : this.innerProperties().scheduleEntries();
+ }
+
+ /**
+ * Set the scheduleEntries property: List of patch schedules for a Redis cache.
+ *
+ * @param scheduleEntries the scheduleEntries value to set.
+ * @return the RedisPatchScheduleInner object itself.
+ */
+ public RedisPatchScheduleInner withScheduleEntries(List scheduleEntries) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScheduleEntries();
+ }
+ this.innerProperties().withScheduleEntries(scheduleEntries);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model RedisPatchScheduleInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisPatchScheduleInner.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPropertiesInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPropertiesInner.java
new file mode 100644
index 0000000000000..120b45213d8ae
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPropertiesInner.java
@@ -0,0 +1,261 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redis.generated.models.ProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonPropertiesRedisConfiguration;
+import com.azure.resourcemanager.redis.generated.models.RedisInstanceDetails;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServer;
+import com.azure.resourcemanager.redis.generated.models.Sku;
+import com.azure.resourcemanager.redis.generated.models.TlsVersion;
+import com.azure.resourcemanager.redis.generated.models.UpdateChannel;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Properties of the redis cache. */
+@Fluent
+public final class RedisPropertiesInner extends RedisCreateProperties {
+ /*
+ * Redis instance provisioning status.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Redis host name.
+ */
+ @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String hostname;
+
+ /*
+ * Redis non-SSL port.
+ */
+ @JsonProperty(value = "port", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer port;
+
+ /*
+ * Redis SSL port.
+ */
+ @JsonProperty(value = "sslPort", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer sslPort;
+
+ /*
+ * The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
+ */
+ @JsonProperty(value = "accessKeys", access = JsonProperty.Access.WRITE_ONLY)
+ private RedisAccessKeysInner accessKeys;
+
+ /*
+ * List of the linked servers associated with the cache
+ */
+ @JsonProperty(value = "linkedServers", access = JsonProperty.Access.WRITE_ONLY)
+ private List linkedServers;
+
+ /*
+ * List of the Redis instances associated with the cache
+ */
+ @JsonProperty(value = "instances", access = JsonProperty.Access.WRITE_ONLY)
+ private List instances;
+
+ /*
+ * List of private endpoint connection associated with the specified redis cache
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /** Creates an instance of RedisPropertiesInner class. */
+ public RedisPropertiesInner() {
+ }
+
+ /**
+ * Get the provisioningState property: Redis instance provisioning status.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the hostname property: Redis host name.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.hostname;
+ }
+
+ /**
+ * Get the port property: Redis non-SSL port.
+ *
+ * @return the port value.
+ */
+ public Integer port() {
+ return this.port;
+ }
+
+ /**
+ * Get the sslPort property: Redis SSL port.
+ *
+ * @return the sslPort value.
+ */
+ public Integer sslPort() {
+ return this.sslPort;
+ }
+
+ /**
+ * Get the accessKeys property: The keys of the Redis cache - not set if this object is not the response to Create
+ * or Update redis cache.
+ *
+ * @return the accessKeys value.
+ */
+ public RedisAccessKeysInner accessKeys() {
+ return this.accessKeys;
+ }
+
+ /**
+ * Get the linkedServers property: List of the linked servers associated with the cache.
+ *
+ * @return the linkedServers value.
+ */
+ public List linkedServers() {
+ return this.linkedServers;
+ }
+
+ /**
+ * Get the instances property: List of the Redis instances associated with the cache.
+ *
+ * @return the instances value.
+ */
+ public List instances() {
+ return this.instances;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * redis cache.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withSku(Sku sku) {
+ super.withSku(sku);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withSubnetId(String subnetId) {
+ super.withSubnetId(subnetId);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withStaticIp(String staticIp) {
+ super.withStaticIp(staticIp);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withRedisConfiguration(RedisCommonPropertiesRedisConfiguration redisConfiguration) {
+ super.withRedisConfiguration(redisConfiguration);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withRedisVersion(String redisVersion) {
+ super.withRedisVersion(redisVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withEnableNonSslPort(Boolean enableNonSslPort) {
+ super.withEnableNonSslPort(enableNonSslPort);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withReplicasPerMaster(Integer replicasPerMaster) {
+ super.withReplicasPerMaster(replicasPerMaster);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withReplicasPerPrimary(Integer replicasPerPrimary) {
+ super.withReplicasPerPrimary(replicasPerPrimary);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withTenantSettings(Map tenantSettings) {
+ super.withTenantSettings(tenantSettings);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withShardCount(Integer shardCount) {
+ super.withShardCount(shardCount);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ super.withMinimumTlsVersion(minimumTlsVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ super.withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisPropertiesInner withUpdateChannel(UpdateChannel updateChannel) {
+ super.withUpdateChannel(updateChannel);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (accessKeys() != null) {
+ accessKeys().validate();
+ }
+ if (linkedServers() != null) {
+ linkedServers().forEach(e -> e.validate());
+ }
+ if (instances() != null) {
+ instances().forEach(e -> e.validate());
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisResourceInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisResourceInner.java
new file mode 100644
index 0000000000000..6b6453978ebc4
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisResourceInner.java
@@ -0,0 +1,528 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.redis.generated.models.ProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonPropertiesRedisConfiguration;
+import com.azure.resourcemanager.redis.generated.models.RedisInstanceDetails;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServer;
+import com.azure.resourcemanager.redis.generated.models.Sku;
+import com.azure.resourcemanager.redis.generated.models.TlsVersion;
+import com.azure.resourcemanager.redis.generated.models.UpdateChannel;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** A single Redis item in List or Get Operation. */
+@Fluent
+public final class RedisResourceInner extends Resource {
+ /*
+ * Redis cache properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private RedisPropertiesInner innerProperties = new RedisPropertiesInner();
+
+ /*
+ * A list of availability zones denoting where the resource needs to come from.
+ */
+ @JsonProperty(value = "zones")
+ private List zones;
+
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /** Creates an instance of RedisResourceInner class. */
+ public RedisResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Redis cache properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RedisPropertiesInner innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the zones property: A list of availability zones denoting where the resource needs to come from.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: A list of availability zones denoting where the resource needs to come from.
+ *
+ * @param zones the zones value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Redis instance provisioning status.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the hostname property: Redis host name.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.innerProperties() == null ? null : this.innerProperties().hostname();
+ }
+
+ /**
+ * Get the port property: Redis non-SSL port.
+ *
+ * @return the port value.
+ */
+ public Integer port() {
+ return this.innerProperties() == null ? null : this.innerProperties().port();
+ }
+
+ /**
+ * Get the sslPort property: Redis SSL port.
+ *
+ * @return the sslPort value.
+ */
+ public Integer sslPort() {
+ return this.innerProperties() == null ? null : this.innerProperties().sslPort();
+ }
+
+ /**
+ * Get the accessKeys property: The keys of the Redis cache - not set if this object is not the response to Create
+ * or Update redis cache.
+ *
+ * @return the accessKeys value.
+ */
+ public RedisAccessKeysInner accessKeys() {
+ return this.innerProperties() == null ? null : this.innerProperties().accessKeys();
+ }
+
+ /**
+ * Get the linkedServers property: List of the linked servers associated with the cache.
+ *
+ * @return the linkedServers value.
+ */
+ public List linkedServers() {
+ return this.innerProperties() == null ? null : this.innerProperties().linkedServers();
+ }
+
+ /**
+ * Get the instances property: List of the Redis instances associated with the cache.
+ *
+ * @return the instances value.
+ */
+ public List instances() {
+ return this.innerProperties() == null ? null : this.innerProperties().instances();
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * redis cache.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
+ /**
+ * Get the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
+ }
+
+ /**
+ * Set the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @param sku the sku value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withSku(Sku sku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withSku(sku);
+ return this;
+ }
+
+ /**
+ * Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
+ * Example format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnetId();
+ }
+
+ /**
+ * Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
+ * Example format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
+ *
+ * @param subnetId the subnetId value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withSubnetId(String subnetId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withSubnetId(subnetId);
+ return this;
+ }
+
+ /**
+ * Get the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an
+ * existing Azure Virtual Network; auto assigned by default.
+ *
+ * @return the staticIp value.
+ */
+ public String staticIp() {
+ return this.innerProperties() == null ? null : this.innerProperties().staticIp();
+ }
+
+ /**
+ * Set the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an
+ * existing Azure Virtual Network; auto assigned by default.
+ *
+ * @param staticIp the staticIp value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withStaticIp(String staticIp) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withStaticIp(staticIp);
+ return this;
+ }
+
+ /**
+ * Get the redisConfiguration property: All Redis Settings. Few possible keys:
+ * rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
+ * etc.
+ *
+ * @return the redisConfiguration value.
+ */
+ public RedisCommonPropertiesRedisConfiguration redisConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().redisConfiguration();
+ }
+
+ /**
+ * Set the redisConfiguration property: All Redis Settings. Few possible keys:
+ * rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
+ * etc.
+ *
+ * @param redisConfiguration the redisConfiguration value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withRedisConfiguration(RedisCommonPropertiesRedisConfiguration redisConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withRedisConfiguration(redisConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is
+ * required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported
+ * versions: 4.0, 6.0 (latest). Default value is 'latest'.
+ *
+ * @return the redisVersion value.
+ */
+ public String redisVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().redisVersion();
+ }
+
+ /**
+ * Set the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is
+ * required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported
+ * versions: 4.0, 6.0 (latest). Default value is 'latest'.
+ *
+ * @param redisVersion the redisVersion value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withRedisVersion(String redisVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withRedisVersion(redisVersion);
+ return this;
+ }
+
+ /**
+ * Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
+ *
+ * @return the enableNonSslPort value.
+ */
+ public Boolean enableNonSslPort() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableNonSslPort();
+ }
+
+ /**
+ * Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
+ *
+ * @param enableNonSslPort the enableNonSslPort value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withEnableNonSslPort(Boolean enableNonSslPort) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withEnableNonSslPort(enableNonSslPort);
+ return this;
+ }
+
+ /**
+ * Get the replicasPerMaster property: The number of replicas to be created per primary.
+ *
+ * @return the replicasPerMaster value.
+ */
+ public Integer replicasPerMaster() {
+ return this.innerProperties() == null ? null : this.innerProperties().replicasPerMaster();
+ }
+
+ /**
+ * Set the replicasPerMaster property: The number of replicas to be created per primary.
+ *
+ * @param replicasPerMaster the replicasPerMaster value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withReplicasPerMaster(Integer replicasPerMaster) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withReplicasPerMaster(replicasPerMaster);
+ return this;
+ }
+
+ /**
+ * Get the replicasPerPrimary property: The number of replicas to be created per primary.
+ *
+ * @return the replicasPerPrimary value.
+ */
+ public Integer replicasPerPrimary() {
+ return this.innerProperties() == null ? null : this.innerProperties().replicasPerPrimary();
+ }
+
+ /**
+ * Set the replicasPerPrimary property: The number of replicas to be created per primary.
+ *
+ * @param replicasPerPrimary the replicasPerPrimary value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withReplicasPerPrimary(Integer replicasPerPrimary) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withReplicasPerPrimary(replicasPerPrimary);
+ return this;
+ }
+
+ /**
+ * Get the tenantSettings property: A dictionary of tenant settings.
+ *
+ * @return the tenantSettings value.
+ */
+ public Map tenantSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().tenantSettings();
+ }
+
+ /**
+ * Set the tenantSettings property: A dictionary of tenant settings.
+ *
+ * @param tenantSettings the tenantSettings value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withTenantSettings(Map tenantSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withTenantSettings(tenantSettings);
+ return this;
+ }
+
+ /**
+ * Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.
+ *
+ * @return the shardCount value.
+ */
+ public Integer shardCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().shardCount();
+ }
+
+ /**
+ * Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
+ *
+ * @param shardCount the shardCount value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withShardCount(Integer shardCount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withShardCount(shardCount);
+ return this;
+ }
+
+ /**
+ * Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to
+ * connect (e,g, '1.0', '1.1', '1.2').
+ *
+ * @return the minimumTlsVersion value.
+ */
+ public TlsVersion minimumTlsVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().minimumTlsVersion();
+ }
+
+ /**
+ * Set the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to
+ * connect (e,g, '1.0', '1.1', '1.2').
+ *
+ * @param minimumTlsVersion the minimumTlsVersion value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withMinimumTlsVersion(minimumTlsVersion);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
+ * access method. Default value is 'Enabled'.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
+ * access method. Default value is 'Enabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis
+ * Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of
+ * 'Stable' channel caches. Default value is 'Stable'.
+ *
+ * @return the updateChannel value.
+ */
+ public UpdateChannel updateChannel() {
+ return this.innerProperties() == null ? null : this.innerProperties().updateChannel();
+ }
+
+ /**
+ * Set the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis
+ * Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of
+ * 'Stable' channel caches. Default value is 'Stable'.
+ *
+ * @param updateChannel the updateChannel value to set.
+ * @return the RedisResourceInner object itself.
+ */
+ public RedisResourceInner withUpdateChannel(UpdateChannel updateChannel) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RedisPropertiesInner();
+ }
+ this.innerProperties().withUpdateChannel(updateChannel);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model RedisResourceInner"));
+ } else {
+ innerProperties().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RedisResourceInner.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisUpdateProperties.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisUpdateProperties.java
new file mode 100644
index 0000000000000..865231670ba2f
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisUpdateProperties.java
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redis.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonProperties;
+import com.azure.resourcemanager.redis.generated.models.RedisCommonPropertiesRedisConfiguration;
+import com.azure.resourcemanager.redis.generated.models.Sku;
+import com.azure.resourcemanager.redis.generated.models.TlsVersion;
+import com.azure.resourcemanager.redis.generated.models.UpdateChannel;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Patchable properties of the redis cache. */
+@Fluent
+public final class RedisUpdateProperties extends RedisCommonProperties {
+ /*
+ * The SKU of the Redis cache to deploy.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /** Creates an instance of RedisUpdateProperties class. */
+ public RedisUpdateProperties() {
+ }
+
+ /**
+ * Get the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of the Redis cache to deploy.
+ *
+ * @param sku the sku value to set.
+ * @return the RedisUpdateProperties object itself.
+ */
+ public RedisUpdateProperties withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withRedisConfiguration(RedisCommonPropertiesRedisConfiguration redisConfiguration) {
+ super.withRedisConfiguration(redisConfiguration);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withRedisVersion(String redisVersion) {
+ super.withRedisVersion(redisVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withEnableNonSslPort(Boolean enableNonSslPort) {
+ super.withEnableNonSslPort(enableNonSslPort);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withReplicasPerMaster(Integer replicasPerMaster) {
+ super.withReplicasPerMaster(replicasPerMaster);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withReplicasPerPrimary(Integer replicasPerPrimary) {
+ super.withReplicasPerPrimary(replicasPerPrimary);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withTenantSettings(Map tenantSettings) {
+ super.withTenantSettings(tenantSettings);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withShardCount(Integer shardCount) {
+ super.withShardCount(shardCount);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ super.withMinimumTlsVersion(minimumTlsVersion);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ super.withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public RedisUpdateProperties withUpdateChannel(UpdateChannel updateChannel) {
+ super.withUpdateChannel(updateChannel);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/ScheduleEntries.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/ScheduleEntries.java
new file mode 100644
index 0000000000000..a80022a101eeb
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/ScheduleEntries.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.models.ScheduleEntry;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of patch schedules for a Redis cache. */
+@Fluent
+public final class ScheduleEntries {
+ /*
+ * List of patch schedules for a Redis cache.
+ */
+ @JsonProperty(value = "scheduleEntries", required = true)
+ private List scheduleEntries;
+
+ /** Creates an instance of ScheduleEntries class. */
+ public ScheduleEntries() {
+ }
+
+ /**
+ * Get the scheduleEntries property: List of patch schedules for a Redis cache.
+ *
+ * @return the scheduleEntries value.
+ */
+ public List scheduleEntries() {
+ return this.scheduleEntries;
+ }
+
+ /**
+ * Set the scheduleEntries property: List of patch schedules for a Redis cache.
+ *
+ * @param scheduleEntries the scheduleEntries value to set.
+ * @return the ScheduleEntries object itself.
+ */
+ public ScheduleEntries withScheduleEntries(List scheduleEntries) {
+ this.scheduleEntries = scheduleEntries;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (scheduleEntries() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property scheduleEntries in model ScheduleEntries"));
+ } else {
+ scheduleEntries().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScheduleEntries.class);
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/UpgradeNotificationInner.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/UpgradeNotificationInner.java
new file mode 100644
index 0000000000000..16d615e51e39f
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/UpgradeNotificationInner.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Properties of upgrade notification. */
+@Immutable
+public final class UpgradeNotificationInner {
+ /*
+ * Name of upgrade notification.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Timestamp when upgrade notification occurred.
+ */
+ @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime timestamp;
+
+ /*
+ * Details about this upgrade notification
+ */
+ @JsonProperty(value = "upsellNotification", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map upsellNotification;
+
+ /** Creates an instance of UpgradeNotificationInner class. */
+ public UpgradeNotificationInner() {
+ }
+
+ /**
+ * Get the name property: Name of upgrade notification.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the timestamp property: Timestamp when upgrade notification occurred.
+ *
+ * @return the timestamp value.
+ */
+ public OffsetDateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Get the upsellNotification property: Details about this upgrade notification.
+ *
+ * @return the upsellNotification value.
+ */
+ public Map upsellNotification() {
+ return this.upsellNotification;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/package-info.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/package-info.java
new file mode 100644
index 0000000000000..4244ca85ab12a
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for RedisManagementClient. REST API for Azure Redis Cache Service. */
+package com.azure.resourcemanager.redis.generated.fluent.models;
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/package-info.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/package-info.java
new file mode 100644
index 0000000000000..8f343e378949f
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for RedisManagementClient. REST API for Azure Redis Cache Service. */
+package com.azure.resourcemanager.redis.generated.fluent;
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesClientImpl.java
new file mode 100644
index 0000000000000..785fd99b1f110
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesClientImpl.java
@@ -0,0 +1,1125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.AccessPoliciesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyInner;
+import com.azure.resourcemanager.redis.generated.models.RedisCacheAccessPolicyList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AccessPoliciesClient. */
+public final class AccessPoliciesClientImpl implements AccessPoliciesClient {
+ /** The proxy service used to perform REST calls. */
+ private final AccessPoliciesService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AccessPoliciesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AccessPoliciesClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy.create(AccessPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientAccessPolicies to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface AccessPoliciesService {
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies/{accessPolicyName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyName") String accessPolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") RedisCacheAccessPolicyInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies/{accessPolicyName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyName") String accessPolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies/{accessPolicyName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyName") String accessPolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicies")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createUpdateWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName 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
+ .createUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createUpdateWithResponseAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName 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
+ .createUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisCacheAccessPolicyInner> beginCreateUpdateAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters) {
+ Mono>> mono =
+ createUpdateWithResponseAsync(resourceGroupName, cacheName, accessPolicyName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisCacheAccessPolicyInner.class,
+ RedisCacheAccessPolicyInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisCacheAccessPolicyInner> beginCreateUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createUpdateWithResponseAsync(resourceGroupName, cacheName, accessPolicyName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisCacheAccessPolicyInner.class,
+ RedisCacheAccessPolicyInner.class,
+ context);
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters) {
+ return this.beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context) {
+ return this
+ .beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createUpdateAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters) {
+ return beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context) {
+ return beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy 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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyInner createUpdate(
+ String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters) {
+ return createUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters).block();
+ }
+
+ /**
+ * Adds an access policy to the redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param parameters Parameters supplied to the Create Update Access Policy operation.
+ * @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 response to get/put access policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyName,
+ RedisCacheAccessPolicyInner parameters,
+ Context context) {
+ return createUpdateAsync(resourceGroupName, cacheName, accessPolicyName, parameters, context).block();
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, cacheName, accessPolicyName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, cacheName, accessPolicyName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName) {
+ return this.beginDeleteAsync(resourceGroupName, cacheName, accessPolicyName).getSyncPoller();
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, cacheName, accessPolicyName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String cacheName, String accessPolicyName) {
+ return beginDeleteAsync(resourceGroupName, cacheName, accessPolicyName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ return beginDeleteAsync(resourceGroupName, cacheName, accessPolicyName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName) {
+ deleteAsync(resourceGroupName, cacheName, accessPolicyName).block();
+ }
+
+ /**
+ * Deletes the access policy from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 cacheName, String accessPolicyName, Context context) {
+ deleteAsync(resourceGroupName, cacheName, accessPolicyName, context).block();
+ }
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter accessPolicyName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String cacheName, String accessPolicyName) {
+ return getWithResponseAsync(resourceGroupName, cacheName, accessPolicyName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ return getWithResponseAsync(resourceGroupName, cacheName, accessPolicyName, context).block();
+ }
+
+ /**
+ * Gets the detailed information about an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyName The name of the access policy that is being added to the Redis cache.
+ * @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 detailed information about an access policy of a redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName) {
+ return getWithResponse(resourceGroupName, cacheName, accessPolicyName, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String cacheName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String cacheName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName));
+ }
+
+ /**
+ * Gets the list of access policies associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policies associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of access policies (with properties) of a Redis cache along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of access policies (with properties) of a Redis cache along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesImpl.java
new file mode 100644
index 0000000000000..518f87f31c772
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPoliciesImpl.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.fluent.AccessPoliciesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyInner;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicies;
+import com.azure.resourcemanager.redis.generated.models.RedisCacheAccessPolicy;
+
+public final class AccessPoliciesImpl implements AccessPolicies {
+ private static final ClientLogger LOGGER = new ClientLogger(AccessPoliciesImpl.class);
+
+ private final AccessPoliciesClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public AccessPoliciesImpl(
+ AccessPoliciesClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public void delete(String resourceGroupName, String cacheName, String accessPolicyName) {
+ this.serviceClient().delete(resourceGroupName, cacheName, accessPolicyName);
+ }
+
+ public void delete(String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ this.serviceClient().delete(resourceGroupName, cacheName, accessPolicyName, context);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, cacheName, accessPolicyName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisCacheAccessPolicyImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisCacheAccessPolicy get(String resourceGroupName, String cacheName, String accessPolicyName) {
+ RedisCacheAccessPolicyInner inner = this.serviceClient().get(resourceGroupName, cacheName, accessPolicyName);
+ if (inner != null) {
+ return new RedisCacheAccessPolicyImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String resourceGroupName, String cacheName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, cacheName);
+ return Utils.mapPage(inner, inner1 -> new RedisCacheAccessPolicyImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String cacheName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, cacheName, context);
+ return Utils.mapPage(inner, inner1 -> new RedisCacheAccessPolicyImpl(inner1, this.manager()));
+ }
+
+ public RedisCacheAccessPolicy getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyName = Utils.getValueFromIdByName(id, "accessPolicies");
+ if (accessPolicyName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, cacheName, accessPolicyName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyName = Utils.getValueFromIdByName(id, "accessPolicies");
+ if (accessPolicyName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, cacheName, accessPolicyName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyName = Utils.getValueFromIdByName(id, "accessPolicies");
+ if (accessPolicyName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
+ }
+ this.delete(resourceGroupName, cacheName, accessPolicyName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyName = Utils.getValueFromIdByName(id, "accessPolicies");
+ if (accessPolicyName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
+ }
+ this.delete(resourceGroupName, cacheName, accessPolicyName, context);
+ }
+
+ private AccessPoliciesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+
+ public RedisCacheAccessPolicyImpl define(String name) {
+ return new RedisCacheAccessPolicyImpl(name, this.manager());
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsClientImpl.java
new file mode 100644
index 0000000000000..117544ad4293d
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsClientImpl.java
@@ -0,0 +1,1164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.redis.generated.fluent.AccessPolicyAssignmentsClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyAssignmentInner;
+import com.azure.resourcemanager.redis.generated.models.RedisCacheAccessPolicyAssignmentList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AccessPolicyAssignmentsClient. */
+public final class AccessPolicyAssignmentsClientImpl implements AccessPolicyAssignmentsClient {
+ /** The proxy service used to perform REST calls. */
+ private final AccessPolicyAssignmentsService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AccessPolicyAssignmentsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AccessPolicyAssignmentsClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(AccessPolicyAssignmentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientAccessPolicyAssignments to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface AccessPolicyAssignmentsService {
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") RedisCacheAccessPolicyAssignmentInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createUpdateWithResponseAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName 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
+ .createUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createUpdateWithResponseAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName 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
+ .createUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters) {
+ Mono>> mono =
+ createUpdateWithResponseAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisCacheAccessPolicyAssignmentInner.class,
+ RedisCacheAccessPolicyAssignmentInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createUpdateWithResponseAsync(
+ resourceGroupName, cacheName, accessPolicyAssignmentName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisCacheAccessPolicyAssignmentInner.class,
+ RedisCacheAccessPolicyAssignmentInner.class,
+ context);
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters) {
+ return this
+ .beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, RedisCacheAccessPolicyAssignmentInner>
+ beginCreateUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context) {
+ return this
+ .beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters) {
+ return beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createUpdateAsync(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context) {
+ return beginCreateUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment 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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyAssignmentInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters) {
+ return createUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters).block();
+ }
+
+ /**
+ * Adds the access policy assignment to the specified users.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param parameters Parameters supplied to the Create Update Access Policy Assignment operation.
+ * @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 response to an operation on access policy assignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyAssignmentInner createUpdate(
+ String resourceGroupName,
+ String cacheName,
+ String accessPolicyAssignmentName,
+ RedisCacheAccessPolicyAssignmentInner parameters,
+ Context context) {
+ return createUpdateAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, parameters, context).block();
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName) {
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, cacheName, accessPolicyAssignmentName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName) {
+ return this.beginDeleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName).getSyncPoller();
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ return beginDeleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ return beginDeleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName) {
+ deleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName).block();
+ }
+
+ /**
+ * Deletes the access policy assignment from a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 cacheName, String accessPolicyAssignmentName, Context context) {
+ deleteAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, context).block();
+ }
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (accessPolicyAssignmentName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter accessPolicyAssignmentName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ accessPolicyAssignmentName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ return getWithResponseAsync(resourceGroupName, cacheName, accessPolicyAssignmentName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ return getWithResponseAsync(resourceGroupName, cacheName, accessPolicyAssignmentName, context).block();
+ }
+
+ /**
+ * Gets the list of assignments for an access policy of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param accessPolicyAssignmentName The name of the access policy assignment.
+ * @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 list of assignments for an access policy of a redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisCacheAccessPolicyAssignmentInner get(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ return getWithResponse(resourceGroupName, cacheName, accessPolicyAssignmentName, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String cacheName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String cacheName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName));
+ }
+
+ /**
+ * Gets the list of access policy assignments associated with this redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 list of access policy assignments associated with this redis cache as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of access policies assignments (with properties) of a Redis cache along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of access policies assignments (with properties) of a Redis cache along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsImpl.java
new file mode 100644
index 0000000000000..8a5f484b801aa
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AccessPolicyAssignmentsImpl.java
@@ -0,0 +1,205 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.fluent.AccessPolicyAssignmentsClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisCacheAccessPolicyAssignmentInner;
+import com.azure.resourcemanager.redis.generated.models.AccessPolicyAssignments;
+import com.azure.resourcemanager.redis.generated.models.RedisCacheAccessPolicyAssignment;
+
+public final class AccessPolicyAssignmentsImpl implements AccessPolicyAssignments {
+ private static final ClientLogger LOGGER = new ClientLogger(AccessPolicyAssignmentsImpl.class);
+
+ private final AccessPolicyAssignmentsClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public AccessPolicyAssignmentsImpl(
+ AccessPolicyAssignmentsClient innerClient,
+ com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public void delete(String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ this.serviceClient().delete(resourceGroupName, cacheName, accessPolicyAssignmentName);
+ }
+
+ public void delete(String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ this.serviceClient().delete(resourceGroupName, cacheName, accessPolicyAssignmentName, context);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, cacheName, accessPolicyAssignmentName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisCacheAccessPolicyAssignmentImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisCacheAccessPolicyAssignment get(
+ String resourceGroupName, String cacheName, String accessPolicyAssignmentName) {
+ RedisCacheAccessPolicyAssignmentInner inner =
+ this.serviceClient().get(resourceGroupName, cacheName, accessPolicyAssignmentName);
+ if (inner != null) {
+ return new RedisCacheAccessPolicyAssignmentImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String resourceGroupName, String cacheName) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, cacheName);
+ return Utils.mapPage(inner, inner1 -> new RedisCacheAccessPolicyAssignmentImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String resourceGroupName, String cacheName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, cacheName, context);
+ return Utils.mapPage(inner, inner1 -> new RedisCacheAccessPolicyAssignmentImpl(inner1, this.manager()));
+ }
+
+ public RedisCacheAccessPolicyAssignment getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyAssignmentName = Utils.getValueFromIdByName(id, "accessPolicyAssignments");
+ if (accessPolicyAssignmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, cacheName, accessPolicyAssignmentName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyAssignmentName = Utils.getValueFromIdByName(id, "accessPolicyAssignments");
+ if (accessPolicyAssignmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.",
+ id)));
+ }
+ return this.getWithResponse(resourceGroupName, cacheName, accessPolicyAssignmentName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyAssignmentName = Utils.getValueFromIdByName(id, "accessPolicyAssignments");
+ if (accessPolicyAssignmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.",
+ id)));
+ }
+ this.delete(resourceGroupName, cacheName, accessPolicyAssignmentName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cacheName = Utils.getValueFromIdByName(id, "redis");
+ if (cacheName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String accessPolicyAssignmentName = Utils.getValueFromIdByName(id, "accessPolicyAssignments");
+ if (accessPolicyAssignmentName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.",
+ id)));
+ }
+ this.delete(resourceGroupName, cacheName, accessPolicyAssignmentName, context);
+ }
+
+ private AccessPolicyAssignmentsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+
+ public RedisCacheAccessPolicyAssignmentImpl define(String name) {
+ return new RedisCacheAccessPolicyAssignmentImpl(name, this.manager());
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusClientImpl.java
new file mode 100644
index 0000000000000..7399f47786dcb
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusClientImpl.java
@@ -0,0 +1,206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.redis.generated.fluent.AsyncOperationStatusClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationStatusInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AsyncOperationStatusClient. */
+public final class AsyncOperationStatusClientImpl implements AsyncOperationStatusClient {
+ /** The proxy service used to perform REST calls. */
+ private final AsyncOperationStatusService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AsyncOperationStatusClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AsyncOperationStatusClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(AsyncOperationStatusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientAsyncOperationStatus to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface AsyncOperationStatusService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("location") String location,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous 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 asynchronous operation status along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location, String operationId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ location,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous operation.
+ * @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 asynchronous operation status along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String location, String operationId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ location,
+ operationId,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous 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 asynchronous operation status on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String location, String operationId) {
+ return getWithResponseAsync(location, operationId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous operation.
+ * @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 asynchronous operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String location, String operationId, Context context) {
+ return getWithResponseAsync(location, operationId, context).block();
+ }
+
+ /**
+ * For checking the ongoing status of an operation.
+ *
+ * @param location The location at which operation was triggered.
+ * @param operationId The ID of asynchronous 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 asynchronous operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner get(String location, String operationId) {
+ return getWithResponse(location, operationId, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusImpl.java
new file mode 100644
index 0000000000000..90b3609259627
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/AsyncOperationStatusImpl.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.fluent.AsyncOperationStatusClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationStatusInner;
+import com.azure.resourcemanager.redis.generated.models.AsyncOperationStatus;
+import com.azure.resourcemanager.redis.generated.models.OperationStatus;
+
+public final class AsyncOperationStatusImpl implements AsyncOperationStatus {
+ private static final ClientLogger LOGGER = new ClientLogger(AsyncOperationStatusImpl.class);
+
+ private final AsyncOperationStatusClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public AsyncOperationStatusImpl(
+ AsyncOperationStatusClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String location, String operationId, Context context) {
+ Response inner = this.serviceClient().getWithResponse(location, operationId, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new OperationStatusImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public OperationStatus get(String location, String operationId) {
+ OperationStatusInner inner = this.serviceClient().get(location, operationId);
+ if (inner != null) {
+ return new OperationStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private AsyncOperationStatusClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesClientImpl.java
new file mode 100644
index 0000000000000..dc4cf5a14c57e
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesClientImpl.java
@@ -0,0 +1,882 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.redis.generated.fluent.FirewallRulesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisFirewallRuleInner;
+import com.azure.resourcemanager.redis.generated.models.RedisFirewallRuleListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in FirewallRulesClient. */
+public final class FirewallRulesClientImpl implements FirewallRulesClient {
+ /** The proxy service used to perform REST calls. */
+ private final FirewallRulesService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of FirewallRulesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ FirewallRulesClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy.create(FirewallRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientFirewallRules to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface FirewallRulesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("ruleName") String ruleName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") RedisFirewallRuleInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("ruleName") String ruleName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("ruleName") String ruleName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName) {
+ 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 (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ cacheName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String cacheName, 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 (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ cacheName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String cacheName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String cacheName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, cacheName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String cacheName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName));
+ }
+
+ /**
+ * Gets all firewall rules in the specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @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 all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String cacheName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, cacheName, context));
+ }
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule 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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName 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
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule operation.
+ * @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String cacheName,
+ String ruleName,
+ RedisFirewallRuleInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName 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
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule 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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, cacheName, ruleName, parameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule operation.
+ * @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String cacheName,
+ String ruleName,
+ RedisFirewallRuleInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, cacheName, ruleName, parameters, context).block();
+ }
+
+ /**
+ * Create or update a redis cache firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param parameters Parameters supplied to the create or update redis firewall rule 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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
+ * to connect.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisFirewallRuleInner createOrUpdate(
+ String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, cacheName, ruleName, parameters, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 single firewall rule in a specified redis cache along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String ruleName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 a single firewall rule in a specified redis cache along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 single firewall rule in a specified redis cache on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String cacheName, String ruleName) {
+ return getWithResponseAsync(resourceGroupName, cacheName, ruleName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 a single firewall rule in a specified redis cache along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ return getWithResponseAsync(resourceGroupName, cacheName, ruleName, context).block();
+ }
+
+ /**
+ * Gets a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 single firewall rule in a specified redis cache.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RedisFirewallRuleInner get(String resourceGroupName, String cacheName, String ruleName) {
+ return getWithResponse(resourceGroupName, cacheName, ruleName, Context.NONE).getValue();
+ }
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String cacheName, String ruleName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (cacheName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter cacheName is required and cannot be null."));
+ }
+ if (ruleName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ cacheName,
+ ruleName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String cacheName, String ruleName) {
+ return deleteWithResponseAsync(resourceGroupName, cacheName, ruleName).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, cacheName, ruleName, context).block();
+ }
+
+ /**
+ * Deletes a single firewall rule in a specified redis cache.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cacheName The name of the Redis cache.
+ * @param ruleName The name of the firewall rule.
+ * @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 cacheName, String ruleName) {
+ deleteWithResponse(resourceGroupName, cacheName, ruleName, Context.NONE);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @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 response of list firewall rules Redis operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @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 response of list firewall rules Redis operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesImpl.java
new file mode 100644
index 0000000000000..5ac0f4b239d9b
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/FirewallRulesImpl.java
@@ -0,0 +1,112 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redis.generated.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.fluent.FirewallRulesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisFirewallRuleInner;
+import com.azure.resourcemanager.redis.generated.models.FirewallRules;
+import com.azure.resourcemanager.redis.generated.models.RedisFirewallRule;
+
+public final class FirewallRulesImpl implements FirewallRules {
+ private static final ClientLogger LOGGER = new ClientLogger(FirewallRulesImpl.class);
+
+ private final FirewallRulesClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public FirewallRulesImpl(
+ FirewallRulesClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable