diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 29cf79b0db6f6..8220f10c9f248 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -340,6 +340,7 @@ com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.2;1.
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.0.0-beta.2;1.0.0-beta.3
+com.azure.resourcemanager:azure-resourcemanager-eventhubs-generated;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.2
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/CHANGELOG.md b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..675451e0ee44e
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-03-25)
+
+- Azure Resource Manager EventHubs client library for Java. This package contains Microsoft Azure SDK for EventHubs Management SDK. Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources. Package tag package-2022-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/README.md b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/README.md
new file mode 100644
index 0000000000000..884b57954b28b
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager EventHubs client library for Java
+
+Azure Resource Manager EventHubs client library for Java.
+
+This package contains Microsoft Azure SDK for EventHubs Management SDK. Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources. Package tag package-2022-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-eventhubs-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-eventhubs-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+EventHubsManager manager = EventHubsManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/SAMPLE.md b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/SAMPLE.md
new file mode 100644
index 0000000000000..5064fe6a82089
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/SAMPLE.md
@@ -0,0 +1,1916 @@
+# Code snippets and samples
+
+
+## ApplicationGroup
+
+- [CreateOrUpdateApplicationGroup](#applicationgroup_createorupdateapplicationgroup)
+- [Delete](#applicationgroup_delete)
+- [Get](#applicationgroup_get)
+- [ListByNamespace](#applicationgroup_listbynamespace)
+
+## Clusters
+
+- [CreateOrUpdate](#clusters_createorupdate)
+- [Delete](#clusters_delete)
+- [GetByResourceGroup](#clusters_getbyresourcegroup)
+- [List](#clusters_list)
+- [ListAvailableClusterRegion](#clusters_listavailableclusterregion)
+- [ListByResourceGroup](#clusters_listbyresourcegroup)
+- [ListNamespaces](#clusters_listnamespaces)
+- [Update](#clusters_update)
+
+## Configuration
+
+- [Get](#configuration_get)
+- [Patch](#configuration_patch)
+
+## ConsumerGroups
+
+- [CreateOrUpdate](#consumergroups_createorupdate)
+- [Delete](#consumergroups_delete)
+- [Get](#consumergroups_get)
+- [ListByEventHub](#consumergroups_listbyeventhub)
+
+## DisasterRecoveryConfigs
+
+- [BreakPairing](#disasterrecoveryconfigs_breakpairing)
+- [CheckNameAvailability](#disasterrecoveryconfigs_checknameavailability)
+- [CreateOrUpdate](#disasterrecoveryconfigs_createorupdate)
+- [Delete](#disasterrecoveryconfigs_delete)
+- [FailOver](#disasterrecoveryconfigs_failover)
+- [Get](#disasterrecoveryconfigs_get)
+- [GetAuthorizationRule](#disasterrecoveryconfigs_getauthorizationrule)
+- [List](#disasterrecoveryconfigs_list)
+- [ListAuthorizationRules](#disasterrecoveryconfigs_listauthorizationrules)
+- [ListKeys](#disasterrecoveryconfigs_listkeys)
+
+## EventHubs
+
+- [CreateOrUpdate](#eventhubs_createorupdate)
+- [CreateOrUpdateAuthorizationRule](#eventhubs_createorupdateauthorizationrule)
+- [Delete](#eventhubs_delete)
+- [DeleteAuthorizationRule](#eventhubs_deleteauthorizationrule)
+- [Get](#eventhubs_get)
+- [GetAuthorizationRule](#eventhubs_getauthorizationrule)
+- [ListAuthorizationRules](#eventhubs_listauthorizationrules)
+- [ListByNamespace](#eventhubs_listbynamespace)
+- [ListKeys](#eventhubs_listkeys)
+- [RegenerateKeys](#eventhubs_regeneratekeys)
+
+## Namespaces
+
+- [CheckNameAvailability](#namespaces_checknameavailability)
+- [CreateOrUpdate](#namespaces_createorupdate)
+- [CreateOrUpdateAuthorizationRule](#namespaces_createorupdateauthorizationrule)
+- [CreateOrUpdateNetworkRuleSet](#namespaces_createorupdatenetworkruleset)
+- [Delete](#namespaces_delete)
+- [DeleteAuthorizationRule](#namespaces_deleteauthorizationrule)
+- [GetAuthorizationRule](#namespaces_getauthorizationrule)
+- [GetByResourceGroup](#namespaces_getbyresourcegroup)
+- [GetNetworkRuleSet](#namespaces_getnetworkruleset)
+- [List](#namespaces_list)
+- [ListAuthorizationRules](#namespaces_listauthorizationrules)
+- [ListByResourceGroup](#namespaces_listbyresourcegroup)
+- [ListKeys](#namespaces_listkeys)
+- [ListNetworkRuleSet](#namespaces_listnetworkruleset)
+- [RegenerateKeys](#namespaces_regeneratekeys)
+- [Update](#namespaces_update)
+
+## NetworkSecurityPerimeterConfiguration
+
+- [List](#networksecurityperimeterconfiguration_list)
+
+## NetworkSecurityPerimeterConfigurationsOperation
+
+- [CreateOrUpdate](#networksecurityperimeterconfigurationsoperation_createorupdate)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [List](#privateendpointconnections_list)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+
+## SchemaRegistry
+
+- [CreateOrUpdate](#schemaregistry_createorupdate)
+- [Delete](#schemaregistry_delete)
+- [Get](#schemaregistry_get)
+- [ListByNamespace](#schemaregistry_listbynamespace)
+### ApplicationGroup_CreateOrUpdateApplicationGroup
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.MetricId;
+import com.azure.resourcemanager.eventhubs.generated.models.ThrottlingPolicy;
+import java.util.Arrays;
+
+/** Samples for ApplicationGroup CreateOrUpdateApplicationGroup. */
+public final class ApplicationGroupCreateOrUpdateApplicationGroupSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupCreate.json
+ */
+ /**
+ * Sample code: ApplicationGroupCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void applicationGroupCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .applicationGroups()
+ .define("appGroup1")
+ .withExistingNamespace("contosotest", "contoso-ua-test-eh-system-1")
+ .withIsEnabled(true)
+ .withClientAppGroupIdentifier("SASKeyName=KeyName")
+ .withPolicies(
+ Arrays
+ .asList(
+ new ThrottlingPolicy()
+ .withName("ThrottlingPolicy1")
+ .withRateLimitThreshold(7912L)
+ .withMetricId(MetricId.INCOMING_MESSAGES),
+ new ThrottlingPolicy()
+ .withName("ThrottlingPolicy2")
+ .withRateLimitThreshold(3951729L)
+ .withMetricId(MetricId.INCOMING_BYTES),
+ new ThrottlingPolicy()
+ .withName("ThrottlingPolicy3")
+ .withRateLimitThreshold(245175L)
+ .withMetricId(MetricId.OUTGOING_BYTES)))
+ .create();
+ }
+}
+```
+
+### ApplicationGroup_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationGroup Delete. */
+public final class ApplicationGroupDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupDelete.json
+ */
+ /**
+ * Sample code: ApplicationGroupDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void applicationGroupDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .applicationGroups()
+ .deleteWithResponse("contosotest", "contoso-ua-test-eh-system-1", "appGroup1", Context.NONE);
+ }
+}
+```
+
+### ApplicationGroup_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationGroup Get. */
+public final class ApplicationGroupGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json
+ */
+ /**
+ * Sample code: ApplicationGroupGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void applicationGroupGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .applicationGroups()
+ .getWithResponse("contosotest", "contoso-ua-test-eh-system-1", "appGroup1", Context.NONE);
+ }
+}
+```
+
+### ApplicationGroup_ListByNamespace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationGroup ListByNamespace. */
+public final class ApplicationGroupListByNamespaceSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupListByNamespace.json
+ */
+ /**
+ * Sample code: ListApplicationGroups.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void listApplicationGroups(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.applicationGroups().listByNamespace("contosotest", "contoso-ua-test-eh-system-1", Context.NONE);
+ }
+}
+```
+
+### Clusters_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterSku;
+import com.azure.resourcemanager.eventhubs.generated.models.ClusterSkuName;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Clusters CreateOrUpdate. */
+public final class ClustersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterPut.json
+ */
+ /**
+ * Sample code: ClusterPut.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clusterPut(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .clusters()
+ .define("testCluster")
+ .withRegion("South Central US")
+ .withExistingResourceGroup("myResourceGroup")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withSku(new ClusterSku().withName(ClusterSkuName.DEDICATED).withCapacity(1))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Clusters_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters Delete. */
+public final class ClustersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterDelete.json
+ */
+ /**
+ * Sample code: ClusterDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clusterDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().delete("myResourceGroup", "testCluster", Context.NONE);
+ }
+}
+```
+
+### Clusters_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters GetByResourceGroup. */
+public final class ClustersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterGet.json
+ */
+ /**
+ * Sample code: ClusterGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clusterGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().getByResourceGroupWithResponse("myResourceGroup", "testCluster", Context.NONE);
+ }
+}
+```
+
+### Clusters_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters List. */
+public final class ClustersListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClustersListBySubscription.json
+ */
+ /**
+ * Sample code: ClustersListBySubscription.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clustersListBySubscription(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().list(Context.NONE);
+ }
+}
+```
+
+### Clusters_ListAvailableClusterRegion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters ListAvailableClusterRegion. */
+public final class ClustersListAvailableClusterRegionSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ListAvailableClustersGet.json
+ */
+ /**
+ * Sample code: ListAvailableClusters.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void listAvailableClusters(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().listAvailableClusterRegionWithResponse(Context.NONE);
+ }
+}
+```
+
+### Clusters_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters ListByResourceGroup. */
+public final class ClustersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json
+ */
+ /**
+ * Sample code: ClustersListByResourceGroup.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clustersListByResourceGroup(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### Clusters_ListNamespaces
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Clusters ListNamespaces. */
+public final class ClustersListNamespacesSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ListNamespacesInClusterGet.json
+ */
+ /**
+ * Sample code: ListNamespacesInCluster.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void listNamespacesInCluster(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.clusters().listNamespacesWithResponse("myResourceGroup", "testCluster", Context.NONE);
+ }
+}
+```
+
+### Clusters_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.Cluster;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Clusters Update. */
+public final class ClustersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterPatch.json
+ */
+ /**
+ * Sample code: ClusterPatch.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clusterPatch(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ Cluster resource =
+ manager
+ .clusters()
+ .getByResourceGroupWithResponse("myResourceGroup", "testCluster", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag3", "value3", "tag4", "value4")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Configuration_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Configuration Get. */
+public final class ConfigurationGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterQuotaConfigurationGet.json
+ */
+ /**
+ * Sample code: ClustersQuotasConfigurationGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clustersQuotasConfigurationGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.configurations().getWithResponse("myResourceGroup", "testCluster", Context.NONE);
+ }
+}
+```
+
+### Configuration_Patch
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ClusterQuotaConfigurationPropertiesInner;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Configuration Patch. */
+public final class ConfigurationPatchSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/Clusters/ClusterQuotaConfigurationPatch.json
+ */
+ /**
+ * Sample code: ClustersQuotasConfigurationPatch.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void clustersQuotasConfigurationPatch(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .configurations()
+ .patchWithResponse(
+ "ArunMonocle",
+ "testCluster",
+ new ClusterQuotaConfigurationPropertiesInner()
+ .withSettings(mapOf("eventhub-per-namespace-quota", "20", "namespaces-per-cluster-quota", "200")),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ConsumerGroups_CreateOrUpdate
+
+```java
+/** Samples for ConsumerGroups CreateOrUpdate. */
+public final class ConsumerGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ConsumerGroup/EHConsumerGroupCreate.json
+ */
+ /**
+ * Sample code: ConsumerGroupCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void consumerGroupCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .consumerGroups()
+ .define("sdk-ConsumerGroup-5563")
+ .withExistingEventhub("ArunMonocle", "sdk-Namespace-2661", "sdk-EventHub-6681")
+ .withUserMetadata("New consumergroup")
+ .create();
+ }
+}
+```
+
+### ConsumerGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConsumerGroups Delete. */
+public final class ConsumerGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ConsumerGroup/EHConsumerGroupDelete.json
+ */
+ /**
+ * Sample code: ConsumerGroupDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void consumerGroupDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .consumerGroups()
+ .deleteWithResponse(
+ "ArunMonocle", "sdk-Namespace-2661", "sdk-EventHub-6681", "sdk-ConsumerGroup-5563", Context.NONE);
+ }
+}
+```
+
+### ConsumerGroups_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConsumerGroups Get. */
+public final class ConsumerGroupsGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ConsumerGroup/EHConsumerGroupGet.json
+ */
+ /**
+ * Sample code: ConsumerGroupGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void consumerGroupGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .consumerGroups()
+ .getWithResponse(
+ "ArunMonocle", "sdk-Namespace-2661", "sdk-EventHub-6681", "sdk-ConsumerGroup-5563", Context.NONE);
+ }
+}
+```
+
+### ConsumerGroups_ListByEventHub
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ConsumerGroups ListByEventHub. */
+public final class ConsumerGroupsListByEventHubSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ConsumerGroup/EHConsumerGroupListByEventHub.json
+ */
+ /**
+ * Sample code: ConsumerGroupsListAll.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void consumerGroupsListAll(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .consumerGroups()
+ .listByEventHub("ArunMonocle", "sdk-Namespace-2661", "sdk-EventHub-6681", null, null, Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_BreakPairing
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs BreakPairing. */
+public final class DisasterRecoveryConfigsBreakPairingSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasBreakPairing.json
+ */
+ /**
+ * Sample code: EHAliasBreakPairing.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasBreakPairing(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .breakPairingWithResponse(
+ "exampleResourceGroup", "sdk-Namespace-8859", "sdk-DisasterRecovery-3814", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.CheckNameAvailabilityParameter;
+
+/** Samples for DisasterRecoveryConfigs CheckNameAvailability. */
+public final class DisasterRecoveryConfigsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCheckNameAvailability.json
+ */
+ /**
+ * Sample code: NamespacesCheckNameAvailability.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespacesCheckNameAvailability(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .checkNameAvailabilityWithResponse(
+ "exampleResourceGroup",
+ "sdk-Namespace-9080",
+ new CheckNameAvailabilityParameter().withName("sdk-DisasterRecovery-9474"),
+ Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_CreateOrUpdate
+
+```java
+/** Samples for DisasterRecoveryConfigs CreateOrUpdate. */
+public final class DisasterRecoveryConfigsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasCreate.json
+ */
+ /**
+ * Sample code: EHAliasCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .define("sdk-DisasterRecovery-3814")
+ .withExistingNamespace("exampleResourceGroup", "sdk-Namespace-8859")
+ .withPartnerNamespace("sdk-Namespace-37")
+ .create();
+ }
+}
+```
+
+### DisasterRecoveryConfigs_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs Delete. */
+public final class DisasterRecoveryConfigsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasDelete.json
+ */
+ /**
+ * Sample code: EHAliasDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .deleteWithResponse(
+ "exampleResourceGroup", "sdk-Namespace-5849", "sdk-DisasterRecovery-3814", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_FailOver
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs FailOver. */
+public final class DisasterRecoveryConfigsFailOverSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasFailOver.json
+ */
+ /**
+ * Sample code: EHAliasFailOver.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasFailOver(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .failOverWithResponse(
+ "exampleResourceGroup", "sdk-Namespace-8859", "sdk-DisasterRecovery-3814", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs Get. */
+public final class DisasterRecoveryConfigsGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasGet.json
+ */
+ /**
+ * Sample code: EHAliasGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .getWithResponse("exampleResourceGroup", "sdk-Namespace-8859", "sdk-DisasterRecovery-3814", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_GetAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs GetAuthorizationRule. */
+public final class DisasterRecoveryConfigsGetAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleGet.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .getAuthorizationRuleWithResponse(
+ "exampleResourceGroup",
+ "sdk-Namespace-9080",
+ "sdk-DisasterRecovery-4879",
+ "sdk-Authrules-4879",
+ Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs List. */
+public final class DisasterRecoveryConfigsListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasList.json
+ */
+ /**
+ * Sample code: EHAliasList.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHAliasList(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.disasterRecoveryConfigs().list("exampleResourceGroup", "sdk-Namespace-8859", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_ListAuthorizationRules
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs ListAuthorizationRules. */
+public final class DisasterRecoveryConfigsListAuthorizationRulesSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListAll.json
+ */
+ /**
+ * Sample code: ListAuthorizationRules.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void listAuthorizationRules(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .listAuthorizationRules(
+ "exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4047", Context.NONE);
+ }
+}
+```
+
+### DisasterRecoveryConfigs_ListKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DisasterRecoveryConfigs ListKeys. */
+public final class DisasterRecoveryConfigsListKeysSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/EHAliasAuthorizationRuleListKey.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleListKey.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleListKey(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .disasterRecoveryConfigs()
+ .listKeysWithResponse(
+ "exampleResourceGroup",
+ "sdk-Namespace-2702",
+ "sdk-DisasterRecovery-4047",
+ "sdk-Authrules-1746",
+ Context.NONE);
+ }
+}
+```
+
+### EventHubs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.CaptureDescription;
+import com.azure.resourcemanager.eventhubs.generated.models.Destination;
+import com.azure.resourcemanager.eventhubs.generated.models.EncodingCaptureDescription;
+import com.azure.resourcemanager.eventhubs.generated.models.EntityStatus;
+
+/** Samples for EventHubs CreateOrUpdate. */
+public final class EventHubsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubCreate.json
+ */
+ /**
+ * Sample code: EventHubCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .define("sdk-EventHub-6547")
+ .withExistingNamespace("Default-NotificationHubs-AustraliaEast", "sdk-Namespace-5357")
+ .withMessageRetentionInDays(4L)
+ .withPartitionCount(4L)
+ .withStatus(EntityStatus.ACTIVE)
+ .withCaptureDescription(
+ new CaptureDescription()
+ .withEnabled(true)
+ .withEncoding(EncodingCaptureDescription.AVRO)
+ .withIntervalInSeconds(120)
+ .withSizeLimitInBytes(10485763)
+ .withDestination(
+ new Destination()
+ .withName("EventHubArchive.AzureBlockBlob")
+ .withStorageAccountResourceId(
+ "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage")
+ .withBlobContainer("container")
+ .withArchiveNameFormat(
+ "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}")))
+ .create();
+ }
+}
+```
+
+### EventHubs_CreateOrUpdateAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.AuthorizationRuleInner;
+import com.azure.resourcemanager.eventhubs.generated.models.AccessRights;
+import java.util.Arrays;
+
+/** Samples for EventHubs CreateOrUpdateAuthorizationRule. */
+public final class EventHubsCreateOrUpdateAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleCreate.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleCreate(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .createOrUpdateAuthorizationRuleWithResponse(
+ "ArunMonocle",
+ "sdk-Namespace-960",
+ "sdk-EventHub-532",
+ "sdk-Authrules-2513",
+ new AuthorizationRuleInner().withRights(Arrays.asList(AccessRights.LISTEN, AccessRights.SEND)),
+ Context.NONE);
+ }
+}
+```
+
+### EventHubs_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs Delete. */
+public final class EventHubsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubDelete.json
+ */
+ /**
+ * Sample code: EventHubDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.eventHubs().deleteWithResponse("ArunMonocle", "sdk-Namespace-5357", "sdk-EventHub-6547", Context.NONE);
+ }
+}
+```
+
+### EventHubs_DeleteAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs DeleteAuthorizationRule. */
+public final class EventHubsDeleteAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleDelete.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleDelete(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .deleteAuthorizationRuleWithResponse(
+ "ArunMonocle", "sdk-Namespace-960", "sdk-EventHub-532", "sdk-Authrules-2513", Context.NONE);
+ }
+}
+```
+
+### EventHubs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs Get. */
+public final class EventHubsGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubGet.json
+ */
+ /**
+ * Sample code: EventHubGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .getWithResponse(
+ "Default-NotificationHubs-AustraliaEast", "sdk-Namespace-716", "sdk-EventHub-10", Context.NONE);
+ }
+}
+```
+
+### EventHubs_GetAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs GetAuthorizationRule. */
+public final class EventHubsGetAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleGet.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .getAuthorizationRuleWithResponse(
+ "ArunMonocle", "sdk-Namespace-960", "sdk-EventHub-532", "sdk-Authrules-2513", Context.NONE);
+ }
+}
+```
+
+### EventHubs_ListAuthorizationRules
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs ListAuthorizationRules. */
+public final class EventHubsListAuthorizationRulesSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleListAll.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleListAll.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleListAll(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .listAuthorizationRules("ArunMonocle", "sdk-Namespace-960", "sdk-EventHub-532", Context.NONE);
+ }
+}
+```
+
+### EventHubs_ListByNamespace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs ListByNamespace. */
+public final class EventHubsListByNamespaceSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubListByNameSpace.json
+ */
+ /**
+ * Sample code: EventHubsListAll.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubsListAll(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .listByNamespace("Default-NotificationHubs-AustraliaEast", "sdk-Namespace-5357", null, null, Context.NONE);
+ }
+}
+```
+
+### EventHubs_ListKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventHubs ListKeys. */
+public final class EventHubsListKeysSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleListKey.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleListKey.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleListKey(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .listKeysWithResponse(
+ "ArunMonocle", "sdk-namespace-960", "sdk-EventHub-532", "sdk-Authrules-2513", Context.NONE);
+ }
+}
+```
+
+### EventHubs_RegenerateKeys
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.KeyType;
+import com.azure.resourcemanager.eventhubs.generated.models.RegenerateAccessKeyParameters;
+
+/** Samples for EventHubs RegenerateKeys. */
+public final class EventHubsRegenerateKeysSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EventHubs/EHEventHubAuthorizationRuleRegenerateKey.json
+ */
+ /**
+ * Sample code: EventHubAuthorizationRuleRegenerateKey.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eventHubAuthorizationRuleRegenerateKey(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .eventHubs()
+ .regenerateKeysWithResponse(
+ "ArunMonocle",
+ "sdk-namespace-960",
+ "sdk-EventHub-532",
+ "sdk-Authrules-1534",
+ new RegenerateAccessKeyParameters().withKeyType(KeyType.PRIMARY_KEY),
+ Context.NONE);
+ }
+}
+```
+
+### Namespaces_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.CheckNameAvailabilityParameter;
+
+/** Samples for Namespaces CheckNameAvailability. */
+public final class NamespacesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceCheckNameAvailability.json
+ */
+ /**
+ * Sample code: NamespacesCheckNameAvailability.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespacesCheckNameAvailability(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .checkNameAvailabilityWithResponse(
+ new CheckNameAvailabilityParameter().withName("sdk-Namespace-8458"), Context.NONE);
+ }
+}
+```
+
+### Namespaces_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.Encryption;
+import com.azure.resourcemanager.eventhubs.generated.models.Identity;
+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.UserAssignedIdentity;
+import com.azure.resourcemanager.eventhubs.generated.models.UserAssignedIdentityProperties;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Namespaces CreateOrUpdate. */
+public final class NamespacesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceCreate.json
+ */
+ /**
+ * Sample code: NamespaceCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespaceCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .define("NamespaceSample")
+ .withRegion("East US")
+ .withExistingResourceGroup("ResurceGroupSample")
+ .withIdentity(
+ new Identity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud1",
+ new UserAssignedIdentity(),
+ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2",
+ new UserAssignedIdentity())))
+ .withClusterArmId(
+ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/clusters/enc-test")
+ .withEncryption(
+ new Encryption()
+ .withKeyVaultProperties(
+ Arrays
+ .asList(
+ new KeyVaultProperties()
+ .withKeyName("Samplekey")
+ .withKeyVaultUri("https://aprao-keyvault-user.vault-int.azure-int.net/")
+ .withIdentity(
+ new UserAssignedIdentityProperties()
+ .withUserAssignedIdentity(
+ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud1"))))
+ .withKeySource(KeySource.MICROSOFT_KEY_VAULT))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Namespaces_CreateOrUpdateAuthorizationRule
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.AccessRights;
+import java.util.Arrays;
+
+/** Samples for Namespaces CreateOrUpdateAuthorizationRule. */
+public final class NamespacesCreateOrUpdateAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleCreate.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleCreate(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .defineAuthorizationRule("sdk-Authrules-1746")
+ .withExistingNamespace("ArunMonocle", "sdk-Namespace-2702")
+ .withRights(Arrays.asList(AccessRights.LISTEN, AccessRights.SEND))
+ .create();
+ }
+}
+```
+
+### Namespaces_CreateOrUpdateNetworkRuleSet
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.NetworkRuleSetInner;
+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.NetworkRuleIpAction;
+import com.azure.resourcemanager.eventhubs.generated.models.Subnet;
+import java.util.Arrays;
+
+/** Samples for Namespaces CreateOrUpdateNetworkRuleSet. */
+public final class NamespacesCreateOrUpdateNetworkRuleSetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetCreate.json
+ */
+ /**
+ * Sample code: NameSpaceNetworkRuleSetCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceNetworkRuleSetCreate(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .createOrUpdateNetworkRuleSetWithResponse(
+ "ResourceGroup",
+ "sdk-Namespace-6019",
+ new NetworkRuleSetInner()
+ .withDefaultAction(DefaultAction.DENY)
+ .withVirtualNetworkRules(
+ Arrays
+ .asList(
+ new NWRuleSetVirtualNetworkRules()
+ .withSubnet(
+ new Subnet()
+ .withId(
+ "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"))
+ .withIgnoreMissingVnetServiceEndpoint(true),
+ new NWRuleSetVirtualNetworkRules()
+ .withSubnet(
+ new Subnet()
+ .withId(
+ "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"))
+ .withIgnoreMissingVnetServiceEndpoint(false),
+ new NWRuleSetVirtualNetworkRules()
+ .withSubnet(
+ new Subnet()
+ .withId(
+ "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"))
+ .withIgnoreMissingVnetServiceEndpoint(false)))
+ .withIpRules(
+ Arrays
+ .asList(
+ new NWRuleSetIpRules().withIpMask("1.1.1.1").withAction(NetworkRuleIpAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.2").withAction(NetworkRuleIpAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.3").withAction(NetworkRuleIpAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.4").withAction(NetworkRuleIpAction.ALLOW),
+ new NWRuleSetIpRules().withIpMask("1.1.1.5").withAction(NetworkRuleIpAction.ALLOW))),
+ Context.NONE);
+ }
+}
+```
+
+### Namespaces_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces Delete. */
+public final class NamespacesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceDelete.json
+ */
+ /**
+ * Sample code: NameSpaceDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().delete("ResurceGroupSample", "NamespaceSample", Context.NONE);
+ }
+}
+```
+
+### Namespaces_DeleteAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces DeleteAuthorizationRule. */
+public final class NamespacesDeleteAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleDelete.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleDelete(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .deleteAuthorizationRuleWithResponse(
+ "ArunMonocle", "sdk-Namespace-8980", "sdk-Authrules-8929", Context.NONE);
+ }
+}
+```
+
+### Namespaces_GetAuthorizationRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces GetAuthorizationRule. */
+public final class NamespacesGetAuthorizationRuleSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleGet.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .getAuthorizationRuleWithResponse("ArunMonocle", "sdk-Namespace-2702", "sdk-Authrules-1746", Context.NONE);
+ }
+}
+```
+
+### Namespaces_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces GetByResourceGroup. */
+public final class NamespacesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceGet.json
+ */
+ /**
+ * Sample code: NameSpaceGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().getByResourceGroupWithResponse("ResurceGroupSample", "NamespaceSample", Context.NONE);
+ }
+}
+```
+
+### Namespaces_GetNetworkRuleSet
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces GetNetworkRuleSet. */
+public final class NamespacesGetNetworkRuleSetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetGet.json
+ */
+ /**
+ * Sample code: NameSpaceNetworkRuleSetGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceNetworkRuleSetGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().getNetworkRuleSetWithResponse("ResourceGroup", "sdk-Namespace-6019", Context.NONE);
+ }
+}
+```
+
+### Namespaces_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces List. */
+public final class NamespacesListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceList.json
+ */
+ /**
+ * Sample code: NamespacesListBySubscription.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespacesListBySubscription(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().list(Context.NONE);
+ }
+}
+```
+
+### Namespaces_ListAuthorizationRules
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces ListAuthorizationRules. */
+public final class NamespacesListAuthorizationRulesSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleListAll.json
+ */
+ /**
+ * Sample code: ListAuthorizationRules.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void listAuthorizationRules(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().listAuthorizationRules("ArunMonocle", "sdk-Namespace-2702", Context.NONE);
+ }
+}
+```
+
+### Namespaces_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces ListByResourceGroup. */
+public final class NamespacesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceListByResourceGroup.json
+ */
+ /**
+ * Sample code: NamespaceListByResourceGroup.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespaceListByResourceGroup(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().listByResourceGroup("ResurceGroupSample", Context.NONE);
+ }
+}
+```
+
+### Namespaces_ListKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces ListKeys. */
+public final class NamespacesListKeysSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleListKey.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleListKey.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleListKey(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .listKeysWithResponse("ArunMonocle", "sdk-Namespace-2702", "sdk-Authrules-1746", Context.NONE);
+ }
+}
+```
+
+### Namespaces_ListNetworkRuleSet
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Namespaces ListNetworkRuleSet. */
+public final class NamespacesListNetworkRuleSetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/EHNetworkRuleSetList.json
+ */
+ /**
+ * Sample code: NameSpaceNetworkRuleSetList.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceNetworkRuleSetList(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.namespaces().listNetworkRuleSetWithResponse("ResourceGroup", "sdk-Namespace-6019", Context.NONE);
+ }
+}
+```
+
+### Namespaces_RegenerateKeys
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.KeyType;
+import com.azure.resourcemanager.eventhubs.generated.models.RegenerateAccessKeyParameters;
+
+/** Samples for Namespaces RegenerateKeys. */
+public final class NamespacesRegenerateKeysSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceAuthorizationRuleRegenerateKey.json
+ */
+ /**
+ * Sample code: NameSpaceAuthorizationRuleRegenerateKey.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceAuthorizationRuleRegenerateKey(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .namespaces()
+ .regenerateKeysWithResponse(
+ "ArunMonocle",
+ "sdk-Namespace-8980",
+ "sdk-Authrules-8929",
+ new RegenerateAccessKeyParameters().withKeyType(KeyType.PRIMARY_KEY),
+ Context.NONE);
+ }
+}
+```
+
+### Namespaces_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.eventhubs.generated.models.EHNamespace;
+import com.azure.resourcemanager.eventhubs.generated.models.Identity;
+import com.azure.resourcemanager.eventhubs.generated.models.ManagedServiceIdentityType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Namespaces Update. */
+public final class NamespacesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/EHNameSpaceUpdate.json
+ */
+ /**
+ * Sample code: NamespacesUpdate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namespacesUpdate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ EHNamespace resource =
+ manager
+ .namespaces()
+ .getByResourceGroupWithResponse("ResurceGroupSample", "NamespaceSample", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withIdentity(
+ new Identity()
+ .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2",
+ null)))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### NetworkSecurityPerimeterConfiguration_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for NetworkSecurityPerimeterConfiguration List. */
+public final class NetworkSecurityPerimeterConfigurationListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/NetworkSecurityPerimeterConfigurationList.json
+ */
+ /**
+ * Sample code: NamspaceNetworkSecurityPerimeterConfigurationList.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void namspaceNetworkSecurityPerimeterConfigurationList(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .networkSecurityPerimeterConfigurations()
+ .listWithResponse("SDK-EventHub-4794", "sdk-Namespace-5828", Context.NONE);
+ }
+}
+```
+
+### NetworkSecurityPerimeterConfigurationsOperation_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for NetworkSecurityPerimeterConfigurationsOperation CreateOrUpdate. */
+public final class NetworkSecurityPerimeterConfigurationsOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/NetworkSecurityPerimeterConfigurationReconcile.json
+ */
+ /**
+ * Sample code: NetworkSecurityPerimeterConfigurationList.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void networkSecurityPerimeterConfigurationList(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .networkSecurityPerimeterConfigurationsOperations()
+ .createOrUpdate("SDK-EventHub-4794", "sdk-Namespace-5828", "resourceAssociation1", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/EHOperations_List.json
+ */
+ /**
+ * Sample code: EHOperations_List.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void eHOperationsList(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+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.azure.resourcemanager.eventhubs.generated.models.PrivateLinkConnectionStatus;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionCreate(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("privateEndpointConnectionName")
+ .withExistingNamespace("ArunMonocle", "sdk-Namespace-2924")
+ .withPrivateEndpoint(
+ new PrivateEndpoint()
+ .withId(
+ "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"))
+ .withPrivateLinkServiceConnectionState(
+ new ConnectionState().withStatus(PrivateLinkConnectionStatus.REJECTED).withDescription("testing"))
+ .withProvisioningState(EndPointProvisioningState.SUCCEEDED)
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionDelete.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionDelete(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("ArunMonocle", "sdk-Namespace-3285", "928c44d5-b7c6-423b-b6fa-811e0c27b3e0", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json
+ */
+ /**
+ * Sample code: NameSpacePrivateEndPointConnectionGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpacePrivateEndPointConnectionGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("SDK-EventHub-4794", "sdk-Namespace-5828", "privateEndpointConnectionName", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections List. */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionList.json
+ */
+ /**
+ * Sample code: NameSpaceCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpaceCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.privateEndpointConnections().list("SDK-EventHub-4794", "sdk-Namespace-5828", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources Get. */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateLinkResourcesGet.json
+ */
+ /**
+ * Sample code: NameSpacePrivateLinkResourcesGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void nameSpacePrivateLinkResourcesGet(
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.privateLinkResources().getWithResponse("ArunMonocle", "sdk-Namespace-2924", Context.NONE);
+ }
+}
+```
+
+### SchemaRegistry_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaCompatibility;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaType;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SchemaRegistry CreateOrUpdate. */
+public final class SchemaRegistryCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/SchemaRegistry/SchemaRegistryCreate.json
+ */
+ /**
+ * Sample code: SchemaRegistryCreate.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void schemaRegistryCreate(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .schemaRegistries()
+ .define("testSchemaGroup1")
+ .withExistingNamespace("alitest", "ali-ua-test-eh-system-1")
+ .withGroupProperties(mapOf())
+ .withSchemaCompatibility(SchemaCompatibility.FORWARD)
+ .withSchemaType(SchemaType.AVRO)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SchemaRegistry_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SchemaRegistry Delete. */
+public final class SchemaRegistryDeleteSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/SchemaRegistry/SchemaRegistryDelete.json
+ */
+ /**
+ * Sample code: SchemaRegistryDelete.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void schemaRegistryDelete(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .schemaRegistries()
+ .deleteWithResponse("alitest", "ali-ua-test-eh-system-1", "testSchemaGroup1", Context.NONE);
+ }
+}
+```
+
+### SchemaRegistry_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SchemaRegistry Get. */
+public final class SchemaRegistryGetSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/SchemaRegistry/SchemaRegistryGet.json
+ */
+ /**
+ * Sample code: SchemaRegistryGet.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void schemaRegistryGet(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager
+ .schemaRegistries()
+ .getWithResponse("alitest", "ali-ua-test-eh-system-1", "testSchemaGroup1", Context.NONE);
+ }
+}
+```
+
+### SchemaRegistry_ListByNamespace
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SchemaRegistry ListByNamespace. */
+public final class SchemaRegistryListByNamespaceSamples {
+ /*
+ * x-ms-original-file: specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/SchemaRegistry/SchemaRegistryListByNamespace.json
+ */
+ /**
+ * Sample code: SchemaRegistryListAll.
+ *
+ * @param manager Entry point to EventHubsManager.
+ */
+ public static void schemaRegistryListAll(com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager) {
+ manager.schemaRegistries().listByNamespace("alitest", "ali-ua-test-eh-system-1", null, null, Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/pom.xml b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/pom.xml
new file mode 100644
index 0000000000000..d22e744c44a9c
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-eventhubs-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for EventHubs Management
+ This package contains Microsoft Azure SDK for EventHubs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources. Package tag package-2022-01-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
+
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/EventHubsManager.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/EventHubsManager.java
new file mode 100644
index 0000000000000..7ace35674deb6
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/EventHubsManager.java
@@ -0,0 +1,397 @@
+// 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;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.eventhubs.generated.fluent.EventHubManagementClient;
+import com.azure.resourcemanager.eventhubs.generated.implementation.ApplicationGroupsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.ClustersImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.ConfigurationsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.ConsumerGroupsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.DisasterRecoveryConfigsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.EventHubManagementClientBuilder;
+import com.azure.resourcemanager.eventhubs.generated.implementation.EventHubsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.NamespacesImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.NetworkSecurityPerimeterConfigurationsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.NetworkSecurityPerimeterConfigurationsOperationsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.eventhubs.generated.implementation.SchemaRegistriesImpl;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroups;
+import com.azure.resourcemanager.eventhubs.generated.models.Clusters;
+import com.azure.resourcemanager.eventhubs.generated.models.Configurations;
+import com.azure.resourcemanager.eventhubs.generated.models.ConsumerGroups;
+import com.azure.resourcemanager.eventhubs.generated.models.DisasterRecoveryConfigs;
+import com.azure.resourcemanager.eventhubs.generated.models.EventHubs;
+import com.azure.resourcemanager.eventhubs.generated.models.Namespaces;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfigurations;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfigurationsOperations;
+import com.azure.resourcemanager.eventhubs.generated.models.Operations;
+import com.azure.resourcemanager.eventhubs.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.eventhubs.generated.models.PrivateLinkResources;
+import com.azure.resourcemanager.eventhubs.generated.models.SchemaRegistries;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/**
+ * Entry point to EventHubsManager. Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and
+ * VirtualNetworkRules resources.
+ */
+public final class EventHubsManager {
+ private Clusters clusters;
+
+ private Namespaces namespaces;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations;
+
+ private NetworkSecurityPerimeterConfigurationsOperations networkSecurityPerimeterConfigurationsOperations;
+
+ private Configurations configurations;
+
+ private DisasterRecoveryConfigs disasterRecoveryConfigs;
+
+ private EventHubs eventHubs;
+
+ private ConsumerGroups consumerGroups;
+
+ private Operations operations;
+
+ private SchemaRegistries schemaRegistries;
+
+ private ApplicationGroups applicationGroups;
+
+ private final EventHubManagementClient clientObject;
+
+ private EventHubsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new EventHubManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * 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 static EventHubsManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create EventHubsManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new EventHubsManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ 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 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) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ 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 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 NetworkSecurityPerimeterConfigurations. */
+ public NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations() {
+ if (this.networkSecurityPerimeterConfigurations == null) {
+ this.networkSecurityPerimeterConfigurations =
+ new NetworkSecurityPerimeterConfigurationsImpl(
+ clientObject.getNetworkSecurityPerimeterConfigurations(), this);
+ }
+ return networkSecurityPerimeterConfigurations;
+ }
+
+ /** @return Resource collection API of NetworkSecurityPerimeterConfigurationsOperations. */
+ public NetworkSecurityPerimeterConfigurationsOperations networkSecurityPerimeterConfigurationsOperations() {
+ if (this.networkSecurityPerimeterConfigurationsOperations == null) {
+ this.networkSecurityPerimeterConfigurationsOperations =
+ new NetworkSecurityPerimeterConfigurationsOperationsImpl(
+ clientObject.getNetworkSecurityPerimeterConfigurationsOperations(), this);
+ }
+ return networkSecurityPerimeterConfigurationsOperations;
+ }
+
+ /** @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 DisasterRecoveryConfigs. */
+ public DisasterRecoveryConfigs disasterRecoveryConfigs() {
+ if (this.disasterRecoveryConfigs == null) {
+ this.disasterRecoveryConfigs =
+ new DisasterRecoveryConfigsImpl(clientObject.getDisasterRecoveryConfigs(), this);
+ }
+ return disasterRecoveryConfigs;
+ }
+
+ /** @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 ConsumerGroups. */
+ public ConsumerGroups consumerGroups() {
+ if (this.consumerGroups == null) {
+ this.consumerGroups = new ConsumerGroupsImpl(clientObject.getConsumerGroups(), this);
+ }
+ return consumerGroups;
+ }
+
+ /** @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 SchemaRegistries. */
+ public SchemaRegistries schemaRegistries() {
+ if (this.schemaRegistries == null) {
+ this.schemaRegistries = new SchemaRegistriesImpl(clientObject.getSchemaRegistries(), this);
+ }
+ return schemaRegistries;
+ }
+
+ /** @return Resource collection API of ApplicationGroups. */
+ public ApplicationGroups applicationGroups() {
+ if (this.applicationGroups == null) {
+ this.applicationGroups = new ApplicationGroupsImpl(clientObject.getApplicationGroups(), this);
+ }
+ return applicationGroups;
+ }
+
+ /**
+ * @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/ApplicationGroupsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ApplicationGroupsClient.java
new file mode 100644
index 0000000000000..8768fc3dc5222
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/ApplicationGroupsClient.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.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.ApplicationGroupInner;
+
+/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
+public interface ApplicationGroupsClient {
+ /**
+ * Gets a list of application groups 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 application groups for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets a list of application groups 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 application groups for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Context context);
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Application Group object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner createOrUpdateApplicationGroup(
+ String resourceGroupName, String namespaceName, String applicationGroupName, ApplicationGroupInner parameters);
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateApplicationGroupWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String applicationGroupName,
+ ApplicationGroupInner parameters,
+ Context context);
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application 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 applicationGroupName);
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application 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 applicationGroupName, Context context);
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application 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 an ApplicationGroup for a Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner get(String resourceGroupName, String namespaceName, String applicationGroupName);
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application 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 an ApplicationGroup for a Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context);
+}
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 0000000000000..8d7ceeb060320
--- /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 0000000000000..c4405f05845f2
--- /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 0000000000000..13fcb6d0da9b7
--- /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 0000000000000..a4da9fd4b5cbc
--- /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 {
+ /**
+ * 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);
+
+ /**
+ * 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);
+}
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 0000000000000..90f41d48e0510
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/EventHubManagementClient.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;
+
+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 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 NetworkSecurityPerimeterConfigurationsClient object to access its operations.
+ *
+ * @return the NetworkSecurityPerimeterConfigurationsClient object.
+ */
+ NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations();
+
+ /**
+ * Gets the NetworkSecurityPerimeterConfigurationsOperationsClient object to access its operations.
+ *
+ * @return the NetworkSecurityPerimeterConfigurationsOperationsClient object.
+ */
+ NetworkSecurityPerimeterConfigurationsOperationsClient getNetworkSecurityPerimeterConfigurationsOperations();
+
+ /**
+ * Gets the ConfigurationsClient object to access its operations.
+ *
+ * @return the ConfigurationsClient object.
+ */
+ ConfigurationsClient getConfigurations();
+
+ /**
+ * Gets the DisasterRecoveryConfigsClient object to access its operations.
+ *
+ * @return the DisasterRecoveryConfigsClient object.
+ */
+ DisasterRecoveryConfigsClient getDisasterRecoveryConfigs();
+
+ /**
+ * Gets the EventHubsClient object to access its operations.
+ *
+ * @return the EventHubsClient object.
+ */
+ EventHubsClient getEventHubs();
+
+ /**
+ * Gets the ConsumerGroupsClient object to access its operations.
+ *
+ * @return the ConsumerGroupsClient object.
+ */
+ ConsumerGroupsClient getConsumerGroups();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the SchemaRegistriesClient object to access its operations.
+ *
+ * @return the SchemaRegistriesClient object.
+ */
+ SchemaRegistriesClient getSchemaRegistries();
+
+ /**
+ * Gets the ApplicationGroupsClient object to access its operations.
+ *
+ * @return the ApplicationGroupsClient object.
+ */
+ ApplicationGroupsClient getApplicationGroups();
+}
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 0000000000000..f2d208d5227a6
--- /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 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);
+
+ /**
+ * 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);
+}
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 0000000000000..9e1e4415c374a
--- /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/NetworkSecurityPerimeterConfigurationsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NetworkSecurityPerimeterConfigurationsClient.java
new file mode 100644
index 0000000000000..79745921f0103
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NetworkSecurityPerimeterConfigurationsClient.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.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.NetworkSecurityPerimeterConfigurationListInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * NetworkSecurityPerimeterConfigurationsClient.
+ */
+public interface NetworkSecurityPerimeterConfigurationsClient {
+ /**
+ * Gets list of current NetworkSecurityPerimeterConfiguration for 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 list of current NetworkSecurityPerimeterConfiguration for Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkSecurityPerimeterConfigurationListInner list(String resourceGroupName, String namespaceName);
+
+ /**
+ * Gets list of current NetworkSecurityPerimeterConfiguration for 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 list of current NetworkSecurityPerimeterConfiguration for Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String namespaceName, Context context);
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NetworkSecurityPerimeterConfigurationsOperationsClient.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NetworkSecurityPerimeterConfigurationsOperationsClient.java
new file mode 100644
index 0000000000000..1fec93cdb3e00
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/NetworkSecurityPerimeterConfigurationsOperationsClient.java
@@ -0,0 +1,76 @@
+// 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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * NetworkSecurityPerimeterConfigurationsOperationsClient.
+ */
+public interface NetworkSecurityPerimeterConfigurationsOperationsClient {
+ /**
+ * Refreshes any information about the association.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param resourceAssociationName The ResourceAssociation 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> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, String resourceAssociationName);
+
+ /**
+ * Refreshes any information about the association.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param resourceAssociationName The ResourceAssociation 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> beginCreateOrUpdate(
+ String resourceGroupName, String namespaceName, String resourceAssociationName, Context context);
+
+ /**
+ * Refreshes any information about the association.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param resourceAssociationName The ResourceAssociation 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 createOrUpdate(String resourceGroupName, String namespaceName, String resourceAssociationName);
+
+ /**
+ * Refreshes any information about the association.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param resourceAssociationName The ResourceAssociation 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 createOrUpdate(
+ String resourceGroupName, String namespaceName, String resourceAssociationName, 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 0000000000000..b02264d6caa15
--- /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 0000000000000..d4b01c2713cd5
--- /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 0000000000000..e48507af1b05c
--- /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 0000000000000..e08099bdd225f
--- /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 0000000000000..393fa80ae23c8
--- /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/ApplicationGroupInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ApplicationGroupInner.java
new file mode 100644
index 0000000000000..8958510d0eaa4
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ApplicationGroupInner.java
@@ -0,0 +1,149 @@
+// 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.ApplicationGroupPolicy;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The Application Group object. */
+@Fluent
+public final class ApplicationGroupInner extends ProxyResource {
+ /*
+ * The properties property.
+ */
+ @JsonProperty(value = "properties")
+ private ApplicationGroupProperties 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 ApplicationGroupProperties 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 isEnabled property: Determines if Application Group is allowed to create connection with namespace or
+ * not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no
+ * new connections will be allowed.
+ *
+ * @return the isEnabled value.
+ */
+ public Boolean isEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().isEnabled();
+ }
+
+ /**
+ * Set the isEnabled property: Determines if Application Group is allowed to create connection with namespace or
+ * not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no
+ * new connections will be allowed.
+ *
+ * @param isEnabled the isEnabled value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withIsEnabled(Boolean isEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationGroupProperties();
+ }
+ this.innerProperties().withIsEnabled(isEnabled);
+ return this;
+ }
+
+ /**
+ * Get the clientAppGroupIdentifier property: The Unique identifier for application group.Supports
+ * SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
+ *
+ * @return the clientAppGroupIdentifier value.
+ */
+ public String clientAppGroupIdentifier() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientAppGroupIdentifier();
+ }
+
+ /**
+ * Set the clientAppGroupIdentifier property: The Unique identifier for application group.Supports
+ * SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
+ *
+ * @param clientAppGroupIdentifier the clientAppGroupIdentifier value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withClientAppGroupIdentifier(String clientAppGroupIdentifier) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationGroupProperties();
+ }
+ this.innerProperties().withClientAppGroupIdentifier(clientAppGroupIdentifier);
+ return this;
+ }
+
+ /**
+ * Get the policies property: List of group policies that define the behavior of application group. The policies can
+ * support resource governance scenarios such as limiting ingress or egress traffic.
+ *
+ * @return the policies value.
+ */
+ public List policies() {
+ return this.innerProperties() == null ? null : this.innerProperties().policies();
+ }
+
+ /**
+ * Set the policies property: List of group policies that define the behavior of application group. The policies can
+ * support resource governance scenarios such as limiting ingress or egress traffic.
+ *
+ * @param policies the policies value to set.
+ * @return the ApplicationGroupInner object itself.
+ */
+ public ApplicationGroupInner withPolicies(List policies) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationGroupProperties();
+ }
+ this.innerProperties().withPolicies(policies);
+ 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/ApplicationGroupProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ApplicationGroupProperties.java
new file mode 100644
index 0000000000000..359fc97ec2e82
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/ApplicationGroupProperties.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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroupPolicy;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The ApplicationGroupProperties model. */
+@Fluent
+public final class ApplicationGroupProperties {
+ /*
+ * Determines if Application Group is allowed to create connection with
+ * namespace or not. Once the isEnabled is set to false, all the existing
+ * connections of application group gets dropped and no new connections
+ * will be allowed
+ */
+ @JsonProperty(value = "isEnabled")
+ private Boolean isEnabled;
+
+ /*
+ * The Unique identifier for application group.Supports
+ * SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)
+ */
+ @JsonProperty(value = "clientAppGroupIdentifier", required = true)
+ private String clientAppGroupIdentifier;
+
+ /*
+ * List of group policies that define the behavior of application group.
+ * The policies can support resource governance scenarios such as limiting
+ * ingress or egress traffic.
+ */
+ @JsonProperty(value = "policies")
+ private List policies;
+
+ /**
+ * Get the isEnabled property: Determines if Application Group is allowed to create connection with namespace or
+ * not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no
+ * new connections will be allowed.
+ *
+ * @return the isEnabled value.
+ */
+ public Boolean isEnabled() {
+ return this.isEnabled;
+ }
+
+ /**
+ * Set the isEnabled property: Determines if Application Group is allowed to create connection with namespace or
+ * not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no
+ * new connections will be allowed.
+ *
+ * @param isEnabled the isEnabled value to set.
+ * @return the ApplicationGroupProperties object itself.
+ */
+ public ApplicationGroupProperties withIsEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ return this;
+ }
+
+ /**
+ * Get the clientAppGroupIdentifier property: The Unique identifier for application group.Supports
+ * SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
+ *
+ * @return the clientAppGroupIdentifier value.
+ */
+ public String clientAppGroupIdentifier() {
+ return this.clientAppGroupIdentifier;
+ }
+
+ /**
+ * Set the clientAppGroupIdentifier property: The Unique identifier for application group.Supports
+ * SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid).
+ *
+ * @param clientAppGroupIdentifier the clientAppGroupIdentifier value to set.
+ * @return the ApplicationGroupProperties object itself.
+ */
+ public ApplicationGroupProperties withClientAppGroupIdentifier(String clientAppGroupIdentifier) {
+ this.clientAppGroupIdentifier = clientAppGroupIdentifier;
+ return this;
+ }
+
+ /**
+ * Get the policies property: List of group policies that define the behavior of application group. The policies can
+ * support resource governance scenarios such as limiting ingress or egress traffic.
+ *
+ * @return the policies value.
+ */
+ public List policies() {
+ return this.policies;
+ }
+
+ /**
+ * Set the policies property: List of group policies that define the behavior of application group. The policies can
+ * support resource governance scenarios such as limiting ingress or egress traffic.
+ *
+ * @param policies the policies value to set.
+ * @return the ApplicationGroupProperties object itself.
+ */
+ public ApplicationGroupProperties withPolicies(List policies) {
+ this.policies = policies;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (clientAppGroupIdentifier() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property clientAppGroupIdentifier in model ApplicationGroupProperties"));
+ }
+ if (policies() != null) {
+ policies().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupProperties.class);
+}
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 0000000000000..ad2d9e683ccec
--- /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 0000000000000..6826c6d27aa15
--- /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 0000000000000..c9ab836a6efba
--- /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 0000000000000..082cf66c60ab2
--- /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 0000000000000..6ba4b34bddd23
--- /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 0000000000000..7ebb8f6bd3533
--- /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 0000000000000..a1f1308d6f672
--- /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 0000000000000..dafb4fc50304e
--- /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 0000000000000..23e451b51720f
--- /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 0000000000000..0835ebc0340a5
--- /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 0000000000000..c66a79e7c68c5
--- /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 0000000000000..fb6aee65603f0
--- /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 0000000000000..bfe93d7b15220
--- /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 0000000000000..beb160a29aa13
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceInner.java
@@ -0,0 +1,451 @@
+// 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.Encryption;
+import com.azure.resourcemanager.eventhubs.generated.models.Identity;
+import com.azure.resourcemanager.eventhubs.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.eventhubs.generated.models.Sku;
+import com.azure.resourcemanager.eventhubs.generated.models.TlsVersion;
+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 identity;
+
+ /*
+ * 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 identity property: Properties of BYOK Identity description.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Properties of BYOK Identity description.
+ *
+ * @param identity the identity value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ 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: 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 minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'.
+ *
+ * @return the minimumTlsVersion value.
+ */
+ public TlsVersion minimumTlsVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().minimumTlsVersion();
+ }
+
+ /**
+ * Set the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'.
+ *
+ * @param minimumTlsVersion the minimumTlsVersion value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withMinimumTlsVersion(minimumTlsVersion);
+ 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 publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess 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 EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ 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 encryption property: Properties of BYOK Encryption description.
+ *
+ * @return the encryption value.
+ */
+ public Encryption encryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
+ }
+
+ /**
+ * Set the encryption property: Properties of BYOK Encryption description.
+ *
+ * @param encryption the encryption value to set.
+ * @return the EHNamespaceInner object itself.
+ */
+ public EHNamespaceInner withEncryption(Encryption encryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EHNamespaceProperties();
+ }
+ this.innerProperties().withEncryption(encryption);
+ 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (identity() != null) {
+ identity().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 0000000000000..30b4539351157
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/EHNamespaceProperties.java
@@ -0,0 +1,421 @@
+// 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.Encryption;
+import com.azure.resourcemanager.eventhubs.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.eventhubs.generated.models.TlsVersion;
+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 {
+ /*
+ * The minimum TLS version for the cluster to support, e.g. '1.2'
+ */
+ @JsonProperty(value = "minimumTlsVersion")
+ private TlsVersion minimumTlsVersion;
+
+ /*
+ * 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;
+
+ /*
+ * This determines if traffic is allowed over public network. By default it
+ * is enabled.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * 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 encryption;
+
+ /*
+ * 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 minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'.
+ *
+ * @return the minimumTlsVersion value.
+ */
+ public TlsVersion minimumTlsVersion() {
+ return this.minimumTlsVersion;
+ }
+
+ /**
+ * Set the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'.
+ *
+ * @param minimumTlsVersion the minimumTlsVersion value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
+ this.minimumTlsVersion = minimumTlsVersion;
+ return this;
+ }
+
+ /**
+ * 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 publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is
+ * enabled.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess 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 EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ 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 encryption property: Properties of BYOK Encryption description.
+ *
+ * @return the encryption value.
+ */
+ public Encryption encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: Properties of BYOK Encryption description.
+ *
+ * @param encryption the encryption value to set.
+ * @return the EHNamespaceProperties object itself.
+ */
+ public EHNamespaceProperties withEncryption(Encryption encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (encryption() != null) {
+ encryption().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/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 0000000000000..1d4b72964a7e2
--- /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 0000000000000..8fb2be4e91c3e
--- /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/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 0000000000000..63cbbe8cb9453
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetInner.java
@@ -0,0 +1,196 @@
+// 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. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network
+ * security perimeter and profile's access rules.
+ *
+ * @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. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network
+ * security perimeter and profile's access rules.
+ *
+ * @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 0000000000000..85fb78a4c00a3
--- /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 0000000000000..b32916b46f564
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkRuleSetProperties.java
@@ -0,0 +1,170 @@
+// 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. If value is SecuredByPerimeter then Inbound and Outbound
+ * communication is controlled by the network security perimeter and
+ * profile's access rules.
+ */
+ @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. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network
+ * security perimeter and profile's access rules.
+ *
+ * @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. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network
+ * security perimeter and profile's access rules.
+ *
+ * @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/NetworkSecurityPerimeterConfigurationListInner.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkSecurityPerimeterConfigurationListInner.java
new file mode 100644
index 0000000000000..150e8ef9a1303
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkSecurityPerimeterConfigurationListInner.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.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfiguration;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Result of the List NetworkSecurityPerimeterConfiguration operation. */
+@Immutable
+public final class NetworkSecurityPerimeterConfigurationListInner {
+ /*
+ * A collection of NetworkSecurityPerimeterConfigurations
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /**
+ * Get the value property: A collection of NetworkSecurityPerimeterConfigurations.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * 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/NetworkSecurityPerimeterConfigurationProperties.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
new file mode 100644
index 0000000000000..22a5a7e9bb750
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
@@ -0,0 +1,137 @@
+// 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.NetworkSecurityPerimeter;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfigurationPropertiesProfile;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation;
+import com.azure.resourcemanager.eventhubs.generated.models.NetworkSecurityPerimeterConfigurationProvisioningState;
+import com.azure.resourcemanager.eventhubs.generated.models.ProvisioningIssue;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of NetworkSecurityPerimeterConfiguration. */
+@Fluent
+public final class NetworkSecurityPerimeterConfigurationProperties {
+ /*
+ * Provisioning state of NetworkSecurityPerimeter configuration propagation
+ */
+ @JsonProperty(value = "provisioningState")
+ private NetworkSecurityPerimeterConfigurationProvisioningState provisioningState;
+
+ /*
+ * List of Provisioning Issues if any
+ */
+ @JsonProperty(value = "provisioningIssues")
+ private List provisioningIssues;
+
+ /*
+ * NetworkSecurityPerimeter related information
+ */
+ @JsonProperty(value = "networkSecurityPerimeter", access = JsonProperty.Access.WRITE_ONLY)
+ private NetworkSecurityPerimeter networkSecurityPerimeter;
+
+ /*
+ * Information about resource association
+ */
+ @JsonProperty(value = "resourceAssociation", access = JsonProperty.Access.WRITE_ONLY)
+ private NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation;
+
+ /*
+ * Information about current network profile
+ */
+ @JsonProperty(value = "profile", access = JsonProperty.Access.WRITE_ONLY)
+ private NetworkSecurityPerimeterConfigurationPropertiesProfile profile;
+
+ /**
+ * Get the provisioningState property: Provisioning state of NetworkSecurityPerimeter configuration propagation.
+ *
+ * @return the provisioningState value.
+ */
+ public NetworkSecurityPerimeterConfigurationProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of NetworkSecurityPerimeter configuration propagation.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationProperties withProvisioningState(
+ NetworkSecurityPerimeterConfigurationProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningIssues property: List of Provisioning Issues if any.
+ *
+ * @return the provisioningIssues value.
+ */
+ public List provisioningIssues() {
+ return this.provisioningIssues;
+ }
+
+ /**
+ * Set the provisioningIssues property: List of Provisioning Issues if any.
+ *
+ * @param provisioningIssues the provisioningIssues value to set.
+ * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationProperties withProvisioningIssues(
+ List provisioningIssues) {
+ this.provisioningIssues = provisioningIssues;
+ return this;
+ }
+
+ /**
+ * Get the networkSecurityPerimeter property: NetworkSecurityPerimeter related information.
+ *
+ * @return the networkSecurityPerimeter value.
+ */
+ public NetworkSecurityPerimeter networkSecurityPerimeter() {
+ return this.networkSecurityPerimeter;
+ }
+
+ /**
+ * Get the resourceAssociation property: Information about resource association.
+ *
+ * @return the resourceAssociation value.
+ */
+ public NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation resourceAssociation() {
+ return this.resourceAssociation;
+ }
+
+ /**
+ * Get the profile property: Information about current network profile.
+ *
+ * @return the profile value.
+ */
+ public NetworkSecurityPerimeterConfigurationPropertiesProfile profile() {
+ return this.profile;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (provisioningIssues() != null) {
+ provisioningIssues().forEach(e -> e.validate());
+ }
+ if (networkSecurityPerimeter() != null) {
+ networkSecurityPerimeter().validate();
+ }
+ if (resourceAssociation() != null) {
+ resourceAssociation().validate();
+ }
+ if (profile() != null) {
+ profile().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 0000000000000..3bfe2ddebfaf1
--- /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 0000000000000..46518fd9b0223
--- /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 0000000000000..c6de641ab3c85
--- /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 0000000000000..94fbf8a3a499f
--- /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 0000000000000..87d9a0970b04c
--- /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 0000000000000..3f72fd72cd247
--- /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 0000000000000..31281e29bb91d
--- /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/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 0000000000000..51afc5de69759
--- /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 0000000000000..3c7d629f797ff
--- /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 0000000000000..a87e58ed55897
--- /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/ApplicationGroupImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupImpl.java
new file mode 100644
index 0000000000000..3d57ee72828d2
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupImpl.java
@@ -0,0 +1,185 @@
+// 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.ApplicationGroupInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroup;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroupPolicy;
+import java.util.Collections;
+import java.util.List;
+
+public final class ApplicationGroupImpl
+ implements ApplicationGroup, ApplicationGroup.Definition, ApplicationGroup.Update {
+ private ApplicationGroupInner 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 Boolean isEnabled() {
+ return this.innerModel().isEnabled();
+ }
+
+ public String clientAppGroupIdentifier() {
+ return this.innerModel().clientAppGroupIdentifier();
+ }
+
+ public List policies() {
+ List inner = this.innerModel().policies();
+ 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 ApplicationGroupInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String namespaceName;
+
+ private String applicationGroupName;
+
+ public ApplicationGroupImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ public ApplicationGroup create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateApplicationGroupWithResponse(
+ resourceGroupName, namespaceName, applicationGroupName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateApplicationGroupWithResponse(
+ resourceGroupName, namespaceName, applicationGroupName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationGroupImpl(String name, com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerObject = new ApplicationGroupInner();
+ this.serviceManager = serviceManager;
+ this.applicationGroupName = name;
+ }
+
+ public ApplicationGroupImpl update() {
+ return this;
+ }
+
+ public ApplicationGroup apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateApplicationGroupWithResponse(
+ resourceGroupName, namespaceName, applicationGroupName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .createOrUpdateApplicationGroupWithResponse(
+ resourceGroupName, namespaceName, applicationGroupName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ApplicationGroupImpl(
+ ApplicationGroupInner 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.applicationGroupName = Utils.getValueFromIdByName(innerObject.id(), "applicationGroups");
+ }
+
+ public ApplicationGroup refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .getWithResponse(resourceGroupName, namespaceName, applicationGroupName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroup refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getApplicationGroups()
+ .getWithResponse(resourceGroupName, namespaceName, applicationGroupName, context)
+ .getValue();
+ return this;
+ }
+
+ public ApplicationGroupImpl withIsEnabled(Boolean isEnabled) {
+ this.innerModel().withIsEnabled(isEnabled);
+ return this;
+ }
+
+ public ApplicationGroupImpl withClientAppGroupIdentifier(String clientAppGroupIdentifier) {
+ this.innerModel().withClientAppGroupIdentifier(clientAppGroupIdentifier);
+ return this;
+ }
+
+ public ApplicationGroupImpl withPolicies(List policies) {
+ this.innerModel().withPolicies(policies);
+ return this;
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsClientImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsClientImpl.java
new file mode 100644
index 0000000000000..ab6da6279f0f1
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsClientImpl.java
@@ -0,0 +1,908 @@
+// 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.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.eventhubs.generated.fluent.ApplicationGroupsClient;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroupListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
+public final class ApplicationGroupsClientImpl implements ApplicationGroupsClient {
+ /** The proxy service used to perform REST calls. */
+ private final ApplicationGroupsService service;
+
+ /** The service client containing this operation class. */
+ private final EventHubManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ApplicationGroupsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ApplicationGroupsClientImpl(EventHubManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ApplicationGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for EventHubManagementClientApplicationGroups to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "EventHubManagementCl")
+ private interface ApplicationGroupsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces"
+ + "/{namespaceName}/applicationGroups")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByNamespace(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces"
+ + "/{namespaceName}/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdateApplicationGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") ApplicationGroupInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces"
+ + "/{namespaceName}/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces"
+ + "/{namespaceName}/applicationGroups/{applicationGroupName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("namespaceName") String namespaceName,
+ @PathParam("applicationGroupName") String applicationGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByNamespaceNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByNamespaceSinglePageAsync(
+ String resourceGroupName, String namespaceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName 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
+ .listByNamespace(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByNamespaceSinglePageAsync(
+ String resourceGroupName, String namespaceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName 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
+ .listByNamespace(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByNamespaceAsync(String resourceGroupName, String namespaceName) {
+ return new PagedFlux<>(
+ () -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName),
+ nextLink -> listByNamespaceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByNamespaceAsync(
+ String resourceGroupName, String namespaceName, Context context) {
+ return new PagedFlux<>(
+ () -> listByNamespaceSinglePageAsync(resourceGroupName, namespaceName, context),
+ nextLink -> listByNamespaceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByNamespace(String resourceGroupName, String namespaceName) {
+ return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName));
+ }
+
+ /**
+ * Gets a list of application groups 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 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 application groups for a Namespace as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Context context) {
+ return new PagedIterable<>(listByNamespaceAsync(resourceGroupName, namespaceName, context));
+ }
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateApplicationGroupWithResponseAsync(
+ String resourceGroupName, String namespaceName, String applicationGroupName, ApplicationGroupInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdateApplicationGroup(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateApplicationGroupWithResponseAsync(
+ String resourceGroupName,
+ String namespaceName,
+ String applicationGroupName,
+ ApplicationGroupInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdateApplicationGroup(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateApplicationGroupAsync(
+ String resourceGroupName, String namespaceName, String applicationGroupName, ApplicationGroupInner parameters) {
+ return createOrUpdateApplicationGroupWithResponseAsync(
+ resourceGroupName, namespaceName, applicationGroupName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationGroupInner createOrUpdateApplicationGroup(
+ String resourceGroupName, String namespaceName, String applicationGroupName, ApplicationGroupInner parameters) {
+ return createOrUpdateApplicationGroupAsync(resourceGroupName, namespaceName, applicationGroupName, parameters)
+ .block();
+ }
+
+ /**
+ * Creates or updates an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param parameters The ApplicationGroup.
+ * @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 Application Group object along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateApplicationGroupWithResponse(
+ String resourceGroupName,
+ String namespaceName,
+ String applicationGroupName,
+ ApplicationGroupInner parameters,
+ Context context) {
+ return createOrUpdateApplicationGroupWithResponseAsync(
+ resourceGroupName, namespaceName, applicationGroupName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 namespaceName, String applicationGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 namespaceName, String applicationGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 namespaceName, String applicationGroupName) {
+ return deleteWithResponseAsync(resourceGroupName, namespaceName, applicationGroupName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 namespaceName, String applicationGroupName) {
+ deleteAsync(resourceGroupName, namespaceName, applicationGroupName).block();
+ }
+
+ /**
+ * Deletes an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, namespaceName, applicationGroupName, context).block();
+ }
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 an ApplicationGroup for a Namespace along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String namespaceName, String applicationGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 an ApplicationGroup for a Namespace along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (namespaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
+ }
+ if (applicationGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter applicationGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ namespaceName,
+ applicationGroupName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 an ApplicationGroup for a Namespace on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String namespaceName, String applicationGroupName) {
+ return getWithResponseAsync(resourceGroupName, namespaceName, applicationGroupName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 an ApplicationGroup for a Namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApplicationGroupInner get(String resourceGroupName, String namespaceName, String applicationGroupName) {
+ return getAsync(resourceGroupName, namespaceName, applicationGroupName).block();
+ }
+
+ /**
+ * Gets an ApplicationGroup for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name.
+ * @param applicationGroupName The Application Group name.
+ * @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 an ApplicationGroup for a Namespace along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context) {
+ return getWithResponseAsync(resourceGroupName, namespaceName, applicationGroupName, 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 from the List Application Groups operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByNamespaceNextSinglePageAsync(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.listByNamespaceNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the List Application Groups operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByNamespaceNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByNamespaceNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsImpl.java b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsImpl.java
new file mode 100644
index 0000000000000..918ebc8364289
--- /dev/null
+++ b/sdk/eventhubs/azure-resourcemanager-eventhubs-generated/src/main/java/com/azure/resourcemanager/eventhubs/generated/implementation/ApplicationGroupsImpl.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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.eventhubs.generated.fluent.ApplicationGroupsClient;
+import com.azure.resourcemanager.eventhubs.generated.fluent.models.ApplicationGroupInner;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroup;
+import com.azure.resourcemanager.eventhubs.generated.models.ApplicationGroups;
+
+public final class ApplicationGroupsImpl implements ApplicationGroups {
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupsImpl.class);
+
+ private final ApplicationGroupsClient innerClient;
+
+ private final com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager;
+
+ public ApplicationGroupsImpl(
+ ApplicationGroupsClient innerClient,
+ com.azure.resourcemanager.eventhubs.generated.EventHubsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByNamespace(String resourceGroupName, String namespaceName) {
+ PagedIterable inner =
+ this.serviceClient().listByNamespace(resourceGroupName, namespaceName);
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByNamespace(
+ String resourceGroupName, String namespaceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByNamespace(resourceGroupName, namespaceName, context);
+ return Utils.mapPage(inner, inner1 -> new ApplicationGroupImpl(inner1, this.manager()));
+ }
+
+ public void delete(String resourceGroupName, String namespaceName, String applicationGroupName) {
+ this.serviceClient().delete(resourceGroupName, namespaceName, applicationGroupName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, namespaceName, applicationGroupName, context);
+ }
+
+ public ApplicationGroup get(String resourceGroupName, String namespaceName, String applicationGroupName) {
+ ApplicationGroupInner inner = this.serviceClient().get(resourceGroupName, namespaceName, applicationGroupName);
+ if (inner != null) {
+ return new ApplicationGroupImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String namespaceName, String applicationGroupName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, namespaceName, applicationGroupName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ApplicationGroupImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ApplicationGroup getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, namespaceName, applicationGroupName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, namespaceName, applicationGroupName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, namespaceName, applicationGroupName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String namespaceName = Utils.getValueFromIdByName(id, "namespaces");
+ if (namespaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'namespaces'.", id)));
+ }
+ String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
+ if (applicationGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'applicationGroups'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, namespaceName, applicationGroupName, context);
+ }
+
+ private ApplicationGroupsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.eventhubs.generated.EventHubsManager manager() {
+ return this.serviceManager;
+ }
+
+ public ApplicationGroupImpl define(String name) {
+ return new ApplicationGroupImpl(name, this.manager());
+ }
+}
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 0000000000000..a2a24dda84205
--- /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 0000000000000..f5e5054557fa0
--- /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 0000000000000..e744a06779188
--- /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 0000000000000..dd1a076e0c7e0
--- /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 0000000000000..3a1fed825f745
--- /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 0000000000000..7df982d939ee1
--- /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 0000000000000..ed82c2009a5ca
--- /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