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 EventHubs service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the EventHubs service API instance.
+ */
+ public EventHubsManager 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.eventhubs.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 EventHubsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Clusters. */
+ public Clusters clusters() {
+ if (this.clusters == null) {
+ this.clusters = new ClustersImpl(clientObject.getClusters(), this);
+ }
+ return clusters;
+ }
+
+ /** @return Resource collection API of Configurations. */
+ public Configurations configurations() {
+ if (this.configurations == null) {
+ this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);
+ }
+ return configurations;
+ }
+
+ /** @return Resource collection API of Namespaces. */
+ public Namespaces namespaces() {
+ if (this.namespaces == null) {
+ this.namespaces = new NamespacesImpl(clientObject.getNamespaces(), this);
+ }
+ return namespaces;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of PrivateLinkResources. */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of EventHubs. */
+ public EventHubs eventHubs() {
+ if (this.eventHubs == null) {
+ this.eventHubs = new EventHubsImpl(clientObject.getEventHubs(), this);
+ }
+ return eventHubs;
+ }
+
+ /** @return Resource collection API of DisasterRecoveryConfigs. */
+ public DisasterRecoveryConfigs disasterRecoveryConfigs() {
+ if (this.disasterRecoveryConfigs == null) {
+ this.disasterRecoveryConfigs =
+ new DisasterRecoveryConfigsImpl(clientObject.getDisasterRecoveryConfigs(), this);
+ }
+ return disasterRecoveryConfigs;
+ }
+
+ /** @return Resource collection API of ConsumerGroups. */
+ public ConsumerGroups consumerGroups() {
+ if (this.consumerGroups == null) {
+ this.consumerGroups = new ConsumerGroupsImpl(clientObject.getConsumerGroups(), this);
+ }
+ return consumerGroups;
+ }
+
+ /** @return Resource collection API of SchemaRegistries. */
+ public SchemaRegistries schemaRegistries() {
+ if (this.schemaRegistries == null) {
+ this.schemaRegistries = new SchemaRegistriesImpl(clientObject.getSchemaRegistries(), this);
+ }
+ return schemaRegistries;
+ }
+
+ /**
+ * @return Wrapped service client EventHubManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public EventHubManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ClustersClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ClustersClient.java
new file mode 100644
index 000000000000..8d7ceeb06032
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ClustersClient.java
@@ -0,0 +1,316 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.AvailableClustersListInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ClusterInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.EHNamespaceIdListResultInner;
+
+/** An instance of this class provides access to all the operations defined in ClustersClient. */
+public interface ClustersClient {
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @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 the List Available Clusters operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AvailableClustersListInner listAvailableClusterRegion();
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of the List Available Clusters operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listAvailableClusterRegionWithResponse(Context context);
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM 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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure 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 the response of the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster 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 {@link SyncPoller} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginCreateOrUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters);
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster 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 SyncPoller} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginCreateOrUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster 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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters);
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster 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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters);
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner update(String resourceGroupName, String clusterName, ClusterInner parameters);
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner update(String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName);
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName, Context context);
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName);
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName, Context context);
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EHNamespaceIdListResultInner listNamespaces(String resourceGroupName, String clusterName);
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listNamespacesWithResponse(
+ String resourceGroupName, String clusterName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConfigurationsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConfigurationsClient.java
new file mode 100644
index 000000000000..c4405f05845f
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConfigurationsClient.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.ClusterQuotaConfigurationPropertiesInner;
+
+/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
+public interface ConfigurationsClient {
+ /**
+ * Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
+ * not specified in the request body unmodified.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating an Event Hubs Cluster 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 contains all settings for the cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterQuotaConfigurationPropertiesInner patch(
+ String resourceGroupName, String clusterName, ClusterQuotaConfigurationPropertiesInner parameters);
+
+ /**
+ * Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings
+ * not specified in the request body unmodified.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating an Event Hubs Cluster 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 contains all settings for the cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response patchWithResponse(
+ String resourceGroupName,
+ String clusterName,
+ ClusterQuotaConfigurationPropertiesInner parameters,
+ Context context);
+
+ /**
+ * Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
+ * imposed on the cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
+ * imposed on the cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterQuotaConfigurationPropertiesInner get(String resourceGroupName, String clusterName);
+
+ /**
+ * Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
+ * imposed on the cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings
+ * imposed on the cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String clusterName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConsumerGroupsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConsumerGroupsClient.java
new file mode 100644
index 000000000000..13fcb6d0da9b
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ConsumerGroupsClient.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.ConsumerGroupInner;
+
+/** An instance of this class provides access to all the operations defined in ConsumerGroupsClient. */
+public interface ConsumerGroupsClient {
+ /**
+ * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @param parameters Parameters supplied to create or update a consumer group 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 single item in List or Get Consumer group operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConsumerGroupInner createOrUpdate(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String consumerGroupName,
+ ConsumerGroupInner parameters);
+
+ /**
+ * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @param parameters Parameters supplied to create or update a consumer group 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 single item in List or Get Consumer group operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String consumerGroupName,
+ ConsumerGroupInner parameters,
+ Context context);
+
+ /**
+ * Deletes a consumer group from the specified Event Hub and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @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 namespaceName, String eventHubName, String consumerGroupName);
+
+ /**
+ * Deletes a consumer group from the specified Event Hub and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @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 namespaceName, String eventHubName, String consumerGroupName, Context context);
+
+ /**
+ * Gets a description for the specified consumer group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @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 description for the specified consumer group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConsumerGroupInner get(
+ String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName);
+
+ /**
+ * Gets a description for the specified consumer group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param consumerGroupName The consumer group name.
+ * @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 description for the specified consumer group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName, Context context);
+
+ /**
+ * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the
+ * Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 the consumer groups in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEventHub(
+ String resourceGroupName, String namespaceName, String eventHubName);
+
+ /**
+ * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the
+ * Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @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 the consumer groups in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEventHub(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ Integer skip,
+ Integer top,
+ Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/DisasterRecoveryConfigsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/DisasterRecoveryConfigsClient.java
new file mode 100644
index 000000000000..d7f699fb86c3
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/DisasterRecoveryConfigsClient.java
@@ -0,0 +1,326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AuthorizationRuleInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.eventhubs.generated.models.CheckNameAvailabilityParameter;
+
+/** An instance of this class provides access to all the operations defined in DisasterRecoveryConfigsClient. */
+public interface DisasterRecoveryConfigsClient {
+ /**
+ * Check the give Namespace name availability.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters to check availability of the given Alias name.
+ * @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 Result of the CheckNameAvailability operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(
+ String resourceGroupName, String namespaceName, CheckNameAvailabilityParameter parameters);
+
+ /**
+ * Check the give Namespace name availability.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters to check availability of the given Alias name.
+ * @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 Result of the CheckNameAvailability operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName, String namespaceName, CheckNameAvailabilityParameter parameters, Context context);
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 Alias(Disaster Recovery configurations) as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @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 single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmDisasterRecoveryInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String alias, ArmDisasterRecoveryInner parameters);
+
+ /**
+ * Creates or updates a new Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param parameters Parameters required to create an Alias(Disaster Recovery configuration).
+ * @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 single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String alias,
+ ArmDisasterRecoveryInner parameters,
+ Context context);
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 namespaceName, String alias);
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 namespaceName, String alias, Context context);
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmDisasterRecoveryInner get(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 single item in List or Get Alias(Disaster Recovery configuration) operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 breakPairing(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 breakPairingWithResponse(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 failOver(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 failOverWithResponse(String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 list of authorization rules for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @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 list of authorization rules for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String alias, Context context);
+
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for a Namespace by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for a Namespace by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 primary and secondary connection strings for the Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param alias The Disaster Recovery configuration name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 primary and secondary connection strings for the Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String alias, String authorizationRuleName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubManagementClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubManagementClient.java
new file mode 100644
index 000000000000..c4f0cf1577b6
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubManagementClient.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for EventHubManagementClient class. */
+public interface EventHubManagementClient {
+ /**
+ * Gets Subscription credentials that uniquely identify a 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 ClustersClient object to access its operations.
+ *
+ * @return the ClustersClient object.
+ */
+ ClustersClient getClusters();
+
+ /**
+ * Gets the ConfigurationsClient object to access its operations.
+ *
+ * @return the ConfigurationsClient object.
+ */
+ ConfigurationsClient getConfigurations();
+
+ /**
+ * Gets the NamespacesClient object to access its operations.
+ *
+ * @return the NamespacesClient object.
+ */
+ NamespacesClient getNamespaces();
+
+ /**
+ * 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 OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the EventHubsClient object to access its operations.
+ *
+ * @return the EventHubsClient object.
+ */
+ EventHubsClient getEventHubs();
+
+ /**
+ * Gets the DisasterRecoveryConfigsClient object to access its operations.
+ *
+ * @return the DisasterRecoveryConfigsClient object.
+ */
+ DisasterRecoveryConfigsClient getDisasterRecoveryConfigs();
+
+ /**
+ * Gets the ConsumerGroupsClient object to access its operations.
+ *
+ * @return the ConsumerGroupsClient object.
+ */
+ ConsumerGroupsClient getConsumerGroups();
+
+ /**
+ * Gets the SchemaRegistriesClient object to access its operations.
+ *
+ * @return the SchemaRegistriesClient object.
+ */
+ SchemaRegistriesClient getSchemaRegistries();
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubsClient.java
new file mode 100644
index 000000000000..31eaf48725e9
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubsClient.java
@@ -0,0 +1,373 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AuthorizationRuleInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.EventhubInner;
+import com.azure.resourcemanager.eventhubs.generated.models.RegenerateAccessKeyParameters;
+
+/** An instance of this class provides access to all the operations defined in EventHubsClient. */
+public interface EventHubsClient {
+ /**
+ * Gets all the Event Hubs in a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 the Event Hubs in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all the Event Hubs in a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @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 the Event Hubs in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context);
+
+ /**
+ * Creates or updates a new Event Hub as a nested resource within a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param parameters Parameters supplied to create an Event Hub 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 single item in List or Get Event Hub operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EventhubInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters);
+
+ /**
+ * Creates or updates a new Event Hub as a nested resource within a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param parameters Parameters supplied to create an Event Hub 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 single item in List or Get Event Hub operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String namespaceName, String eventHubName, EventhubInner parameters, Context context);
+
+ /**
+ * Deletes an Event Hub from the specified Namespace and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 namespaceName, String eventHubName);
+
+ /**
+ * Deletes an Event Hub from the specified Namespace and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 namespaceName, String eventHubName, Context context);
+
+ /**
+ * Gets an Event Hubs description for the specified Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 an Event Hubs description for the specified Event Hub.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EventhubInner get(String resourceGroupName, String namespaceName, String eventHubName);
+
+ /**
+ * Gets an Event Hubs description for the specified Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 an Event Hubs description for the specified Event Hub along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String eventHubName, Context context);
+
+ /**
+ * Gets the authorization rules for an Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 authorization rules for an Event Hub as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String eventHubName);
+
+ /**
+ * Gets the authorization rules for an Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @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 authorization rules for an Event Hub as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, String eventHubName, Context context);
+
+ /**
+ * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule
+ * will take a few seconds to take effect.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access AuthorizationRule.
+ * @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 single item in a List or Get AuthorizationRule operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner createOrUpdateAuthorizationRule(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ AuthorizationRuleInner parameters);
+
+ /**
+ * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule
+ * will take a few seconds to take effect.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access AuthorizationRule.
+ * @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 single item in a List or Get AuthorizationRule operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ AuthorizationRuleInner parameters,
+ Context context);
+
+ /**
+ * Gets an AuthorizationRule for an Event Hub by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for an Event Hub by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Gets an AuthorizationRule for an Event Hub by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for an Event Hub by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Deletes an Event Hub AuthorizationRule.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 deleteAuthorizationRule(
+ String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Deletes an Event Hub AuthorizationRule.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 deleteAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Gets the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 ACS and SAS connection strings for the Event Hub.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(
+ String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Gets the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 ACS and SAS connection strings for the Event Hub along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ Context context);
+
+ /**
+ * Regenerates the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
+ * @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 namespace/EventHub Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
+
+ /**
+ * Regenerates the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param eventHubName The Event Hub name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
+ * @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 namespace/EventHub Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String eventHubName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters,
+ Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NamespacesClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NamespacesClient.java
new file mode 100644
index 000000000000..9e1e4415c374
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NamespacesClient.java
@@ -0,0 +1,559 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AuthorizationRuleInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.EHNamespaceInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.NetworkRuleSetInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.NetworkRuleSetListResultInner;
+import com.azure.resourcemanager.eventhubs.generated.models.CheckNameAvailabilityParameter;
+import com.azure.resourcemanager.eventhubs.generated.models.RegenerateAccessKeyParameters;
+
+/** An instance of this class provides access to all the operations defined in NamespacesClient. */
+public interface NamespacesClient {
+ /**
+ * Lists all the available Namespaces within a subscription, irrespective of the resource groups.
+ *
+ * @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 the List Namespace operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the available Namespaces within a subscription, irrespective of the resource groups.
+ *
+ * @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 the List Namespace operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists the available Namespaces within a resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Namespace operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists the available Namespaces within a resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure 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 the response of the List Namespace operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for creating a namespace 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 {@link SyncPoller} for polling of single Namespace item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EHNamespaceInner> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for creating a namespace 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 SyncPoller} for polling of single Namespace item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EHNamespaceInner> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EHNamespaceInner createOrUpdate(String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for creating a namespace 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 single Namespace item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EHNamespaceInner createOrUpdate(
+ String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 namespaceName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 namespaceName, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 namespaceName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 namespaceName, Context context);
+
+ /**
+ * Gets the description of the specified namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 description of the specified namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EHNamespaceInner getByResourceGroup(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the description of the specified namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 description of the specified namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EHNamespaceInner update(String resourceGroupName, String namespaceName, EHNamespaceInner parameters);
+
+ /**
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is
+ * idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters Parameters for updating a namespace 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 single Namespace item in List or Get Operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context);
+
+ /**
+ * Create or update NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters The Namespace IpFilterRule.
+ * @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 description of topic resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkRuleSetInner createOrUpdateNetworkRuleSet(
+ String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters);
+
+ /**
+ * Create or update NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param parameters The Namespace IpFilterRule.
+ * @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 description of topic resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateNetworkRuleSetWithResponse(
+ String resourceGroupName, String namespaceName, NetworkRuleSetInner parameters, Context context);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 networkRuleSet for a Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkRuleSetInner getNetworkRuleSet(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 networkRuleSet for a Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getNetworkRuleSetWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 networkRuleSet for a Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkRuleSetListResultInner listNetworkRuleSet(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets NetworkRuleSet for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 networkRuleSet for a Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listNetworkRuleSetWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 list of authorization rules for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 list of authorization rules for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAuthorizationRules(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates an AuthorizationRule for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access AuthorizationRule.
+ * @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 single item in a List or Get AuthorizationRule operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner createOrUpdateAuthorizationRule(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ AuthorizationRuleInner parameters);
+
+ /**
+ * Creates or updates an AuthorizationRule for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters The shared access AuthorizationRule.
+ * @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 single item in a List or Get AuthorizationRule operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateAuthorizationRuleWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ AuthorizationRuleInner parameters,
+ Context context);
+
+ /**
+ * Deletes an AuthorizationRule for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Deletes an AuthorizationRule for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 deleteAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for a Namespace by rule name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AuthorizationRuleInner getAuthorizationRule(
+ String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 an AuthorizationRule for a Namespace by rule name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAuthorizationRuleWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 primary and secondary connection strings for the Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner listKeys(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @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 primary and secondary connection strings for the Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName, String namespaceName, String authorizationRuleName, Context context);
+
+ /**
+ * Regenerates the primary or secondary connection strings for the specified Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters required to regenerate the connection string.
+ * @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 namespace/EventHub Connection String.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessKeysInner regenerateKeys(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters);
+
+ /**
+ * Regenerates the primary or secondary connection strings for the specified Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters required to regenerate the connection string.
+ * @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 namespace/EventHub Connection String along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response regenerateKeysWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String authorizationRuleName,
+ RegenerateAccessKeyParameters parameters,
+ Context context);
+
+ /**
+ * Check the give Namespace name availability.
+ *
+ * @param parameters Parameters to check availability of the given Namespace name.
+ * @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 Result of the CheckNameAvailability operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailabilityParameter parameters);
+
+ /**
+ * Check the give Namespace name availability.
+ *
+ * @param parameters Parameters to check availability of the given Namespace name.
+ * @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 Result of the CheckNameAvailability operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ CheckNameAvailabilityParameter parameters, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/OperationsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..b02264d6caa1
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/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.eventhubs.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.eventhubs.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 Event Hub REST API operations.
+ *
+ * @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 Event Hub operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Event Hub REST API operations.
+ *
+ * @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 Event Hub operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..d4b01c2713cd
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 available PrivateEndpointConnections within a namespace as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 available PrivateEndpointConnections within a namespace as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace 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 properties of the PrivateEndpointConnection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String namespaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Creates or updates PrivateEndpointConnections of service namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace 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 properties of the PrivateEndpointConnection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters,
+ Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 namespaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 namespaceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets a description for the specified Private Endpoint Connection name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 description for the specified Private Endpoint Connection name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Gets a description for the specified Private Endpoint Connection name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name.
+ * @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 description for the specified Private Endpoint Connection name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String privateEndpointConnectionName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateLinkResourcesClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..e48507af1b05
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.PrivateLinkResourcesListResultInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets lists of resources that supports Privatelinks.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 lists of resources that supports Privatelinks.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourcesListResultInner get(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets lists of resources that supports Privatelinks.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 lists of resources that supports Privatelinks along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/SchemaRegistriesClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/SchemaRegistriesClient.java
new file mode 100644
index 000000000000..e08099bdd225
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/SchemaRegistriesClient.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.eventhubs.generated.fluent.models.SchemaGroupInner;
+
+/** An instance of this class provides access to all the operations defined in SchemaRegistriesClient. */
+public interface SchemaRegistriesClient {
+ /**
+ * Gets all the Schema Groups in a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @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 the Schema Groups in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets all the Schema Groups in a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param skip Skip is only used if a previous operation returned a partial result. If a previous response contains
+ * a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting
+ * point to use for subsequent calls.
+ * @param top May be used to limit the number of results to the most recent N usageDetails.
+ * @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 the Schema Groups in a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Integer skip, Integer top, Context context);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @param parameters Parameters supplied to create an Event Hub 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 single item in List or Get Schema Group operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SchemaGroupInner createOrUpdate(
+ String resourceGroupName, String namespaceName, String schemaGroupName, SchemaGroupInner parameters);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @param parameters Parameters supplied to create an Event Hub 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 single item in List or Get Schema Group operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String schemaGroupName,
+ SchemaGroupInner parameters,
+ Context context);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @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 namespaceName, String schemaGroupName);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @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 namespaceName, String schemaGroupName, Context context);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @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 single item in List or Get Schema Group operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SchemaGroupInner get(String resourceGroupName, String namespaceName, String schemaGroupName);
+
+ /**
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param schemaGroupName The Schema Group name.
+ * @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 single item in List or Get Schema Group operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String schemaGroupName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AccessKeysInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AccessKeysInner.java
new file mode 100644
index 000000000000..393fa80ae23c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AccessKeysInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Namespace/EventHub Connection String. */
+@Immutable
+public final class AccessKeysInner {
+ /*
+ * Primary connection string of the created namespace AuthorizationRule.
+ */
+ @JsonProperty(value = "primaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryConnectionString;
+
+ /*
+ * Secondary connection string of the created namespace AuthorizationRule.
+ */
+ @JsonProperty(value = "secondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryConnectionString;
+
+ /*
+ * Primary connection string of the alias if GEO DR is enabled
+ */
+ @JsonProperty(value = "aliasPrimaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasPrimaryConnectionString;
+
+ /*
+ * Secondary connection string of the alias if GEO DR is enabled
+ */
+ @JsonProperty(value = "aliasSecondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasSecondaryConnectionString;
+
+ /*
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryKey;
+
+ /*
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryKey;
+
+ /*
+ * A string that describes the AuthorizationRule.
+ */
+ @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY)
+ private String keyName;
+
+ /**
+ * Get the primaryConnectionString property: Primary connection string of the created namespace AuthorizationRule.
+ *
+ * @return the primaryConnectionString value.
+ */
+ public String primaryConnectionString() {
+ return this.primaryConnectionString;
+ }
+
+ /**
+ * Get the secondaryConnectionString property: Secondary connection string of the created namespace
+ * AuthorizationRule.
+ *
+ * @return the secondaryConnectionString value.
+ */
+ public String secondaryConnectionString() {
+ return this.secondaryConnectionString;
+ }
+
+ /**
+ * Get the aliasPrimaryConnectionString property: Primary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasPrimaryConnectionString value.
+ */
+ public String aliasPrimaryConnectionString() {
+ return this.aliasPrimaryConnectionString;
+ }
+
+ /**
+ * Get the aliasSecondaryConnectionString property: Secondary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasSecondaryConnectionString value.
+ */
+ public String aliasSecondaryConnectionString() {
+ return this.aliasSecondaryConnectionString;
+ }
+
+ /**
+ * Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the primaryKey value.
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the secondaryKey value.
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+ /**
+ * Get the keyName property: A string that describes the AuthorizationRule.
+ *
+ * @return the keyName value.
+ */
+ public String keyName() {
+ return this.keyName;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryInner.java
new file mode 100644
index 000000000000..ad2d9e683cce
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryInner.java
@@ -0,0 +1,151 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.eventhubs.generated.models.RoleDisasterRecovery;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Single item in List or Get Alias(Disaster Recovery configuration) operation. */
+@Fluent
+public final class ArmDisasterRecoveryInner extends ProxyResource {
+ /*
+ * Properties required to the Create Or Update Alias(Disaster Recovery
+ * configurations)
+ */
+ @JsonProperty(value = "properties")
+ private ArmDisasterRecoveryProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties required to the Create Or Update Alias(Disaster Recovery
+ * configurations).
+ *
+ * @return the innerProperties value.
+ */
+ private ArmDisasterRecoveryProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible
+ * values 'Accepted' or 'Succeeded' or 'Failed'.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateDR provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @return the partnerNamespace value.
+ */
+ public String partnerNamespace() {
+ return this.innerProperties() == null ? null : this.innerProperties().partnerNamespace();
+ }
+
+ /**
+ * Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @param partnerNamespace the partnerNamespace value to set.
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArmDisasterRecoveryProperties();
+ }
+ this.innerProperties().withPartnerNamespace(partnerNamespace);
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateName();
+ }
+
+ /**
+ * Set the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withAlternateName(String alternateName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArmDisasterRecoveryProperties();
+ }
+ this.innerProperties().withAlternateName(alternateName);
+ return this;
+ }
+
+ /**
+ * Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or
+ * 'Secondary'.
+ *
+ * @return the role value.
+ */
+ public RoleDisasterRecovery role() {
+ return this.innerProperties() == null ? null : this.innerProperties().role();
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().pendingReplicationOperationsCount();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryProperties.java
new file mode 100644
index 000000000000..6826c6d27aa1
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ArmDisasterRecoveryProperties.java
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.eventhubs.generated.models.RoleDisasterRecovery;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties required to the Create Or Update Alias(Disaster Recovery configurations). */
+@Fluent
+public final class ArmDisasterRecoveryProperties {
+ /*
+ * Provisioning state of the Alias(Disaster Recovery configuration) -
+ * possible values 'Accepted' or 'Succeeded' or 'Failed'
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateDR provisioningState;
+
+ /*
+ * ARM Id of the Primary/Secondary eventhub namespace name, which is part
+ * of GEO DR pairing
+ */
+ @JsonProperty(value = "partnerNamespace")
+ private String partnerNamespace;
+
+ /*
+ * Alternate name specified when alias and namespace names are same.
+ */
+ @JsonProperty(value = "alternateName")
+ private String alternateName;
+
+ /*
+ * role of namespace in GEO DR - possible values 'Primary' or
+ * 'PrimaryNotReplicating' or 'Secondary'
+ */
+ @JsonProperty(value = "role", access = JsonProperty.Access.WRITE_ONLY)
+ private RoleDisasterRecovery role;
+
+ /*
+ * Number of entities pending to be replicated.
+ */
+ @JsonProperty(value = "pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long pendingReplicationOperationsCount;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible
+ * values 'Accepted' or 'Succeeded' or 'Failed'.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateDR provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @return the partnerNamespace value.
+ */
+ public String partnerNamespace() {
+ return this.partnerNamespace;
+ }
+
+ /**
+ * Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO
+ * DR pairing.
+ *
+ * @param partnerNamespace the partnerNamespace value to set.
+ * @return the ArmDisasterRecoveryProperties object itself.
+ */
+ public ArmDisasterRecoveryProperties withPartnerNamespace(String partnerNamespace) {
+ this.partnerNamespace = partnerNamespace;
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the ArmDisasterRecoveryProperties object itself.
+ */
+ public ArmDisasterRecoveryProperties withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or
+ * 'Secondary'.
+ *
+ * @return the role value.
+ */
+ public RoleDisasterRecovery role() {
+ return this.role;
+ }
+
+ /**
+ * Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value.
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.pendingReplicationOperationsCount;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleInner.java
new file mode 100644
index 000000000000..c9ab836a6efb
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleInner.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessRights;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Single item in a List or Get AuthorizationRule operation. */
+@Fluent
+public final class AuthorizationRuleInner extends ProxyResource {
+ /*
+ * Properties supplied to create or update AuthorizationRule
+ */
+ @JsonProperty(value = "properties")
+ private AuthorizationRuleProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties supplied to create or update AuthorizationRule.
+ *
+ * @return the innerProperties value.
+ */
+ private AuthorizationRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the rights property: The rights associated with the rule.
+ *
+ * @return the rights value.
+ */
+ public List rights() {
+ return this.innerProperties() == null ? null : this.innerProperties().rights();
+ }
+
+ /**
+ * Set the rights property: The rights associated with the rule.
+ *
+ * @param rights the rights value to set.
+ * @return the AuthorizationRuleInner object itself.
+ */
+ public AuthorizationRuleInner withRights(List rights) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AuthorizationRuleProperties();
+ }
+ this.innerProperties().withRights(rights);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleProperties.java
new file mode 100644
index 000000000000..082cf66c60ab
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AuthorizationRuleProperties.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessRights;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties supplied to create or update AuthorizationRule. */
+@Fluent
+public final class AuthorizationRuleProperties {
+ /*
+ * The rights associated with the rule.
+ */
+ @JsonProperty(value = "rights", required = true)
+ private List rights;
+
+ /**
+ * Get the rights property: The rights associated with the rule.
+ *
+ * @return the rights value.
+ */
+ public List rights() {
+ return this.rights;
+ }
+
+ /**
+ * Set the rights property: The rights associated with the rule.
+ *
+ * @param rights the rights value to set.
+ * @return the AuthorizationRuleProperties object itself.
+ */
+ public AuthorizationRuleProperties withRights(List rights) {
+ this.rights = rights;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (rights() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property rights in model AuthorizationRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AuthorizationRuleProperties.class);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AvailableClustersListInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AvailableClustersListInner.java
new file mode 100644
index 000000000000..6ba4b34bddd2
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/AvailableClustersListInner.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.AvailableCluster;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response of the List Available Clusters operation. */
+@Fluent
+public final class AvailableClustersListInner {
+ /*
+ * The count of readily available and pre-provisioned Event Hubs Clusters
+ * per region.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The count of readily available and pre-provisioned Event Hubs Clusters per region.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The count of readily available and pre-provisioned Event Hubs Clusters per region.
+ *
+ * @param value the value value to set.
+ * @return the AvailableClustersListInner object itself.
+ */
+ public AvailableClustersListInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/CheckNameAvailabilityResultInner.java
new file mode 100644
index 000000000000..7ebb8f6bd353
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/CheckNameAvailabilityResultInner.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.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.UnavailableReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Result of the CheckNameAvailability operation. */
+@Fluent
+public final class CheckNameAvailabilityResultInner {
+ /*
+ * The detailed info regarding the reason associated with the Namespace.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /*
+ * Value indicating Namespace is availability, true if the Namespace is
+ * available; otherwise, false.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason for unavailability of a Namespace.
+ */
+ @JsonProperty(value = "reason")
+ private UnavailableReason reason;
+
+ /**
+ * Get the message property: The detailed info regarding the reason associated with the Namespace.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the nameAvailable property: Value indicating Namespace is availability, true if the Namespace is available;
+ * otherwise, false.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Value indicating Namespace is availability, true if the Namespace is available;
+ * otherwise, false.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason for unavailability of a Namespace.
+ *
+ * @return the reason value.
+ */
+ public UnavailableReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason for unavailability of a Namespace.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterInner.java
new file mode 100644
index 000000000000..a1f1308d6f67
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterInner.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterSku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Single Event Hubs Cluster resource in List or Get operations. */
+@Fluent
+public final class ClusterInner extends Resource {
+ /*
+ * Properties of the cluster SKU.
+ */
+ @JsonProperty(value = "sku")
+ private ClusterSku sku;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Event Hubs Cluster properties supplied in responses in List or Get
+ * operations.
+ */
+ @JsonProperty(value = "properties")
+ private ClusterProperties innerProperties;
+
+ /**
+ * Get the sku property: Properties of the cluster SKU.
+ *
+ * @return the sku value.
+ */
+ public ClusterSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Properties of the cluster SKU.
+ *
+ * @param sku the sku value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withSku(ClusterSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Event Hubs Cluster properties supplied in responses in List or Get operations.
+ *
+ * @return the innerProperties value.
+ */
+ private ClusterProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ClusterInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ClusterInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the createdAt property: The UTC time when the Event Hubs Cluster was created.
+ *
+ * @return the createdAt value.
+ */
+ public String createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.
+ *
+ * @return the updatedAt value.
+ */
+ public String updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the metricId property: The metric ID of the cluster resource. Provided by the service and not modifiable by
+ * the user.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricId();
+ }
+
+ /**
+ * Get the status property: Status of the Cluster resource.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterProperties.java
new file mode 100644
index 000000000000..dafb4fc50304
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterProperties.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Event Hubs Cluster properties supplied in responses in List or Get operations. */
+@Immutable
+public final class ClusterProperties {
+ /*
+ * The UTC time when the Event Hubs Cluster was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdAt;
+
+ /*
+ * The UTC time when the Event Hubs Cluster was last updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private String updatedAt;
+
+ /*
+ * The metric ID of the cluster resource. Provided by the service and not
+ * modifiable by the user.
+ */
+ @JsonProperty(value = "metricId", access = JsonProperty.Access.WRITE_ONLY)
+ private String metricId;
+
+ /*
+ * Status of the Cluster resource
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /**
+ * Get the createdAt property: The UTC time when the Event Hubs Cluster was created.
+ *
+ * @return the createdAt value.
+ */
+ public String createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The UTC time when the Event Hubs Cluster was last updated.
+ *
+ * @return the updatedAt value.
+ */
+ public String updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the metricId property: The metric ID of the cluster resource. Provided by the service and not modifiable by
+ * the user.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.metricId;
+ }
+
+ /**
+ * Get the status property: Status of the Cluster resource.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterQuotaConfigurationPropertiesInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterQuotaConfigurationPropertiesInner.java
new file mode 100644
index 000000000000..23e451b51720
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ClusterQuotaConfigurationPropertiesInner.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Contains all settings for the cluster. */
+@Fluent
+public final class ClusterQuotaConfigurationPropertiesInner {
+ /*
+ * All possible Cluster settings - a collection of key/value paired
+ * settings which apply to quotas and configurations imposed on the
+ * cluster.
+ */
+ @JsonProperty(value = "settings")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map settings;
+
+ /**
+ * Get the settings property: All possible Cluster settings - a collection of key/value paired settings which apply
+ * to quotas and configurations imposed on the cluster.
+ *
+ * @return the settings value.
+ */
+ public Map settings() {
+ return this.settings;
+ }
+
+ /**
+ * Set the settings property: All possible Cluster settings - a collection of key/value paired settings which apply
+ * to quotas and configurations imposed on the cluster.
+ *
+ * @param settings the settings value to set.
+ * @return the ClusterQuotaConfigurationPropertiesInner object itself.
+ */
+ public ClusterQuotaConfigurationPropertiesInner withSettings(Map settings) {
+ this.settings = settings;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupInner.java
new file mode 100644
index 000000000000..0835ebc0340a
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupInner.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Single item in List or Get Consumer group operation. */
+@Fluent
+public final class ConsumerGroupInner extends ProxyResource {
+ /*
+ * Single item in List or Get Consumer group operation
+ */
+ @JsonProperty(value = "properties")
+ private ConsumerGroupProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Single item in List or Get Consumer group operation.
+ *
+ * @return the innerProperties value.
+ */
+ private ConsumerGroupProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum
+ * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information
+ * also user-defined configuration settings can be stored.
+ *
+ * @return the userMetadata value.
+ */
+ public String userMetadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().userMetadata();
+ }
+
+ /**
+ * Set the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum
+ * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information
+ * also user-defined configuration settings can be stored.
+ *
+ * @param userMetadata the userMetadata value to set.
+ * @return the ConsumerGroupInner object itself.
+ */
+ public ConsumerGroupInner withUserMetadata(String userMetadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConsumerGroupProperties();
+ }
+ this.innerProperties().withUserMetadata(userMetadata);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupProperties.java
new file mode 100644
index 000000000000..c66a79e7c68c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ConsumerGroupProperties.java
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Single item in List or Get Consumer group operation. */
+@Fluent
+public final class ConsumerGroupProperties {
+ /*
+ * Exact time the message was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The exact time the message was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * User Metadata is a placeholder to store user-defined string data with
+ * maximum length 1024. e.g. it can be used to store descriptive data, such
+ * as list of teams and their contact information also user-defined
+ * configuration settings can be stored.
+ */
+ @JsonProperty(value = "userMetadata")
+ private String userMetadata;
+
+ /**
+ * Get the createdAt property: Exact time the message was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum
+ * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information
+ * also user-defined configuration settings can be stored.
+ *
+ * @return the userMetadata value.
+ */
+ public String userMetadata() {
+ return this.userMetadata;
+ }
+
+ /**
+ * Set the userMetadata property: User Metadata is a placeholder to store user-defined string data with maximum
+ * length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information
+ * also user-defined configuration settings can be stored.
+ *
+ * @param userMetadata the userMetadata value to set.
+ * @return the ConsumerGroupProperties object itself.
+ */
+ public ConsumerGroupProperties withUserMetadata(String userMetadata) {
+ this.userMetadata = userMetadata;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/DestinationProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/DestinationProperties.java
new file mode 100644
index 000000000000..fb6aee65603f
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/DestinationProperties.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Properties describing the storage account, blob container and archive name format for capture destination. */
+@Fluent
+public final class DestinationProperties {
+ /*
+ * Resource id of the storage account to be used to create the blobs
+ */
+ @JsonProperty(value = "storageAccountResourceId")
+ private String storageAccountResourceId;
+
+ /*
+ * Blob container Name
+ */
+ @JsonProperty(value = "blobContainer")
+ private String blobContainer;
+
+ /*
+ * Blob naming convention for archive, e.g.
+ * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.
+ * Here all the parameters (Namespace,EventHub .. etc) are mandatory
+ * irrespective of order
+ */
+ @JsonProperty(value = "archiveNameFormat")
+ private String archiveNameFormat;
+
+ /*
+ * Subscription Id of Azure Data Lake Store
+ */
+ @JsonProperty(value = "dataLakeSubscriptionId")
+ private UUID dataLakeSubscriptionId;
+
+ /*
+ * The Azure Data Lake Store name for the captured events
+ */
+ @JsonProperty(value = "dataLakeAccountName")
+ private String dataLakeAccountName;
+
+ /*
+ * The destination folder path for the captured events
+ */
+ @JsonProperty(value = "dataLakeFolderPath")
+ private String dataLakeFolderPath;
+
+ /**
+ * Get the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.
+ *
+ * @return the storageAccountResourceId value.
+ */
+ public String storageAccountResourceId() {
+ return this.storageAccountResourceId;
+ }
+
+ /**
+ * Set the storageAccountResourceId property: Resource id of the storage account to be used to create the blobs.
+ *
+ * @param storageAccountResourceId the storageAccountResourceId value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withStorageAccountResourceId(String storageAccountResourceId) {
+ this.storageAccountResourceId = storageAccountResourceId;
+ return this;
+ }
+
+ /**
+ * Get the blobContainer property: Blob container Name.
+ *
+ * @return the blobContainer value.
+ */
+ public String blobContainer() {
+ return this.blobContainer;
+ }
+
+ /**
+ * Set the blobContainer property: Blob container Name.
+ *
+ * @param blobContainer the blobContainer value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withBlobContainer(String blobContainer) {
+ this.blobContainer = blobContainer;
+ return this;
+ }
+
+ /**
+ * Get the archiveNameFormat property: Blob naming convention for archive, e.g.
+ * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters
+ * (Namespace,EventHub .. etc) are mandatory irrespective of order.
+ *
+ * @return the archiveNameFormat value.
+ */
+ public String archiveNameFormat() {
+ return this.archiveNameFormat;
+ }
+
+ /**
+ * Set the archiveNameFormat property: Blob naming convention for archive, e.g.
+ * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters
+ * (Namespace,EventHub .. etc) are mandatory irrespective of order.
+ *
+ * @param archiveNameFormat the archiveNameFormat value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withArchiveNameFormat(String archiveNameFormat) {
+ this.archiveNameFormat = archiveNameFormat;
+ return this;
+ }
+
+ /**
+ * Get the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.
+ *
+ * @return the dataLakeSubscriptionId value.
+ */
+ public UUID dataLakeSubscriptionId() {
+ return this.dataLakeSubscriptionId;
+ }
+
+ /**
+ * Set the dataLakeSubscriptionId property: Subscription Id of Azure Data Lake Store.
+ *
+ * @param dataLakeSubscriptionId the dataLakeSubscriptionId value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withDataLakeSubscriptionId(UUID dataLakeSubscriptionId) {
+ this.dataLakeSubscriptionId = dataLakeSubscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.
+ *
+ * @return the dataLakeAccountName value.
+ */
+ public String dataLakeAccountName() {
+ return this.dataLakeAccountName;
+ }
+
+ /**
+ * Set the dataLakeAccountName property: The Azure Data Lake Store name for the captured events.
+ *
+ * @param dataLakeAccountName the dataLakeAccountName value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withDataLakeAccountName(String dataLakeAccountName) {
+ this.dataLakeAccountName = dataLakeAccountName;
+ return this;
+ }
+
+ /**
+ * Get the dataLakeFolderPath property: The destination folder path for the captured events.
+ *
+ * @return the dataLakeFolderPath value.
+ */
+ public String dataLakeFolderPath() {
+ return this.dataLakeFolderPath;
+ }
+
+ /**
+ * Set the dataLakeFolderPath property: The destination folder path for the captured events.
+ *
+ * @param dataLakeFolderPath the dataLakeFolderPath value to set.
+ * @return the DestinationProperties object itself.
+ */
+ public DestinationProperties withDataLakeFolderPath(String dataLakeFolderPath) {
+ this.dataLakeFolderPath = dataLakeFolderPath;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceIdListResultInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceIdListResultInner.java
new file mode 100644
index 000000000000..bfe93d7b1522
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceIdListResultInner.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.EHNamespaceIdContainer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response of the List Namespace IDs operation. */
+@Fluent
+public final class EHNamespaceIdListResultInner {
+ /*
+ * Result of the List Namespace IDs operation
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Result of the List Namespace IDs operation.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Result of the List Namespace IDs operation.
+ *
+ * @param value the value value to set.
+ * @return the EHNamespaceIdListResultInner object itself.
+ */
+ public EHNamespaceIdListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceInner.java
new file mode 100644
index 000000000000..37dbd72da1f5
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceInner.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.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.KeySource;
+import com.azure.resourcemanager.eventhubs.generated.models.KeyVaultProperties;
+import com.azure.resourcemanager.eventhubs.generated.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.eventhubs.generated.models.Sku;
+import com.azure.resourcemanager.eventhubs.generated.models.UserAssignedIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Single Namespace item in List or Get Operation. */
+@Fluent
+public final class EHNamespaceInner extends Resource {
+ /*
+ * Properties of sku resource
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /*
+ * Properties of BYOK Identity description
+ */
+ @JsonProperty(value = "identity")
+ private Identity innerIdentity;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Namespace properties supplied for create namespace operation.
+ */
+ @JsonProperty(value = "properties")
+ private EHNamespaceProperties innerProperties;
+
+ /**
+ * Get the sku property: Properties of sku resource.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Properties of sku resource.
+ *
+ * @param sku the sku value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the innerIdentity property: Properties of BYOK Identity description.
+ *
+ * @return the innerIdentity value.
+ */
+ private Identity innerIdentity() {
+ return this.innerIdentity;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Namespace properties supplied for create namespace operation.
+ *
+ * @return the innerProperties value.
+ */
+ private EHNamespaceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public EHNamespaceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public EHNamespaceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the principalId property: ObjectId from the KeyVault.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().principalId();
+ }
+
+ /**
+ * Get the tenantId property: TenantId from the KeyVault.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().tenantId();
+ }
+
+ /**
+ * Get the type property: Type of managed service identity.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType typeIdentityType() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().type();
+ }
+
+ /**
+ * Set the type property: Type of managed service identity.
+ *
+ * @param type the type value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withTypeIdentityType(ManagedServiceIdentityType type) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new Identity();
+ }
+ this.innerIdentity().withType(type);
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().userAssignedIdentities();
+ }
+
+ /**
+ * Set the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withUserAssignedIdentities(Map userAssignedIdentities) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new Identity();
+ }
+ this.innerIdentity().withUserAssignedIdentities(userAssignedIdentities);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Namespace.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: Status of the Namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the createdAt property: The time the Namespace was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The time the Namespace was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations.
+ *
+ * @return the serviceBusEndpoint value.
+ */
+ public String serviceBusEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceBusEndpoint();
+ }
+
+ /**
+ * Get the clusterArmId property: Cluster ARM ID of the Namespace.
+ *
+ * @return the clusterArmId value.
+ */
+ public String clusterArmId() {
+ return this.innerProperties() == null ? null : this.innerProperties().clusterArmId();
+ }
+
+ /**
+ * Set the clusterArmId property: Cluster ARM ID of the Namespace.
+ *
+ * @param clusterArmId the clusterArmId value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withClusterArmId(String clusterArmId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withClusterArmId(clusterArmId);
+ return this;
+ }
+
+ /**
+ * Get the metricId property: Identifier for Azure Insights metrics.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricId();
+ }
+
+ /**
+ * Get the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub
+ * namespace.
+ *
+ * @return the isAutoInflateEnabled value.
+ */
+ public Boolean isAutoInflateEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().isAutoInflateEnabled();
+ }
+
+ /**
+ * Set the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub
+ * namespace.
+ *
+ * @param isAutoInflateEnabled the isAutoInflateEnabled value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withIsAutoInflateEnabled(Boolean isAutoInflateEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withIsAutoInflateEnabled(isAutoInflateEnabled);
+ return this;
+ }
+
+ /**
+ * Get the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value
+ * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true).
+ *
+ * @return the maximumThroughputUnits value.
+ */
+ public Integer maximumThroughputUnits() {
+ return this.innerProperties() == null ? null : this.innerProperties().maximumThroughputUnits();
+ }
+
+ /**
+ * Set the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value
+ * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true).
+ *
+ * @param maximumThroughputUnits the maximumThroughputUnits value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withMaximumThroughputUnits(Integer maximumThroughputUnits) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withMaximumThroughputUnits(maximumThroughputUnits);
+ return this;
+ }
+
+ /**
+ * Get the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace.
+ *
+ * @return the kafkaEnabled value.
+ */
+ public Boolean kafkaEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().kafkaEnabled();
+ }
+
+ /**
+ * Set the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace.
+ *
+ * @param kafkaEnabled the kafkaEnabled value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withKafkaEnabled(Boolean kafkaEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withKafkaEnabled(kafkaEnabled);
+ return this;
+ }
+
+ /**
+ * Get the zoneRedundant property: Enabling this property creates a Standard Event Hubs Namespace in regions
+ * supported availability zones.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.innerProperties() == null ? null : this.innerProperties().zoneRedundant();
+ }
+
+ /**
+ * Set the zoneRedundant property: Enabling this property creates a Standard Event Hubs Namespace in regions
+ * supported availability zones.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withZoneRedundant(Boolean zoneRedundant) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withZoneRedundant(zoneRedundant);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withPrivateEndpointConnections(privateEndpointConnections);
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: This property disables SAS authentication for the Event Hubs namespace.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.innerProperties() == null ? null : this.innerProperties().disableLocalAuth();
+ }
+
+ /**
+ * Set the disableLocalAuth property: This property disables SAS authentication for the Event Hubs namespace.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withDisableLocalAuth(Boolean disableLocalAuth) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withDisableLocalAuth(disableLocalAuth);
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.innerProperties() == null ? null : this.innerProperties().alternateName();
+ }
+
+ /**
+ * Set the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withAlternateName(String alternateName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withAlternateName(alternateName);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultProperties();
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withKeyVaultProperties(List keyVaultProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withKeyVaultProperties(keyVaultProperties);
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.innerProperties() == null ? null : this.innerProperties().keySource();
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withKeySource(KeySource keySource) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withKeySource(keySource);
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().requireInfrastructureEncryption();
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withRequireInfrastructureEncryption(requireInfrastructureEncryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (innerIdentity() != null) {
+ innerIdentity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceProperties.java
new file mode 100644
index 000000000000..503bd08887f8
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceProperties.java
@@ -0,0 +1,423 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.KeySource;
+import com.azure.resourcemanager.eventhubs.generated.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Namespace properties supplied for create namespace operation. */
+@Fluent
+public final class EHNamespaceProperties {
+ /*
+ * Provisioning state of the Namespace.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * Status of the Namespace.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * The time the Namespace was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The time the Namespace was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Endpoint you can use to perform Service Bus operations.
+ */
+ @JsonProperty(value = "serviceBusEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceBusEndpoint;
+
+ /*
+ * Cluster ARM ID of the Namespace.
+ */
+ @JsonProperty(value = "clusterArmId")
+ private String clusterArmId;
+
+ /*
+ * Identifier for Azure Insights metrics.
+ */
+ @JsonProperty(value = "metricId", access = JsonProperty.Access.WRITE_ONLY)
+ private String metricId;
+
+ /*
+ * Value that indicates whether AutoInflate is enabled for eventhub
+ * namespace.
+ */
+ @JsonProperty(value = "isAutoInflateEnabled")
+ private Boolean isAutoInflateEnabled;
+
+ /*
+ * Upper limit of throughput units when AutoInflate is enabled, value
+ * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled =
+ * true)
+ */
+ @JsonProperty(value = "maximumThroughputUnits")
+ private Integer maximumThroughputUnits;
+
+ /*
+ * Value that indicates whether Kafka is enabled for eventhub namespace.
+ */
+ @JsonProperty(value = "kafkaEnabled")
+ private Boolean kafkaEnabled;
+
+ /*
+ * Enabling this property creates a Standard Event Hubs Namespace in
+ * regions supported availability zones.
+ */
+ @JsonProperty(value = "zoneRedundant")
+ private Boolean zoneRedundant;
+
+ /*
+ * Properties of BYOK Encryption description
+ */
+ @JsonProperty(value = "encryption")
+ private Encryption innerEncryption;
+
+ /*
+ * List of private endpoint connections.
+ */
+ @JsonProperty(value = "privateEndpointConnections")
+ private List privateEndpointConnections;
+
+ /*
+ * This property disables SAS authentication for the Event Hubs namespace.
+ */
+ @JsonProperty(value = "disableLocalAuth")
+ private Boolean disableLocalAuth;
+
+ /*
+ * Alternate name specified when alias and namespace names are same.
+ */
+ @JsonProperty(value = "alternateName")
+ private String alternateName;
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Namespace.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: Status of the Namespace.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the createdAt property: The time the Namespace was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The time the Namespace was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the serviceBusEndpoint property: Endpoint you can use to perform Service Bus operations.
+ *
+ * @return the serviceBusEndpoint value.
+ */
+ public String serviceBusEndpoint() {
+ return this.serviceBusEndpoint;
+ }
+
+ /**
+ * Get the clusterArmId property: Cluster ARM ID of the Namespace.
+ *
+ * @return the clusterArmId value.
+ */
+ public String clusterArmId() {
+ return this.clusterArmId;
+ }
+
+ /**
+ * Set the clusterArmId property: Cluster ARM ID of the Namespace.
+ *
+ * @param clusterArmId the clusterArmId value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withClusterArmId(String clusterArmId) {
+ this.clusterArmId = clusterArmId;
+ return this;
+ }
+
+ /**
+ * Get the metricId property: Identifier for Azure Insights metrics.
+ *
+ * @return the metricId value.
+ */
+ public String metricId() {
+ return this.metricId;
+ }
+
+ /**
+ * Get the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub
+ * namespace.
+ *
+ * @return the isAutoInflateEnabled value.
+ */
+ public Boolean isAutoInflateEnabled() {
+ return this.isAutoInflateEnabled;
+ }
+
+ /**
+ * Set the isAutoInflateEnabled property: Value that indicates whether AutoInflate is enabled for eventhub
+ * namespace.
+ *
+ * @param isAutoInflateEnabled the isAutoInflateEnabled value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withIsAutoInflateEnabled(Boolean isAutoInflateEnabled) {
+ this.isAutoInflateEnabled = isAutoInflateEnabled;
+ return this;
+ }
+
+ /**
+ * Get the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value
+ * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true).
+ *
+ * @return the maximumThroughputUnits value.
+ */
+ public Integer maximumThroughputUnits() {
+ return this.maximumThroughputUnits;
+ }
+
+ /**
+ * Set the maximumThroughputUnits property: Upper limit of throughput units when AutoInflate is enabled, value
+ * should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true).
+ *
+ * @param maximumThroughputUnits the maximumThroughputUnits value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withMaximumThroughputUnits(Integer maximumThroughputUnits) {
+ this.maximumThroughputUnits = maximumThroughputUnits;
+ return this;
+ }
+
+ /**
+ * Get the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace.
+ *
+ * @return the kafkaEnabled value.
+ */
+ public Boolean kafkaEnabled() {
+ return this.kafkaEnabled;
+ }
+
+ /**
+ * Set the kafkaEnabled property: Value that indicates whether Kafka is enabled for eventhub namespace.
+ *
+ * @param kafkaEnabled the kafkaEnabled value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withKafkaEnabled(Boolean kafkaEnabled) {
+ this.kafkaEnabled = kafkaEnabled;
+ return this;
+ }
+
+ /**
+ * Get the zoneRedundant property: Enabling this property creates a Standard Event Hubs Namespace in regions
+ * supported availability zones.
+ *
+ * @return the zoneRedundant value.
+ */
+ public Boolean zoneRedundant() {
+ return this.zoneRedundant;
+ }
+
+ /**
+ * Set the zoneRedundant property: Enabling this property creates a Standard Event Hubs Namespace in regions
+ * supported availability zones.
+ *
+ * @param zoneRedundant the zoneRedundant value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withZoneRedundant(Boolean zoneRedundant) {
+ this.zoneRedundant = zoneRedundant;
+ return this;
+ }
+
+ /**
+ * Get the innerEncryption property: Properties of BYOK Encryption description.
+ *
+ * @return the innerEncryption value.
+ */
+ private Encryption innerEncryption() {
+ return this.innerEncryption;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Set the privateEndpointConnections property: List of private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ this.privateEndpointConnections = privateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the disableLocalAuth property: This property disables SAS authentication for the Event Hubs namespace.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.disableLocalAuth;
+ }
+
+ /**
+ * Set the disableLocalAuth property: This property disables SAS authentication for the Event Hubs namespace.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.disableLocalAuth = disableLocalAuth;
+ return this;
+ }
+
+ /**
+ * Get the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @return the alternateName value.
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set the alternateName property: Alternate name specified when alias and namespace names are same.
+ *
+ * @param alternateName the alternateName value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keyVaultProperties();
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withKeyVaultProperties(List keyVaultProperties) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeyVaultProperties(keyVaultProperties);
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().keySource();
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withKeySource(KeySource keySource) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withKeySource(keySource);
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.innerEncryption() == null ? null : this.innerEncryption().requireInfrastructureEncryption();
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ if (this.innerEncryption() == null) {
+ this.innerEncryption = new Encryption();
+ }
+ this.innerEncryption().withRequireInfrastructureEncryption(requireInfrastructureEncryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerEncryption() != null) {
+ innerEncryption().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Encryption.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Encryption.java
new file mode 100644
index 000000000000..72389ed9f54c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Encryption.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.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.KeySource;
+import com.azure.resourcemanager.eventhubs.generated.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties to configure Encryption. */
+@Fluent
+public final class Encryption {
+ /*
+ * Properties of KeyVault
+ */
+ @JsonProperty(value = "keyVaultProperties")
+ private List keyVaultProperties;
+
+ /*
+ * Enumerates the possible value of keySource for Encryption
+ */
+ @JsonProperty(value = "keySource")
+ private KeySource keySource;
+
+ /*
+ * Enable Infrastructure Encryption (Double Encryption)
+ */
+ @JsonProperty(value = "requireInfrastructureEncryption")
+ private Boolean requireInfrastructureEncryption;
+
+ /**
+ * Get the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public List keyVaultProperties() {
+ return this.keyVaultProperties;
+ }
+
+ /**
+ * Set the keyVaultProperties property: Properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeyVaultProperties(List keyVaultProperties) {
+ this.keyVaultProperties = keyVaultProperties;
+ return this;
+ }
+
+ /**
+ * Get the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @return the keySource value.
+ */
+ public KeySource keySource() {
+ return this.keySource;
+ }
+
+ /**
+ * Set the keySource property: Enumerates the possible value of keySource for Encryption.
+ *
+ * @param keySource the keySource value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeySource(KeySource keySource) {
+ this.keySource = keySource;
+ return this;
+ }
+
+ /**
+ * Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @return the requireInfrastructureEncryption value.
+ */
+ public Boolean requireInfrastructureEncryption() {
+ return this.requireInfrastructureEncryption;
+ }
+
+ /**
+ * Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption).
+ *
+ * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set.
+ * @return the Encryption object itself.
+ */
+ public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) {
+ this.requireInfrastructureEncryption = requireInfrastructureEncryption;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyVaultProperties() != null) {
+ keyVaultProperties().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubInner.java
new file mode 100644
index 000000000000..1d4b72964a7e
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubInner.java
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.CaptureDescription;
+import com.azure.resourcemanager.eventhubs.generated.models.EntityStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Single item in List or Get Event Hub operation. */
+@Fluent
+public final class EventhubInner extends ProxyResource {
+ /*
+ * Properties supplied to the Create Or Update Event Hub operation.
+ */
+ @JsonProperty(value = "properties")
+ private EventhubProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties supplied to the Create Or Update Event Hub operation.
+ *
+ * @return the innerProperties value.
+ */
+ private EventhubProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the partitionIds property: Current number of shards on the Event Hub.
+ *
+ * @return the partitionIds value.
+ */
+ public List partitionIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().partitionIds();
+ }
+
+ /**
+ * Get the createdAt property: Exact time the Event Hub was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAt();
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAt();
+ }
+
+ /**
+ * Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be
+ * 1 to 7 days.
+ *
+ * @return the messageRetentionInDays value.
+ */
+ public Long messageRetentionInDays() {
+ return this.innerProperties() == null ? null : this.innerProperties().messageRetentionInDays();
+ }
+
+ /**
+ * Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be
+ * 1 to 7 days.
+ *
+ * @param messageRetentionInDays the messageRetentionInDays value to set.
+ * @return the EventhubInner object itself.
+ */
+ public EventhubInner withMessageRetentionInDays(Long messageRetentionInDays) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EventhubProperties();
+ }
+ this.innerProperties().withMessageRetentionInDays(messageRetentionInDays);
+ return this;
+ }
+
+ /**
+ * Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32
+ * partitions.
+ *
+ * @return the partitionCount value.
+ */
+ public Long partitionCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().partitionCount();
+ }
+
+ /**
+ * Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32
+ * partitions.
+ *
+ * @param partitionCount the partitionCount value to set.
+ * @return the EventhubInner object itself.
+ */
+ public EventhubInner withPartitionCount(Long partitionCount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EventhubProperties();
+ }
+ this.innerProperties().withPartitionCount(partitionCount);
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of the Event Hub.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of the Event Hub.
+ *
+ * @param status the status value to set.
+ * @return the EventhubInner object itself.
+ */
+ public EventhubInner withStatus(EntityStatus status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EventhubProperties();
+ }
+ this.innerProperties().withStatus(status);
+ return this;
+ }
+
+ /**
+ * Get the captureDescription property: Properties of capture description.
+ *
+ * @return the captureDescription value.
+ */
+ public CaptureDescription captureDescription() {
+ return this.innerProperties() == null ? null : this.innerProperties().captureDescription();
+ }
+
+ /**
+ * Set the captureDescription property: Properties of capture description.
+ *
+ * @param captureDescription the captureDescription value to set.
+ * @return the EventhubInner object itself.
+ */
+ public EventhubInner withCaptureDescription(CaptureDescription captureDescription) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EventhubProperties();
+ }
+ this.innerProperties().withCaptureDescription(captureDescription);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubProperties.java
new file mode 100644
index 000000000000..8fb2be4e91c3
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EventhubProperties.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.CaptureDescription;
+import com.azure.resourcemanager.eventhubs.generated.models.EntityStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Properties supplied to the Create Or Update Event Hub operation. */
+@Fluent
+public final class EventhubProperties {
+ /*
+ * Current number of shards on the Event Hub.
+ */
+ @JsonProperty(value = "partitionIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List partitionIds;
+
+ /*
+ * Exact time the Event Hub was created.
+ */
+ @JsonProperty(value = "createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAt;
+
+ /*
+ * The exact time the message was updated.
+ */
+ @JsonProperty(value = "updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAt;
+
+ /*
+ * Number of days to retain the events for this Event Hub, value should be
+ * 1 to 7 days
+ */
+ @JsonProperty(value = "messageRetentionInDays")
+ private Long messageRetentionInDays;
+
+ /*
+ * Number of partitions created for the Event Hub, allowed values are from
+ * 1 to 32 partitions.
+ */
+ @JsonProperty(value = "partitionCount")
+ private Long partitionCount;
+
+ /*
+ * Enumerates the possible values for the status of the Event Hub.
+ */
+ @JsonProperty(value = "status")
+ private EntityStatus status;
+
+ /*
+ * Properties of capture description
+ */
+ @JsonProperty(value = "captureDescription")
+ private CaptureDescription captureDescription;
+
+ /**
+ * Get the partitionIds property: Current number of shards on the Event Hub.
+ *
+ * @return the partitionIds value.
+ */
+ public List partitionIds() {
+ return this.partitionIds;
+ }
+
+ /**
+ * Get the createdAt property: Exact time the Event Hub was created.
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Get the updatedAt property: The exact time the message was updated.
+ *
+ * @return the updatedAt value.
+ */
+ public OffsetDateTime updatedAt() {
+ return this.updatedAt;
+ }
+
+ /**
+ * Get the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be
+ * 1 to 7 days.
+ *
+ * @return the messageRetentionInDays value.
+ */
+ public Long messageRetentionInDays() {
+ return this.messageRetentionInDays;
+ }
+
+ /**
+ * Set the messageRetentionInDays property: Number of days to retain the events for this Event Hub, value should be
+ * 1 to 7 days.
+ *
+ * @param messageRetentionInDays the messageRetentionInDays value to set.
+ * @return the EventhubProperties object itself.
+ */
+ public EventhubProperties withMessageRetentionInDays(Long messageRetentionInDays) {
+ this.messageRetentionInDays = messageRetentionInDays;
+ return this;
+ }
+
+ /**
+ * Get the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32
+ * partitions.
+ *
+ * @return the partitionCount value.
+ */
+ public Long partitionCount() {
+ return this.partitionCount;
+ }
+
+ /**
+ * Set the partitionCount property: Number of partitions created for the Event Hub, allowed values are from 1 to 32
+ * partitions.
+ *
+ * @param partitionCount the partitionCount value to set.
+ * @return the EventhubProperties object itself.
+ */
+ public EventhubProperties withPartitionCount(Long partitionCount) {
+ this.partitionCount = partitionCount;
+ return this;
+ }
+
+ /**
+ * Get the status property: Enumerates the possible values for the status of the Event Hub.
+ *
+ * @return the status value.
+ */
+ public EntityStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Enumerates the possible values for the status of the Event Hub.
+ *
+ * @param status the status value to set.
+ * @return the EventhubProperties object itself.
+ */
+ public EventhubProperties withStatus(EntityStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the captureDescription property: Properties of capture description.
+ *
+ * @return the captureDescription value.
+ */
+ public CaptureDescription captureDescription() {
+ return this.captureDescription;
+ }
+
+ /**
+ * Set the captureDescription property: Properties of capture description.
+ *
+ * @param captureDescription the captureDescription value to set.
+ * @return the EventhubProperties object itself.
+ */
+ public EventhubProperties withCaptureDescription(CaptureDescription captureDescription) {
+ this.captureDescription = captureDescription;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (captureDescription() != null) {
+ captureDescription().validate();
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Identity.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Identity.java
new file mode 100644
index 000000000000..4cab3d1eb112
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/Identity.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.eventhubs.generated.models.UserAssignedIdentity;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Properties to configure Identity for Bring your Own Keys. */
+@Fluent
+public class Identity {
+ /*
+ * ObjectId from the KeyVault
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /*
+ * TenantId from the KeyVault
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /*
+ * Type of managed service identity.
+ */
+ @JsonProperty(value = "type")
+ private ManagedServiceIdentityType type;
+
+ /*
+ * Properties for User Assigned Identities
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map userAssignedIdentities;
+
+ /**
+ * Get the principalId property: ObjectId from the KeyVault.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenantId property: TenantId from the KeyVault.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the type property: Type of managed service identity.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Type of managed service identity.
+ *
+ * @param type the type value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withType(ManagedServiceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: Properties for User Assigned Identities.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetInner.java
new file mode 100644
index 000000000000..a6c0d65e6da1
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetInner.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.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.DefaultAction;
+import com.azure.resourcemanager.eventhubs.generated.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.eventhubs.generated.models.NWRuleSetVirtualNetworkRules;
+import com.azure.resourcemanager.eventhubs.generated.models.PublicNetworkAccessFlag;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Description of topic resource. */
+@Fluent
+public final class NetworkRuleSetInner extends ProxyResource {
+ /*
+ * NetworkRuleSet properties
+ */
+ @JsonProperty(value = "properties")
+ private NetworkRuleSetProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: NetworkRuleSet properties.
+ *
+ * @return the innerProperties value.
+ */
+ private NetworkRuleSetProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().trustedServiceAccessEnabled();
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withTrustedServiceAccessEnabled(trustedServiceAccessEnabled);
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultAction();
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withDefaultAction(defaultAction);
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRules();
+ }
+
+ /**
+ * Set the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withVirtualNetworkRules(List virtualNetworkRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withVirtualNetworkRules(virtualNetworkRules);
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipRules();
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withIpRules(List ipRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withIpRules(ipRules);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessFlag publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetInner object itself.
+ */
+ public NetworkRuleSetInner withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkRuleSetProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetListResultInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetListResultInner.java
new file mode 100644
index 000000000000..85fb78a4c00a
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetListResultInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The response of the List NetworkRuleSet operation. */
+@Fluent
+public final class NetworkRuleSetListResultInner {
+ /*
+ * Result of the List NetworkRuleSet operation
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * Link to the next set of results. Not empty if Value contains incomplete
+ * list of NetworkRuleSet.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /**
+ * Get the value property: Result of the List NetworkRuleSet operation.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Result of the List NetworkRuleSet operation.
+ *
+ * @param value the value value to set.
+ * @return the NetworkRuleSetListResultInner object itself.
+ */
+ public NetworkRuleSetListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of
+ * NetworkRuleSet.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of
+ * NetworkRuleSet.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the NetworkRuleSetListResultInner object itself.
+ */
+ public NetworkRuleSetListResultInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetProperties.java
new file mode 100644
index 000000000000..63c3419cb106
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetProperties.java
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.DefaultAction;
+import com.azure.resourcemanager.eventhubs.generated.models.NWRuleSetIpRules;
+import com.azure.resourcemanager.eventhubs.generated.models.NWRuleSetVirtualNetworkRules;
+import com.azure.resourcemanager.eventhubs.generated.models.PublicNetworkAccessFlag;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** NetworkRuleSet properties. */
+@Fluent
+public final class NetworkRuleSetProperties {
+ /*
+ * Value that indicates whether Trusted Service Access is Enabled or not.
+ */
+ @JsonProperty(value = "trustedServiceAccessEnabled")
+ private Boolean trustedServiceAccessEnabled;
+
+ /*
+ * Default Action for Network Rule Set
+ */
+ @JsonProperty(value = "defaultAction")
+ private DefaultAction defaultAction;
+
+ /*
+ * List VirtualNetwork Rules
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /*
+ * List of IpRules
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /*
+ * This determines if traffic is allowed over public network. By default it
+ * is enabled.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessFlag publicNetworkAccess;
+
+ /**
+ * Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @return the trustedServiceAccessEnabled value.
+ */
+ public Boolean trustedServiceAccessEnabled() {
+ return this.trustedServiceAccessEnabled;
+ }
+
+ /**
+ * Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or
+ * not.
+ *
+ * @param trustedServiceAccessEnabled the trustedServiceAccessEnabled value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled) {
+ this.trustedServiceAccessEnabled = trustedServiceAccessEnabled;
+ return this;
+ }
+
+ /**
+ * Get the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @return the defaultAction value.
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the defaultAction property: Default Action for Network Rule Set.
+ *
+ * @param defaultAction the defaultAction value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtualNetworkRules property: List VirtualNetwork Rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessFlag publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the NetworkRuleSetProperties object itself.
+ */
+ public NetworkRuleSetProperties withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (virtualNetworkRules() != null) {
+ virtualNetworkRules().forEach(e -> e.validate());
+ }
+ if (ipRules() != null) {
+ ipRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/OperationInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..3bfe2ddebfaf
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/OperationInner.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A Event Hub REST API operation. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * Display of the operation
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Origin of the operation
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Properties of the operation
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: Display of the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Display of the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Origin of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Origin of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties of the operation.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the operation.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withProperties(Object properties) {
+ this.properties = properties;
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..46518fd9b022
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.ConnectionState;
+import com.azure.resourcemanager.eventhubs.generated.models.EndPointProvisioningState;
+import com.azure.resourcemanager.eventhubs.generated.models.PrivateEndpoint;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the PrivateEndpointConnection. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Properties of the PrivateEndpointConnection.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: Properties of the PrivateEndpointConnection.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @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: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ ConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withProvisioningState(EndPointProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..c6de641ab3c8
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.ConnectionState;
+import com.azure.resourcemanager.eventhubs.generated.models.EndPointProvisioningState;
+import com.azure.resourcemanager.eventhubs.generated.models.PrivateEndpoint;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The Private Endpoint resource for this Connection.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * Details about the state of the connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private ConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * Provisioning state of the Private Endpoint Connection.
+ */
+ @JsonProperty(value = "provisioningState")
+ private EndPointProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The Private Endpoint resource for this Connection.
+ *
+ * @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: Details about the state of the connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public ConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Details about the state of the connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ ConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @return the provisioningState value.
+ */
+ public EndPointProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the Private Endpoint Connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withProvisioningState(EndPointProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourceProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..94fbf8a3a499
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourceProperties.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.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of PrivateLinkResource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId")
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers")
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the groupId property: The private link resource group id.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Set the requiredMembers property: The private link resource required member names.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredMembers(List requiredMembers) {
+ this.requiredMembers = requiredMembers;
+ return this;
+ }
+
+ /**
+ * 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourcesListResultInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourcesListResultInner.java
new file mode 100644
index 000000000000..87d9a0970b04
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/PrivateLinkResourcesListResultInner.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.PrivateLinkResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Result of the List private link resources operation. */
+@Fluent
+public final class PrivateLinkResourcesListResultInner {
+ /*
+ * A collection of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * A link for the next page of private link resources.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /**
+ * Get the value property: A collection of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: A collection of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourcesListResultInner object itself.
+ */
+ public PrivateLinkResourcesListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: A link for the next page of private link resources.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: A link for the next page of private link resources.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the PrivateLinkResourcesListResultInner object itself.
+ */
+ public PrivateLinkResourcesListResultInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupInner.java
new file mode 100644
index 000000000000..3f72fd72cd24
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupInner.java
@@ -0,0 +1,171 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaCompatibility;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+import java.util.UUID;
+
+/** Single item in List or Get Schema Group operation. */
+@Fluent
+public final class SchemaGroupInner extends ProxyResource {
+ /*
+ * The properties property.
+ */
+ @JsonProperty(value = "properties")
+ private SchemaGroupProperties innerProperties;
+
+ /*
+ * The system meta data relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The geo-location where the resource lives
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /**
+ * Get the innerProperties property: The properties property.
+ *
+ * @return the innerProperties value.
+ */
+ private SchemaGroupProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: The system meta data relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the updatedAtUtc property: Exact time the Schema Group was updated.
+ *
+ * @return the updatedAtUtc value.
+ */
+ public OffsetDateTime updatedAtUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().updatedAtUtc();
+ }
+
+ /**
+ * Get the createdAtUtc property: Exact time the Schema Group was created.
+ *
+ * @return the createdAtUtc value.
+ */
+ public OffsetDateTime createdAtUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdAtUtc();
+ }
+
+ /**
+ * Get the etag property: The ETag value.
+ *
+ * @return the etag value.
+ */
+ public UUID etag() {
+ return this.innerProperties() == null ? null : this.innerProperties().etag();
+ }
+
+ /**
+ * Get the groupProperties property: dictionary object for SchemaGroup group properties.
+ *
+ * @return the groupProperties value.
+ */
+ public Map groupProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupProperties();
+ }
+
+ /**
+ * Set the groupProperties property: dictionary object for SchemaGroup group properties.
+ *
+ * @param groupProperties the groupProperties value to set.
+ * @return the SchemaGroupInner object itself.
+ */
+ public SchemaGroupInner withGroupProperties(Map groupProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaGroupProperties();
+ }
+ this.innerProperties().withGroupProperties(groupProperties);
+ return this;
+ }
+
+ /**
+ * Get the schemaCompatibility property: The schemaCompatibility property.
+ *
+ * @return the schemaCompatibility value.
+ */
+ public SchemaCompatibility schemaCompatibility() {
+ return this.innerProperties() == null ? null : this.innerProperties().schemaCompatibility();
+ }
+
+ /**
+ * Set the schemaCompatibility property: The schemaCompatibility property.
+ *
+ * @param schemaCompatibility the schemaCompatibility value to set.
+ * @return the SchemaGroupInner object itself.
+ */
+ public SchemaGroupInner withSchemaCompatibility(SchemaCompatibility schemaCompatibility) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaGroupProperties();
+ }
+ this.innerProperties().withSchemaCompatibility(schemaCompatibility);
+ return this;
+ }
+
+ /**
+ * Get the schemaType property: The schemaType property.
+ *
+ * @return the schemaType value.
+ */
+ public SchemaType schemaType() {
+ return this.innerProperties() == null ? null : this.innerProperties().schemaType();
+ }
+
+ /**
+ * Set the schemaType property: The schemaType property.
+ *
+ * @param schemaType the schemaType value to set.
+ * @return the SchemaGroupInner object itself.
+ */
+ public SchemaGroupInner withSchemaType(SchemaType schemaType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaGroupProperties();
+ }
+ this.innerProperties().withSchemaType(schemaType);
+ 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/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupProperties.java
new file mode 100644
index 000000000000..31281e29bb91
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/SchemaGroupProperties.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaCompatibility;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaType;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+import java.util.UUID;
+
+/** The SchemaGroupProperties model. */
+@Fluent
+public final class SchemaGroupProperties {
+ /*
+ * Exact time the Schema Group was updated
+ */
+ @JsonProperty(value = "updatedAtUtc", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime updatedAtUtc;
+
+ /*
+ * Exact time the Schema Group was created.
+ */
+ @JsonProperty(value = "createdAtUtc", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdAtUtc;
+
+ /*
+ * The ETag value.
+ */
+ @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID etag;
+
+ /*
+ * dictionary object for SchemaGroup group properties
+ */
+ @JsonProperty(value = "groupProperties")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map groupProperties;
+
+ /*
+ * The schemaCompatibility property.
+ */
+ @JsonProperty(value = "schemaCompatibility")
+ private SchemaCompatibility schemaCompatibility;
+
+ /*
+ * The schemaType property.
+ */
+ @JsonProperty(value = "schemaType")
+ private SchemaType schemaType;
+
+ /**
+ * Get the updatedAtUtc property: Exact time the Schema Group was updated.
+ *
+ * @return the updatedAtUtc value.
+ */
+ public OffsetDateTime updatedAtUtc() {
+ return this.updatedAtUtc;
+ }
+
+ /**
+ * Get the createdAtUtc property: Exact time the Schema Group was created.
+ *
+ * @return the createdAtUtc value.
+ */
+ public OffsetDateTime createdAtUtc() {
+ return this.createdAtUtc;
+ }
+
+ /**
+ * Get the etag property: The ETag value.
+ *
+ * @return the etag value.
+ */
+ public UUID etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the groupProperties property: dictionary object for SchemaGroup group properties.
+ *
+ * @return the groupProperties value.
+ */
+ public Map groupProperties() {
+ return this.groupProperties;
+ }
+
+ /**
+ * Set the groupProperties property: dictionary object for SchemaGroup group properties.
+ *
+ * @param groupProperties the groupProperties value to set.
+ * @return the SchemaGroupProperties object itself.
+ */
+ public SchemaGroupProperties withGroupProperties(Map groupProperties) {
+ this.groupProperties = groupProperties;
+ return this;
+ }
+
+ /**
+ * Get the schemaCompatibility property: The schemaCompatibility property.
+ *
+ * @return the schemaCompatibility value.
+ */
+ public SchemaCompatibility schemaCompatibility() {
+ return this.schemaCompatibility;
+ }
+
+ /**
+ * Set the schemaCompatibility property: The schemaCompatibility property.
+ *
+ * @param schemaCompatibility the schemaCompatibility value to set.
+ * @return the SchemaGroupProperties object itself.
+ */
+ public SchemaGroupProperties withSchemaCompatibility(SchemaCompatibility schemaCompatibility) {
+ this.schemaCompatibility = schemaCompatibility;
+ return this;
+ }
+
+ /**
+ * Get the schemaType property: The schemaType property.
+ *
+ * @return the schemaType value.
+ */
+ public SchemaType schemaType() {
+ return this.schemaType;
+ }
+
+ /**
+ * Set the schemaType property: The schemaType property.
+ *
+ * @param schemaType the schemaType value to set.
+ * @return the SchemaGroupProperties object itself.
+ */
+ public SchemaGroupProperties withSchemaType(SchemaType schemaType) {
+ this.schemaType = schemaType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/UserAssignedIdentityProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/UserAssignedIdentityProperties.java
new file mode 100644
index 000000000000..4d5d2a7d7c4c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/UserAssignedIdentityProperties.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The UserAssignedIdentityProperties model. */
+@Fluent
+public final class UserAssignedIdentityProperties {
+ /*
+ * ARM ID of user Identity selected for encryption
+ */
+ @JsonProperty(value = "userAssignedIdentity")
+ private String userAssignedIdentity;
+
+ /**
+ * Get the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
+ *
+ * @return the userAssignedIdentity value.
+ */
+ public String userAssignedIdentity() {
+ return this.userAssignedIdentity;
+ }
+
+ /**
+ * Set the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
+ *
+ * @param userAssignedIdentity the userAssignedIdentity value to set.
+ * @return the UserAssignedIdentityProperties object itself.
+ */
+ public UserAssignedIdentityProperties withUserAssignedIdentity(String userAssignedIdentity) {
+ this.userAssignedIdentity = userAssignedIdentity;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/package-info.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/package-info.java
new file mode 100644
index 000000000000..51afc5de6975
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// 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 EventHubManagementClient. Azure Event Hubs client for managing Event
+ * Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources.
+ */
+package com.azure.resourcemanager.eventhubs.generated.fluent.models;
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/package-info.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/package-info.java
new file mode 100644
index 000000000000..3c7d629f797f
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/package-info.java
@@ -0,0 +1,9 @@
+// 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 EventHubManagementClient. Azure Event Hubs client for managing Event Hubs
+ * Cluster, IPFilter Rules and VirtualNetworkRules resources.
+ */
+package com.azure.resourcemanager.eventhubs.generated.fluent;
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AccessKeysImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AccessKeysImpl.java
new file mode 100644
index 000000000000..a87e58ed5589
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AccessKeysImpl.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.implementation;
+
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AccessKeysInner;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessKeys;
+
+public final class AccessKeysImpl implements AccessKeys {
+ private AccessKeysInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ AccessKeysImpl(
+ AccessKeysInner innerObject, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String primaryConnectionString() {
+ return this.innerModel().primaryConnectionString();
+ }
+
+ public String secondaryConnectionString() {
+ return this.innerModel().secondaryConnectionString();
+ }
+
+ public String aliasPrimaryConnectionString() {
+ return this.innerModel().aliasPrimaryConnectionString();
+ }
+
+ public String aliasSecondaryConnectionString() {
+ return this.innerModel().aliasSecondaryConnectionString();
+ }
+
+ public String primaryKey() {
+ return this.innerModel().primaryKey();
+ }
+
+ public String secondaryKey() {
+ return this.innerModel().secondaryKey();
+ }
+
+ public String keyName() {
+ return this.innerModel().keyName();
+ }
+
+ public AccessKeysInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ArmDisasterRecoveryImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ArmDisasterRecoveryImpl.java
new file mode 100644
index 000000000000..a2a24dda8420
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ArmDisasterRecoveryImpl.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.eventhubs.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ArmDisasterRecoveryInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ArmDisasterRecovery;
+import com.azure.resourcemanager.eventhubs.generated.models.ProvisioningStateDR;
+import com.azure.resourcemanager.eventhubs.generated.models.RoleDisasterRecovery;
+
+public final class ArmDisasterRecoveryImpl
+ implements ArmDisasterRecovery, ArmDisasterRecovery.Definition, ArmDisasterRecovery.Update {
+ private ArmDisasterRecoveryInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public ProvisioningStateDR provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String partnerNamespace() {
+ return this.innerModel().partnerNamespace();
+ }
+
+ public String alternateName() {
+ return this.innerModel().alternateName();
+ }
+
+ public RoleDisasterRecovery role() {
+ return this.innerModel().role();
+ }
+
+ public Long pendingReplicationOperationsCount() {
+ return this.innerModel().pendingReplicationOperationsCount();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ArmDisasterRecoveryInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String namespaceName;
+
+ private String alias;
+
+ public ArmDisasterRecoveryImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ public ArmDisasterRecovery create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ArmDisasterRecoveryImpl(
+ String name, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = new ArmDisasterRecoveryInner();
+ this.serviceManager = serviceManager;
+ this.alias = name;
+ }
+
+ public ArmDisasterRecoveryImpl update() {
+ return this;
+ }
+
+ public ArmDisasterRecovery apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .createOrUpdateWithResponse(resourceGroupName, namespaceName, alias, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ArmDisasterRecoveryImpl(
+ ArmDisasterRecoveryInner innerObject,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.namespaceName = Utils.getValueFromIdByName(innerObject.id(), "namespaces");
+ this.alias = Utils.getValueFromIdByName(innerObject.id(), "disasterRecoveryConfigs");
+ }
+
+ public ArmDisasterRecovery refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, alias, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArmDisasterRecovery refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDisasterRecoveryConfigs()
+ .getWithResponse(resourceGroupName, namespaceName, alias, context)
+ .getValue();
+ return this;
+ }
+
+ public void breakPairing() {
+ serviceManager.disasterRecoveryConfigs().breakPairing(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response breakPairingWithResponse(Context context) {
+ return serviceManager
+ .disasterRecoveryConfigs()
+ .breakPairingWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public void failOver() {
+ serviceManager.disasterRecoveryConfigs().failOver(resourceGroupName, namespaceName, alias);
+ }
+
+ public Response failOverWithResponse(Context context) {
+ return serviceManager
+ .disasterRecoveryConfigs()
+ .failOverWithResponse(resourceGroupName, namespaceName, alias, context);
+ }
+
+ public ArmDisasterRecoveryImpl withPartnerNamespace(String partnerNamespace) {
+ this.innerModel().withPartnerNamespace(partnerNamespace);
+ return this;
+ }
+
+ public ArmDisasterRecoveryImpl withAlternateName(String alternateName) {
+ this.innerModel().withAlternateName(alternateName);
+ return this;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AuthorizationRuleImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AuthorizationRuleImpl.java
new file mode 100644
index 000000000000..f5e5054557fa
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AuthorizationRuleImpl.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AuthorizationRuleInner;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessKeys;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessRights;
+import com.azure.resourcemanager.eventhubs.generated.models.AuthorizationRule;
+import com.azure.resourcemanager.eventhubs.generated.models.RegenerateAccessKeyParameters;
+import java.util.Collections;
+import java.util.List;
+
+public final class AuthorizationRuleImpl
+ implements AuthorizationRule, AuthorizationRule.Definition, AuthorizationRule.Update {
+ private AuthorizationRuleInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List rights() {
+ List inner = this.innerModel().rights();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public AuthorizationRuleInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String namespaceName;
+
+ private String authorizationRuleName;
+
+ public AuthorizationRuleImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ public AuthorizationRule create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .createOrUpdateAuthorizationRuleWithResponse(
+ resourceGroupName, namespaceName, authorizationRuleName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthorizationRule create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .createOrUpdateAuthorizationRuleWithResponse(
+ resourceGroupName, namespaceName, authorizationRuleName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ AuthorizationRuleImpl(String name, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = new AuthorizationRuleInner();
+ this.serviceManager = serviceManager;
+ this.authorizationRuleName = name;
+ }
+
+ public AuthorizationRuleImpl update() {
+ return this;
+ }
+
+ public AuthorizationRule apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .createOrUpdateAuthorizationRuleWithResponse(
+ resourceGroupName, namespaceName, authorizationRuleName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthorizationRule apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .createOrUpdateAuthorizationRuleWithResponse(
+ resourceGroupName, namespaceName, authorizationRuleName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ AuthorizationRuleImpl(
+ AuthorizationRuleInner innerObject,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.namespaceName = Utils.getValueFromIdByName(innerObject.id(), "namespaces");
+ this.authorizationRuleName = Utils.getValueFromIdByName(innerObject.id(), "authorizationRules");
+ }
+
+ public AuthorizationRule refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .getAuthorizationRuleWithResponse(resourceGroupName, namespaceName, authorizationRuleName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AuthorizationRule refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getNamespaces()
+ .getAuthorizationRuleWithResponse(resourceGroupName, namespaceName, authorizationRuleName, context)
+ .getValue();
+ return this;
+ }
+
+ public AccessKeys listKeys() {
+ return serviceManager.namespaces().listKeys(resourceGroupName, namespaceName, authorizationRuleName);
+ }
+
+ public Response listKeysWithResponse(Context context) {
+ return serviceManager
+ .namespaces()
+ .listKeysWithResponse(resourceGroupName, namespaceName, authorizationRuleName, context);
+ }
+
+ public AccessKeys regenerateKeys(RegenerateAccessKeyParameters parameters) {
+ return serviceManager
+ .namespaces()
+ .regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, parameters);
+ }
+
+ public Response regenerateKeysWithResponse(RegenerateAccessKeyParameters parameters, Context context) {
+ return serviceManager
+ .namespaces()
+ .regenerateKeysWithResponse(resourceGroupName, namespaceName, authorizationRuleName, parameters, context);
+ }
+
+ public AuthorizationRuleImpl withRights(List rights) {
+ this.innerModel().withRights(rights);
+ return this;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AvailableClustersListImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AvailableClustersListImpl.java
new file mode 100644
index 000000000000..e744a0677918
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/AvailableClustersListImpl.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.eventhubs.generated.implementation;
+
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AvailableClustersListInner;
+import com.azure.resourcemanager.eventhubs.generated.models.AvailableCluster;
+import com.azure.resourcemanager.eventhubs.generated.models.AvailableClustersList;
+import java.util.Collections;
+import java.util.List;
+
+public final class AvailableClustersListImpl implements AvailableClustersList {
+ private AvailableClustersListInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ AvailableClustersListImpl(
+ AvailableClustersListInner innerObject,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public AvailableClustersListInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/CheckNameAvailabilityResultImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 000000000000..dd1a076e0c7e
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/CheckNameAvailabilityResultImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.implementation;
+
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.eventhubs.generated.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.eventhubs.generated.models.UnavailableReason;
+
+public final class CheckNameAvailabilityResultImpl implements CheckNameAvailabilityResult {
+ private CheckNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ CheckNameAvailabilityResultImpl(
+ CheckNameAvailabilityResultInner innerObject,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public UnavailableReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public CheckNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterImpl.java
new file mode 100644
index 000000000000..3a1fed825f74
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterImpl.java
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ClusterInner;
+import com.azure.resourcemanager.eventhubs.generated.models.Cluster;
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterSku;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
+ private ClusterInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ClusterSku sku() {
+ return this.innerModel().sku();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String createdAt() {
+ return this.innerModel().createdAt();
+ }
+
+ public String updatedAt() {
+ return this.innerModel().updatedAt();
+ }
+
+ public String metricId() {
+ return this.innerModel().metricId();
+ }
+
+ public String status() {
+ return this.innerModel().status();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public ClusterInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String clusterName;
+
+ public ClusterImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public Cluster create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .createOrUpdate(resourceGroupName, clusterName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public Cluster create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .createOrUpdate(resourceGroupName, clusterName, this.innerModel(), context);
+ return this;
+ }
+
+ ClusterImpl(String name, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = new ClusterInner();
+ this.serviceManager = serviceManager;
+ this.clusterName = name;
+ }
+
+ public ClusterImpl update() {
+ return this;
+ }
+
+ public Cluster apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .update(resourceGroupName, clusterName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public Cluster apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .update(resourceGroupName, clusterName, this.innerModel(), context);
+ return this;
+ }
+
+ ClusterImpl(
+ ClusterInner innerObject, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
+ }
+
+ public Cluster refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Cluster refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getClusters()
+ .getByResourceGroupWithResponse(resourceGroupName, clusterName, context)
+ .getValue();
+ return this;
+ }
+
+ public ClusterImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ClusterImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ClusterImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public ClusterImpl withSku(ClusterSku sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterQuotaConfigurationPropertiesImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterQuotaConfigurationPropertiesImpl.java
new file mode 100644
index 000000000000..7df982d939ee
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClusterQuotaConfigurationPropertiesImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.generated.implementation;
+
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ClusterQuotaConfigurationPropertiesInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterQuotaConfigurationProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ClusterQuotaConfigurationPropertiesImpl implements ClusterQuotaConfigurationProperties {
+ private ClusterQuotaConfigurationPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ ClusterQuotaConfigurationPropertiesImpl(
+ ClusterQuotaConfigurationPropertiesInner innerObject,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Map settings() {
+ Map inner = this.innerModel().settings();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ClusterQuotaConfigurationPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClustersClientImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClustersClientImpl.java
new file mode 100644
index 000000000000..ed82c2009a5c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ClustersClientImpl.java
@@ -0,0 +1,1827 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.eventhubs.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.Patch;
+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.eventhubs.generated.fluent.ClustersClient;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AvailableClustersListInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ClusterInner;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.EHNamespaceIdListResultInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterListResult;
+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 ClustersClient. */
+public final class ClustersClientImpl implements ClustersClient {
+ /** The proxy service used to perform REST calls. */
+ private final ClustersService service;
+
+ /** The service client containing this operation class. */
+ private final EventHubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ClustersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ClustersClientImpl(EventHubManagementClientImpl client) {
+ this.service = RestProxy.create(ClustersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for EventHubManagementClientClusters to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "EventHubManagementCl")
+ private interface ClustersService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/availableClusterRegions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAvailableClusterRegion(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/clusters")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters"
+ + "/{clusterName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters"
+ + "/{clusterName}")
+ @ExpectedResponses({200, 201, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ClusterInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters"
+ + "/{clusterName}")
+ @ExpectedResponses({200, 201, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ClusterInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters"
+ + "/{clusterName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters"
+ + "/{clusterName}/namespaces")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNamespaces(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @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 the List Available Clusters operation along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAvailableClusterRegionWithResponseAsync() {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listAvailableClusterRegion(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of the List Available Clusters operation along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listAvailableClusterRegionWithResponseAsync(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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listAvailableClusterRegion(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @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 the List Available Clusters operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAvailableClusterRegionAsync() {
+ return listAvailableClusterRegionWithResponseAsync()
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @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 the List Available Clusters operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AvailableClustersListInner listAvailableClusterRegion() {
+ return listAvailableClusterRegionAsync().block();
+ }
+
+ /**
+ * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of the List Available Clusters operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listAvailableClusterRegionWithResponse(Context context) {
+ return listAvailableClusterRegionWithResponseAsync(context).block();
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation 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."));
+ }
+ 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(),
+ this.client.getSubscriptionId(),
+ 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 the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation 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."));
+ }
+ 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(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ 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."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ 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 the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, 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."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Lists the available Event Hubs Clusters within an ARM resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @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 the List Event Hubs Clusters operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String clusterName) {
+ 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String clusterName, 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
+ return getByResourceGroupAsync(resourceGroupName, clusterName).block();
+ }
+
+ /**
+ * Gets the resource description of the specified Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 resource description of the specified Event Hubs Cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String clusterName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName, context).block();
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName 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(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName 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(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, clusterName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, clusterName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, context);
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginCreateOrUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginCreateOrUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, clusterName, parameters).block();
+ }
+
+ /**
+ * Creates or updates an instance of an Event Hubs Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner createOrUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return createOrUpdateAsync(resourceGroupName, clusterName, parameters, context).block();
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName 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
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName 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
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext());
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginUpdateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, clusterName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, context);
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return beginUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginUpdateAsync(resourceGroupName, clusterName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return beginUpdateAsync(resourceGroupName, clusterName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner update(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return updateAsync(resourceGroupName, clusterName, parameters).block();
+ }
+
+ /**
+ * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters The properties of the Event Hubs Cluster which should be updated.
+ * @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 single Event Hubs Cluster resource in List or Get operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner update(String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
+ return updateAsync(resourceGroupName, clusterName, parameters, context).block();
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName) {
+ 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName, 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String clusterName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) {
+ return beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller();
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String clusterName, Context context) {
+ return beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName) {
+ return beginDeleteAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 clusterName, Context context) {
+ return beginDeleteAsync(resourceGroupName, clusterName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String clusterName) {
+ deleteAsync(resourceGroupName, clusterName).block();
+ }
+
+ /**
+ * Deletes an existing Event Hubs Cluster. This operation is idempotent.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String clusterName, Context context) {
+ deleteAsync(resourceGroupName, clusterName, context).block();
+ }
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNamespacesWithResponseAsync(
+ String resourceGroupName, String clusterName) {
+ 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listNamespaces(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNamespacesWithResponseAsync(
+ String resourceGroupName, String clusterName, 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 (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNamespaces(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listNamespacesAsync(String resourceGroupName, String clusterName) {
+ return listNamespacesWithResponseAsync(resourceGroupName, clusterName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EHNamespaceIdListResultInner listNamespaces(String resourceGroupName, String clusterName) {
+ return listNamespacesAsync(resourceGroupName, clusterName).block();
+ }
+
+ /**
+ * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param clusterName The name of the Event Hubs Cluster.
+ * @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 the List Namespace IDs operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listNamespacesWithResponse(
+ String resourceGroupName, String clusterName, Context context) {
+ return listNamespacesWithResponseAsync(resourceGroupName, clusterName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink 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 the List Event Hubs Clusters operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .