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;
+ }
+
+ /**
+ * @return Wrapped service client RedisManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public RedisManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
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..73bd5598ad971
--- /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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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..a586d5e32cc01
--- /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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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..1c1f8a9bd22a7
--- /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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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..0d5437719bdba
--- /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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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..1b91010c6377b
--- /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.
+ * @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.
+ * @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..232dbaa7fbd13
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisClient.java
@@ -0,0 +1,535 @@
+// 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.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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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);
+}
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..7f3e25855e2e9
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/RedisManagementClient.java
@@ -0,0 +1,103 @@
+// 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 Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID
+ * forms part of the URI for every service call.
+ *
+ * @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();
+}
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..6de730cec4700
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/OperationStatusInner.java
@@ -0,0 +1,115 @@
+// 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.ErrorDetailAutoGenerated;
+import com.azure.resourcemanager.redis.generated.models.OperationStatusResult;
+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 OperationStatusResult {
+ /*
+ * 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(ErrorDetailAutoGenerated 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/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/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..0fd85387a1a43
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisCreateProperties.java
@@ -0,0 +1,191 @@
+// 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.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;
+ }
+
+ /**
+ * 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..8985c83c20078
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisPropertiesInner.java
@@ -0,0 +1,253 @@
+// 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.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;
+ }
+
+ /**
+ * 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..e019276a77fd8
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisResourceInner.java
@@ -0,0 +1,502 @@
+// 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.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'. Note: this setting is important for caches with private endpoints; but
+ * has *no effect* on caches that are joined to, or injected into, a virtual network subnet.
+ *
+ * @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'. Note: this setting is important for caches with private endpoints; but
+ * has *no effect* on caches that are joined to, or injected into, a virtual network subnet.
+ *
+ * @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;
+ }
+
+ /**
+ * 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..be9b756c0a96a
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/fluent/models/RedisUpdateProperties.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.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.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;
+ }
+
+ /**
+ * 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/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..3b30df592a294
--- /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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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.
+ * @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 list(String resourceGroupName, String cacheName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, cacheName);
+ return Utils.mapPage(inner, inner1 -> new RedisFirewallRuleImpl(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 RedisFirewallRuleImpl(inner1, this.manager()));
+ }
+
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String cacheName,
+ String ruleName,
+ RedisFirewallRuleInner parameters,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, cacheName, ruleName, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisFirewallRuleImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisFirewallRule createOrUpdate(
+ String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) {
+ RedisFirewallRuleInner inner =
+ this.serviceClient().createOrUpdate(resourceGroupName, cacheName, ruleName, parameters);
+ if (inner != null) {
+ return new RedisFirewallRuleImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, cacheName, ruleName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisFirewallRuleImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisFirewallRule get(String resourceGroupName, String cacheName, String ruleName) {
+ RedisFirewallRuleInner inner = this.serviceClient().get(resourceGroupName, cacheName, ruleName);
+ if (inner != null) {
+ return new RedisFirewallRuleImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String cacheName, String ruleName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, cacheName, ruleName, context);
+ }
+
+ public void delete(String resourceGroupName, String cacheName, String ruleName) {
+ this.serviceClient().delete(resourceGroupName, cacheName, ruleName);
+ }
+
+ private FirewallRulesClient 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/LinkedServersClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/LinkedServersClientImpl.java
new file mode 100644
index 0000000000000..1be510400f605
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/LinkedServersClientImpl.java
@@ -0,0 +1,1143 @@
+// 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.LinkedServersClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisLinkedServerWithPropertiesInner;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServerCreateParameters;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServerWithPropertiesList;
+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 LinkedServersClient. */
+public final class LinkedServersClientImpl implements LinkedServersClient {
+ /** The proxy service used to perform REST calls. */
+ private final LinkedServersService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of LinkedServersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LinkedServersClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy.create(LinkedServersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientLinkedServers to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface LinkedServersService {
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("linkedServerName") String linkedServerName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") RedisLinkedServerCreateParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("linkedServerName") String linkedServerName,
+ @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/{name}/linkedServers/{linkedServerName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("linkedServerName") String linkedServerName,
+ @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/{name}/linkedServers")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @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 a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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
+ .create(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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
+ .create(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 put/get linked server (with properties) for Redis
+ * cache.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisLinkedServerWithPropertiesInner>
+ beginCreateAsync(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters) {
+ Mono>> mono =
+ createWithResponseAsync(resourceGroupName, name, linkedServerName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisLinkedServerWithPropertiesInner.class,
+ RedisLinkedServerWithPropertiesInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 put/get linked server (with properties) for Redis
+ * cache.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, RedisLinkedServerWithPropertiesInner>
+ beginCreateAsync(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createWithResponseAsync(resourceGroupName, name, linkedServerName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ RedisLinkedServerWithPropertiesInner.class,
+ RedisLinkedServerWithPropertiesInner.class,
+ context);
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public SyncPoller, RedisLinkedServerWithPropertiesInner>
+ beginCreate(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters) {
+ return this.beginCreateAsync(resourceGroupName, name, linkedServerName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public SyncPoller, RedisLinkedServerWithPropertiesInner>
+ beginCreate(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context) {
+ return this.beginCreateAsync(resourceGroupName, name, linkedServerName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters parameters) {
+ return beginCreateAsync(resourceGroupName, name, linkedServerName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, name, linkedServerName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public RedisLinkedServerWithPropertiesInner create(
+ String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters parameters) {
+ return createAsync(resourceGroupName, name, linkedServerName, parameters).block();
+ }
+
+ /**
+ * Adds a linked server to the Redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public RedisLinkedServerWithPropertiesInner create(
+ String resourceGroupName,
+ String name,
+ String linkedServerName,
+ RedisLinkedServerCreateParameters parameters,
+ Context context) {
+ return createAsync(resourceGroupName, name, linkedServerName, parameters, context).block();
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, name, linkedServerName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, name, linkedServerName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName) {
+ return this.beginDeleteAsync(resourceGroupName, name, linkedServerName).getSyncPoller();
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, name, linkedServerName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName) {
+ return beginDeleteAsync(resourceGroupName, name, linkedServerName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName, Context context) {
+ return beginDeleteAsync(resourceGroupName, name, linkedServerName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName) {
+ deleteAsync(resourceGroupName, name, linkedServerName).block();
+ }
+
+ /**
+ * Deletes the linked server from a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, String linkedServerName, Context context) {
+ deleteAsync(resourceGroupName, name, linkedServerName, context).block();
+ }
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String name, String linkedServerName) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String name, String linkedServerName, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (linkedServerName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter linkedServerName 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,
+ name,
+ linkedServerName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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) on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String name, String linkedServerName) {
+ return getWithResponseAsync(resourceGroupName, name, linkedServerName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public Response getWithResponse(
+ String resourceGroupName, String name, String linkedServerName, Context context) {
+ return getWithResponseAsync(resourceGroupName, name, linkedServerName, context).block();
+ }
+
+ /**
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public RedisLinkedServerWithPropertiesInner get(String resourceGroupName, String name, String linkedServerName) {
+ return getWithResponse(resourceGroupName, name, linkedServerName, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name 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 linked servers associated with this redis cache (requires Premium SKU) along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String name) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ name,
+ 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 linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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) along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String name, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name 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,
+ name,
+ 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 linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name 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 linked servers associated with this redis cache (requires Premium SKU) as paginated response
+ * with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String name) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, name), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String name, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, name, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name 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 linked servers associated with this redis cache (requires Premium SKU) as paginated response
+ * with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String name) {
+ return new PagedIterable<>(listAsync(resourceGroupName, name));
+ }
+
+ /**
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public PagedIterable list(
+ String resourceGroupName, String name, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, name, 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 linked servers (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 linked servers (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/LinkedServersImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/LinkedServersImpl.java
new file mode 100644
index 0000000000000..bd17277e029bb
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/LinkedServersImpl.java
@@ -0,0 +1,189 @@
+// 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.LinkedServersClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisLinkedServerWithPropertiesInner;
+import com.azure.resourcemanager.redis.generated.models.LinkedServers;
+import com.azure.resourcemanager.redis.generated.models.RedisLinkedServerWithProperties;
+
+public final class LinkedServersImpl implements LinkedServers {
+ private static final ClientLogger LOGGER = new ClientLogger(LinkedServersImpl.class);
+
+ private final LinkedServersClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public LinkedServersImpl(
+ LinkedServersClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public void delete(String resourceGroupName, String name, String linkedServerName) {
+ this.serviceClient().delete(resourceGroupName, name, linkedServerName);
+ }
+
+ public void delete(String resourceGroupName, String name, String linkedServerName, Context context) {
+ this.serviceClient().delete(resourceGroupName, name, linkedServerName, context);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String name, String linkedServerName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, name, linkedServerName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisLinkedServerWithPropertiesImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisLinkedServerWithProperties get(String resourceGroupName, String name, String linkedServerName) {
+ RedisLinkedServerWithPropertiesInner inner =
+ this.serviceClient().get(resourceGroupName, name, linkedServerName);
+ if (inner != null) {
+ return new RedisLinkedServerWithPropertiesImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String resourceGroupName, String name) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, name);
+ return Utils.mapPage(inner, inner1 -> new RedisLinkedServerWithPropertiesImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String name, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, name, context);
+ return Utils.mapPage(inner, inner1 -> new RedisLinkedServerWithPropertiesImpl(inner1, this.manager()));
+ }
+
+ public RedisLinkedServerWithProperties 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String linkedServerName = Utils.getValueFromIdByName(id, "linkedServers");
+ if (linkedServerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServers'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, name, linkedServerName, 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String linkedServerName = Utils.getValueFromIdByName(id, "linkedServers");
+ if (linkedServerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServers'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, name, linkedServerName, 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String linkedServerName = Utils.getValueFromIdByName(id, "linkedServers");
+ if (linkedServerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServers'.", id)));
+ }
+ this.delete(resourceGroupName, name, linkedServerName, 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String linkedServerName = Utils.getValueFromIdByName(id, "linkedServers");
+ if (linkedServerName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServers'.", id)));
+ }
+ this.delete(resourceGroupName, name, linkedServerName, context);
+ }
+
+ private LinkedServersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+
+ public RedisLinkedServerWithPropertiesImpl define(String name) {
+ return new RedisLinkedServerWithPropertiesImpl(name, this.manager());
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationImpl.java
new file mode 100644
index 0000000000000..4077bc2daab45
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationImpl.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.implementation;
+
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationInner;
+import com.azure.resourcemanager.redis.generated.models.Operation;
+import com.azure.resourcemanager.redis.generated.models.OperationDisplay;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ OperationImpl(OperationInner innerObject, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ 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/OperationStatusImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationStatusImpl.java
new file mode 100644
index 0000000000000..b6cb768504780
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationStatusImpl.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.implementation;
+
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationStatusInner;
+import com.azure.resourcemanager.redis.generated.models.ErrorDetailAutoGenerated;
+import com.azure.resourcemanager.redis.generated.models.OperationStatus;
+import com.azure.resourcemanager.redis.generated.models.OperationStatusResult;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class OperationStatusImpl implements OperationStatus {
+ private OperationStatusInner innerObject;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ OperationStatusImpl(
+ OperationStatusInner innerObject, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String status() {
+ return this.innerModel().status();
+ }
+
+ public Float percentComplete() {
+ return this.innerModel().percentComplete();
+ }
+
+ public OffsetDateTime startTime() {
+ return this.innerModel().startTime();
+ }
+
+ public OffsetDateTime endTime() {
+ return this.innerModel().endTime();
+ }
+
+ public List operations() {
+ List inner = this.innerModel().operations();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ErrorDetailAutoGenerated error() {
+ return this.innerModel().error();
+ }
+
+ public Map properties() {
+ Map inner = this.innerModel().properties();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public OperationStatusInner innerModel() {
+ return this.innerObject;
+ }
+
+ 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/OperationsClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationsClientImpl.java
new file mode 100644
index 0000000000000..0f1db91a053c2
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationsClientImpl.java
@@ -0,0 +1,272 @@
+// 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.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.OperationsClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationInner;
+import com.azure.resourcemanager.redis.generated.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public final class OperationsClientImpl implements OperationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final OperationsService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientOperations to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface OperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Cache/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @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);
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
+ *
+ * @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 result of the request to list REST API operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ 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.list(this.client.getEndpoint(), this.client.getApiVersion(), 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()));
+ }
+
+ /**
+ * 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 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 along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ 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
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
+ *
+ * @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 result of the request to list REST API operations as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * 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 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
+ *
+ * @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 result of the request to list REST API operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * 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 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)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(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 result of the request to list REST API operations 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 result of the request to list REST API operations 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/OperationsImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationsImpl.java
new file mode 100644
index 0000000000000..fb9358047a76f
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// 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.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redis.generated.fluent.OperationsClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.OperationInner;
+import com.azure.resourcemanager.redis.generated.models.Operation;
+import com.azure.resourcemanager.redis.generated.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public OperationsImpl(
+ OperationsClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient 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/PatchSchedulesClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PatchSchedulesClientImpl.java
new file mode 100644
index 0000000000000..ba2e2a2afe3f0
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PatchSchedulesClientImpl.java
@@ -0,0 +1,898 @@
+// 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.PatchSchedulesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisPatchScheduleInner;
+import com.azure.resourcemanager.redis.generated.models.DefaultName;
+import com.azure.resourcemanager.redis.generated.models.RedisPatchScheduleListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in PatchSchedulesClient. */
+public final class PatchSchedulesClientImpl implements PatchSchedulesClient {
+ /** The proxy service used to perform REST calls. */
+ private final PatchSchedulesService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of PatchSchedulesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PatchSchedulesClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy.create(PatchSchedulesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientPatchSchedules to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface PatchSchedulesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByRedisResource(
+ @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/{name}/patchSchedules/{default}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("default") DefaultName defaultParameter,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") RedisPatchScheduleInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("default") DefaultName defaultParameter,
+ @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/{name}/patchSchedules/{default}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("name") String name,
+ @PathParam("default") DefaultName defaultParameter,
+ @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> listByRedisResourceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByRedisResourceSinglePageAsync(
+ 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
+ .listByRedisResource(
+ 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 patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByRedisResourceSinglePageAsync(
+ 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
+ .listByRedisResource(
+ 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 patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByRedisResourceAsync(String resourceGroupName, String cacheName) {
+ return new PagedFlux<>(
+ () -> listByRedisResourceSinglePageAsync(resourceGroupName, cacheName),
+ nextLink -> listByRedisResourceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByRedisResourceAsync(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedFlux<>(
+ () -> listByRedisResourceSinglePageAsync(resourceGroupName, cacheName, context),
+ nextLink -> listByRedisResourceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByRedisResource(String resourceGroupName, String cacheName) {
+ return new PagedIterable<>(listByRedisResourceAsync(resourceGroupName, cacheName));
+ }
+
+ /**
+ * Gets all patch schedules in the specified redis cache (there is only one).
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 patch schedules in the specified redis cache (there is only one) as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByRedisResource(
+ String resourceGroupName, String cacheName, Context context) {
+ return new PagedIterable<>(listByRedisResourceAsync(resourceGroupName, cacheName, context));
+ }
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String name, DefaultName defaultParameter, RedisPatchScheduleInner 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String name,
+ DefaultName defaultParameter,
+ RedisPatchScheduleInner 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String name, DefaultName defaultParameter, RedisPatchScheduleInner parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, name, defaultParameter, parameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String name,
+ DefaultName defaultParameter,
+ RedisPatchScheduleInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, name, defaultParameter, parameters, context).block();
+ }
+
+ /**
+ * Create or replace the patching schedule for Redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public RedisPatchScheduleInner createOrUpdate(
+ String resourceGroupName, String name, DefaultName defaultParameter, RedisPatchScheduleInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, name, defaultParameter, parameters, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, DefaultName defaultParameter) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, DefaultName defaultParameter, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, DefaultName defaultParameter) {
+ return deleteWithResponseAsync(resourceGroupName, name, defaultParameter).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, DefaultName defaultParameter, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, name, defaultParameter, context).block();
+ }
+
+ /**
+ * Deletes the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 name, DefaultName defaultParameter) {
+ deleteWithResponse(resourceGroupName, name, defaultParameter, Context.NONE);
+ }
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String name, DefaultName defaultParameter) {
+ 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String name, DefaultName defaultParameter, 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 (name == null) {
+ return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null."));
+ }
+ if (defaultParameter == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter defaultParameter 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,
+ name,
+ defaultParameter,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String name, DefaultName defaultParameter) {
+ return getWithResponseAsync(resourceGroupName, name, defaultParameter)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public Response getWithResponse(
+ String resourceGroupName, String name, DefaultName defaultParameter, Context context) {
+ return getWithResponseAsync(resourceGroupName, name, defaultParameter, context).block();
+ }
+
+ /**
+ * Gets the patching schedule of a redis cache.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @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 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)
+ public RedisPatchScheduleInner get(String resourceGroupName, String name, DefaultName defaultParameter) {
+ return getWithResponse(resourceGroupName, name, defaultParameter, Context.NONE).getValue();
+ }
+
+ /**
+ * 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 patch schedules Redis operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByRedisResourceNextSinglePageAsync(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.listByRedisResourceNext(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 patch schedules Redis operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByRedisResourceNextSinglePageAsync(
+ 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
+ .listByRedisResourceNext(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/PatchSchedulesImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PatchSchedulesImpl.java
new file mode 100644
index 0000000000000..70c8baa125843
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PatchSchedulesImpl.java
@@ -0,0 +1,200 @@
+// 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.PatchSchedulesClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.RedisPatchScheduleInner;
+import com.azure.resourcemanager.redis.generated.models.DefaultName;
+import com.azure.resourcemanager.redis.generated.models.PatchSchedules;
+import com.azure.resourcemanager.redis.generated.models.RedisPatchSchedule;
+
+public final class PatchSchedulesImpl implements PatchSchedules {
+ private static final ClientLogger LOGGER = new ClientLogger(PatchSchedulesImpl.class);
+
+ private final PatchSchedulesClient innerClient;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public PatchSchedulesImpl(
+ PatchSchedulesClient innerClient, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByRedisResource(String resourceGroupName, String cacheName) {
+ PagedIterable inner =
+ this.serviceClient().listByRedisResource(resourceGroupName, cacheName);
+ return Utils.mapPage(inner, inner1 -> new RedisPatchScheduleImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByRedisResource(
+ String resourceGroupName, String cacheName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByRedisResource(resourceGroupName, cacheName, context);
+ return Utils.mapPage(inner, inner1 -> new RedisPatchScheduleImpl(inner1, this.manager()));
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String name, DefaultName defaultParameter, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, name, defaultParameter, context);
+ }
+
+ public void delete(String resourceGroupName, String name, DefaultName defaultParameter) {
+ this.serviceClient().delete(resourceGroupName, name, defaultParameter);
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String name, DefaultName defaultParameter, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, name, defaultParameter, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new RedisPatchScheduleImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public RedisPatchSchedule get(String resourceGroupName, String name, DefaultName defaultParameter) {
+ RedisPatchScheduleInner inner = this.serviceClient().get(resourceGroupName, name, defaultParameter);
+ if (inner != null) {
+ return new RedisPatchScheduleImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public RedisPatchSchedule 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String defaultParameterLocal = Utils.getValueFromIdByName(id, "patchSchedules");
+ if (defaultParameterLocal == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'patchSchedules'.", id)));
+ }
+ DefaultName defaultParameter = DefaultName.fromString(defaultParameterLocal);
+ return this.getWithResponse(resourceGroupName, name, defaultParameter, 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String defaultParameterLocal = Utils.getValueFromIdByName(id, "patchSchedules");
+ if (defaultParameterLocal == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'patchSchedules'.", id)));
+ }
+ DefaultName defaultParameter = DefaultName.fromString(defaultParameterLocal);
+ return this.getWithResponse(resourceGroupName, name, defaultParameter, 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String defaultParameterLocal = Utils.getValueFromIdByName(id, "patchSchedules");
+ if (defaultParameterLocal == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'patchSchedules'.", id)));
+ }
+ DefaultName defaultParameter = DefaultName.fromString(defaultParameterLocal);
+ this.deleteWithResponse(resourceGroupName, name, defaultParameter, Context.NONE);
+ }
+
+ public Response 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 name = Utils.getValueFromIdByName(id, "redis");
+ if (name == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'redis'.", id)));
+ }
+ String defaultParameterLocal = Utils.getValueFromIdByName(id, "patchSchedules");
+ if (defaultParameterLocal == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'patchSchedules'.", id)));
+ }
+ DefaultName defaultParameter = DefaultName.fromString(defaultParameterLocal);
+ return this.deleteWithResponse(resourceGroupName, name, defaultParameter, context);
+ }
+
+ private PatchSchedulesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+
+ public RedisPatchScheduleImpl define(DefaultName name) {
+ return new RedisPatchScheduleImpl(name, this.manager());
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionImpl.java
new file mode 100644
index 0000000000000..0d69e6a965964
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionImpl.java
@@ -0,0 +1,154 @@
+// 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.util.Context;
+import com.azure.resourcemanager.redis.generated.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.redis.generated.models.PrivateLinkServiceConnectionState;
+
+public final class PrivateEndpointConnectionImpl
+ implements PrivateEndpointConnection, PrivateEndpointConnection.Definition, PrivateEndpointConnection.Update {
+ private PrivateEndpointConnectionInner innerObject;
+
+ private final com.azure.resourcemanager.redis.generated.RedisManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerModel().privateEndpoint();
+ }
+
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerModel().privateLinkServiceConnectionState();
+ }
+
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public PrivateEndpointConnectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.redis.generated.RedisManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String cacheName;
+
+ private String privateEndpointConnectionName;
+
+ public PrivateEndpointConnectionImpl withExistingRedi(String resourceGroupName, String cacheName) {
+ this.resourceGroupName = resourceGroupName;
+ this.cacheName = cacheName;
+ return this;
+ }
+
+ public PrivateEndpointConnection create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .put(resourceGroupName, cacheName, privateEndpointConnectionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public PrivateEndpointConnection create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .put(resourceGroupName, cacheName, privateEndpointConnectionName, this.innerModel(), context);
+ return this;
+ }
+
+ PrivateEndpointConnectionImpl(String name, com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerObject = new PrivateEndpointConnectionInner();
+ this.serviceManager = serviceManager;
+ this.privateEndpointConnectionName = name;
+ }
+
+ public PrivateEndpointConnectionImpl update() {
+ return this;
+ }
+
+ public PrivateEndpointConnection apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .put(resourceGroupName, cacheName, privateEndpointConnectionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public PrivateEndpointConnection apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .put(resourceGroupName, cacheName, privateEndpointConnectionName, this.innerModel(), context);
+ return this;
+ }
+
+ PrivateEndpointConnectionImpl(
+ PrivateEndpointConnectionInner innerObject,
+ com.azure.resourcemanager.redis.generated.RedisManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.cacheName = Utils.getValueFromIdByName(innerObject.id(), "redis");
+ this.privateEndpointConnectionName = Utils.getValueFromIdByName(innerObject.id(), "privateEndpointConnections");
+ }
+
+ public PrivateEndpointConnection refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .getWithResponse(resourceGroupName, cacheName, privateEndpointConnectionName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public PrivateEndpointConnection refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .getWithResponse(resourceGroupName, cacheName, privateEndpointConnectionName, context)
+ .getValue();
+ return this;
+ }
+
+ public PrivateEndpointConnectionImpl withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.innerModel().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ public PrivateEndpointConnectionImpl withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.innerModel().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+}
diff --git a/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionsClientImpl.java
new file mode 100644
index 0000000000000..0d114fb18484b
--- /dev/null
+++ b/sdk/redis/azure-resourcemanager-redis-generated/src/main/java/com/azure/resourcemanager/redis/generated/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -0,0 +1,983 @@
+// 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.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.redis.generated.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.redis.generated.models.PrivateEndpointConnectionListResult;
+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 PrivateEndpointConnectionsClient. */
+public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient {
+ /** The proxy service used to perform REST calls. */
+ private final PrivateEndpointConnectionsService service;
+
+ /** The service client containing this operation class. */
+ private final RedisManagementClientImpl client;
+
+ /**
+ * Initializes an instance of PrivateEndpointConnectionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PrivateEndpointConnectionsClientImpl(RedisManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ PrivateEndpointConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RedisManagementClientPrivateEndpointConnections to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "RedisManagementClien")
+ public interface PrivateEndpointConnectionsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections")
+ @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(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cacheName") String cacheName,
+ @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono