diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 424ff96edabb..224ee5f0e066 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -331,6 +331,7 @@ com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta
com.azure.resourcemanager:azure-resourcemanager-loadtestservice;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-azureactivedirectory;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index 9cb3ad482fa8..bba0d5ebc558 100644
--- a/pom.xml
+++ b/pom.xml
@@ -723,6 +723,7 @@
sdk/automanage
sdk/automation
sdk/avs
+ sdk/azureactivedirectory
sdk/azurearcdata
sdk/azurestack
sdk/azurestackhci
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/CHANGELOG.md b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/CHANGELOG.md
new file mode 100644
index 000000000000..628abad5274d
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-01-17)
+
+- Azure Resource Manager Azureactivedirectory client library for Java. This package contains Microsoft Azure SDK for Azureactivedirectory Management SDK. Azure Active Directory Client. Package tag package-preview-2017-04. 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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/README.md b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/README.md
new file mode 100644
index 000000000000..c2bef9383a82
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager Azureactivedirectory client library for Java
+
+Azure Resource Manager Azureactivedirectory client library for Java.
+
+This package contains Microsoft Azure SDK for Azureactivedirectory Management SDK. Azure Active Directory Client. Package tag package-preview-2017-04. 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-azureactivedirectory;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-azureactivedirectory
+ 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();
+AzureactivedirectoryManager manager = AzureactivedirectoryManager
+ .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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/SAMPLE.md b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/SAMPLE.md
new file mode 100644
index 000000000000..b115772484f9
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/SAMPLE.md
@@ -0,0 +1,172 @@
+# Code snippets and samples
+
+
+## DiagnosticSettingsCategory
+
+- [List](#diagnosticsettingscategory_list)
+
+## DiagnosticSettingsOperation
+
+- [CreateOrUpdate](#diagnosticsettingsoperation_createorupdate)
+- [Delete](#diagnosticsettingsoperation_delete)
+- [Get](#diagnosticsettingsoperation_get)
+- [List](#diagnosticsettingsoperation_list)
+
+## Operations
+
+- [List](#operations_list)
+### DiagnosticSettingsCategory_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsCategory List. */
+public final class DiagnosticSettingsCategoryListSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/listDiagnosticSettingsCategories.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting categories.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void getsTheDiagnosticSettingCategories(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager.diagnosticSettingsCategories().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azureactivedirectory.fluent.models.DiagnosticSettingsResourceInner;
+import com.azure.resourcemanager.azureactivedirectory.models.Category;
+import com.azure.resourcemanager.azureactivedirectory.models.LogSettings;
+import com.azure.resourcemanager.azureactivedirectory.models.RetentionPolicy;
+import java.util.Arrays;
+
+/** Samples for DiagnosticSettingsOperation CreateOrUpdate. */
+public final class DiagnosticSettingsOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/createOrUpdateDiagnosticSetting.json
+ */
+ /**
+ * Sample code: BatchAccountDelete.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void batchAccountDelete(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager
+ .diagnosticSettingsOperations()
+ .createOrUpdateWithResponse(
+ "mysetting",
+ new DiagnosticSettingsResourceInner()
+ .withStorageAccountId(
+ "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1")
+ .withWorkspaceId("")
+ .withEventHubAuthorizationRuleId(
+ "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule")
+ .withEventHubName("myeventhub")
+ .withLogs(
+ Arrays
+ .asList(
+ new LogSettings()
+ .withCategory(Category.AUDIT_LOGS)
+ .withEnabled(true)
+ .withRetentionPolicy(new RetentionPolicy().withEnabled(false).withDays(0)))),
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation Delete. */
+public final class DiagnosticSettingsOperationDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/deleteDiagnosticSetting.json
+ */
+ /**
+ * Sample code: Deletes the diagnostic setting.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void deletesTheDiagnosticSetting(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager.diagnosticSettingsOperations().deleteWithResponse("mysetting", Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation Get. */
+public final class DiagnosticSettingsOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/getDiagnosticSetting.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void getsTheDiagnosticSetting(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager.diagnosticSettingsOperations().getWithResponse("mysetting", Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation List. */
+public final class DiagnosticSettingsOperationListSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/listDiagnosticSettings.json
+ */
+ /**
+ * Sample code: Gets the diagnostic settings.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void getsTheDiagnosticSettings(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager.diagnosticSettingsOperations().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2017-04-01-preview/examples/listOperations.json
+ */
+ /**
+ * Sample code: Gets the operations.
+ *
+ * @param manager Entry point to AzureactivedirectoryManager.
+ */
+ public static void getsTheOperations(
+ com.azure.resourcemanager.azureactivedirectory.AzureactivedirectoryManager manager) {
+ manager.operations().listWithResponse(Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/pom.xml b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/pom.xml
new file mode 100644
index 000000000000..5666d4ead7aa
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/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-azureactivedirectory
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Azureactivedirectory Management
+ This package contains Microsoft Azure SDK for Azureactivedirectory Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Active Directory Client. Package tag package-preview-2017-04.
+ 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.24.1
+
+
+ com.azure
+ azure-core-management
+ 1.5.1
+
+
+
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/AzureactivedirectoryManager.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/AzureactivedirectoryManager.java
new file mode 100644
index 000000000000..5dd2e479d1a5
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/AzureactivedirectoryManager.java
@@ -0,0 +1,267 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory;
+
+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.azureactivedirectory.fluent.Azureactivedirectory;
+import com.azure.resourcemanager.azureactivedirectory.implementation.AzureactivedirectoryBuilder;
+import com.azure.resourcemanager.azureactivedirectory.implementation.DiagnosticSettingsCategoriesImpl;
+import com.azure.resourcemanager.azureactivedirectory.implementation.DiagnosticSettingsOperationsImpl;
+import com.azure.resourcemanager.azureactivedirectory.implementation.OperationsImpl;
+import com.azure.resourcemanager.azureactivedirectory.models.DiagnosticSettingsCategories;
+import com.azure.resourcemanager.azureactivedirectory.models.DiagnosticSettingsOperations;
+import com.azure.resourcemanager.azureactivedirectory.models.Operations;
+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 AzureactivedirectoryManager. Azure Active Directory Client. */
+public final class AzureactivedirectoryManager {
+ private Operations operations;
+
+ private DiagnosticSettingsOperations diagnosticSettingsOperations;
+
+ private DiagnosticSettingsCategories diagnosticSettingsCategories;
+
+ private final Azureactivedirectory clientObject;
+
+ private AzureactivedirectoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new AzureactivedirectoryBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Azureactivedirectory service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Azureactivedirectory service API instance.
+ */
+ public static AzureactivedirectoryManager 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 AzureactivedirectoryManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new AzureactivedirectoryManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private 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, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Azureactivedirectory service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Azureactivedirectory service API instance.
+ */
+ public AzureactivedirectoryManager 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.azureactivedirectory")
+ .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 AzureactivedirectoryManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @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 DiagnosticSettingsOperations. */
+ public DiagnosticSettingsOperations diagnosticSettingsOperations() {
+ if (this.diagnosticSettingsOperations == null) {
+ this.diagnosticSettingsOperations =
+ new DiagnosticSettingsOperationsImpl(clientObject.getDiagnosticSettingsOperations(), this);
+ }
+ return diagnosticSettingsOperations;
+ }
+
+ /** @return Resource collection API of DiagnosticSettingsCategories. */
+ public DiagnosticSettingsCategories diagnosticSettingsCategories() {
+ if (this.diagnosticSettingsCategories == null) {
+ this.diagnosticSettingsCategories =
+ new DiagnosticSettingsCategoriesImpl(clientObject.getDiagnosticSettingsCategories(), this);
+ }
+ return diagnosticSettingsCategories;
+ }
+
+ /**
+ * @return Wrapped service client Azureactivedirectory providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public Azureactivedirectory serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/Azureactivedirectory.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/Azureactivedirectory.java
new file mode 100644
index 000000000000..1bdad71ea8bb
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/Azureactivedirectory.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for Azureactivedirectory class. */
+public interface Azureactivedirectory {
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the DiagnosticSettingsOperationsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsOperationsClient object.
+ */
+ DiagnosticSettingsOperationsClient getDiagnosticSettingsOperations();
+
+ /**
+ * Gets the DiagnosticSettingsCategoriesClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsCategoriesClient object.
+ */
+ DiagnosticSettingsCategoriesClient getDiagnosticSettingsCategories();
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsCategoriesClient.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsCategoriesClient.java
new file mode 100644
index 000000000000..6a7b691074ba
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsCategoriesClient.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.azureactivedirectory.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.azureactivedirectory.fluent.models.DiagnosticSettingsCategoryResourceCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsCategoriesClient. */
+public interface DiagnosticSettingsCategoriesClient {
+ /**
+ * Lists the diagnostic settings categories for AadIam.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of diagnostic setting category resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsCategoryResourceCollectionInner list();
+
+ /**
+ * Lists the diagnostic settings categories for AadIam.
+ *
+ * @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 represents a collection of diagnostic setting category resources along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsOperationsClient.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsOperationsClient.java
new file mode 100644
index 000000000000..8bbe47efea93
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/DiagnosticSettingsOperationsClient.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.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.azureactivedirectory.fluent.models.DiagnosticSettingsResourceCollectionInner;
+import com.azure.resourcemanager.azureactivedirectory.fluent.models.DiagnosticSettingsResourceInner;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsOperationsClient. */
+public interface DiagnosticSettingsOperationsClient {
+ /**
+ * Gets the active diagnostic settings list for AadIam.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic settings list for AadIam.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceCollectionInner list();
+
+ /**
+ * Gets the active diagnostic settings list for AadIam.
+ *
+ * @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 active diagnostic settings list for AadIam along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+
+ /**
+ * Gets the active diagnostic setting for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic setting for AadIam.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceInner get(String name);
+
+ /**
+ * Gets the active diagnostic setting for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @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 active diagnostic setting for AadIam along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String name, Context context);
+
+ /**
+ * Creates or updates diagnostic settings for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @param parameters Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceInner createOrUpdate(String name, DiagnosticSettingsResourceInner parameters);
+
+ /**
+ * Creates or updates diagnostic settings for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @param parameters Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic setting resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String name, DiagnosticSettingsResourceInner parameters, Context context);
+
+ /**
+ * Deletes existing diagnostic setting for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 name);
+
+ /**
+ * Deletes existing diagnostic setting for AadIam.
+ *
+ * @param name The name of the diagnostic setting.
+ * @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 name, Context context);
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/OperationsClient.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/OperationsClient.java
new file mode 100644
index 000000000000..cdaa6df1ef54
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/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.azureactivedirectory.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.azureactivedirectory.fluent.models.OperationsDiscoveryCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Operation to return the list of available 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 collection of ClientDiscovery details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationsDiscoveryCollectionInner list();
+
+ /**
+ * Operation to return the list of available 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 collection of ClientDiscovery details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettings.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettings.java
new file mode 100644
index 000000000000..bc0e762e41ed
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettings.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azureactivedirectory.models.LogSettings;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The diagnostic settings. */
+@Fluent
+public final class DiagnosticSettings {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticSettings.class);
+
+ /*
+ * The resource ID of the storage account to which you would like to send
+ * Diagnostic Logs.
+ */
+ @JsonProperty(value = "storageAccountId")
+ private String storageAccountId;
+
+ /*
+ * The service bus rule Id of the diagnostic setting. This is here to
+ * maintain backwards compatibility.
+ */
+ @JsonProperty(value = "serviceBusRuleId")
+ private String serviceBusRuleId;
+
+ /*
+ * The workspace ID (resource ID of a Log Analytics workspace) for a Log
+ * Analytics workspace to which you would like to send Diagnostic Logs.
+ * Example:
+ * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
+ */
+ @JsonProperty(value = "workspaceId")
+ private String workspaceId;
+
+ /*
+ * The resource Id for the event hub authorization rule.
+ */
+ @JsonProperty(value = "eventHubAuthorizationRuleId")
+ private String eventHubAuthorizationRuleId;
+
+ /*
+ * The name of the event hub. If none is specified, the default event hub
+ * will be selected.
+ */
+ @JsonProperty(value = "eventHubName")
+ private String eventHubName;
+
+ /*
+ * The list of logs settings.
+ */
+ @JsonProperty(value = "logs")
+ private List logs;
+
+ /**
+ * Get the storageAccountId property: The resource ID of the storage account to which you would like to send
+ * Diagnostic Logs.
+ *
+ * @return the storageAccountId value.
+ */
+ public String storageAccountId() {
+ return this.storageAccountId;
+ }
+
+ /**
+ * Set the storageAccountId property: The resource ID of the storage account to which you would like to send
+ * Diagnostic Logs.
+ *
+ * @param storageAccountId the storageAccountId value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withStorageAccountId(String storageAccountId) {
+ this.storageAccountId = storageAccountId;
+ return this;
+ }
+
+ /**
+ * Get the serviceBusRuleId property: The service bus rule Id of the diagnostic setting. This is here to maintain
+ * backwards compatibility.
+ *
+ * @return the serviceBusRuleId value.
+ */
+ public String serviceBusRuleId() {
+ return this.serviceBusRuleId;
+ }
+
+ /**
+ * Set the serviceBusRuleId property: The service bus rule Id of the diagnostic setting. This is here to maintain
+ * backwards compatibility.
+ *
+ * @param serviceBusRuleId the serviceBusRuleId value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withServiceBusRuleId(String serviceBusRuleId) {
+ this.serviceBusRuleId = serviceBusRuleId;
+ return this;
+ }
+
+ /**
+ * Get the workspaceId property: The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics
+ * workspace to which you would like to send Diagnostic Logs. Example:
+ * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.
+ *
+ * @return the workspaceId value.
+ */
+ public String workspaceId() {
+ return this.workspaceId;
+ }
+
+ /**
+ * Set the workspaceId property: The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics
+ * workspace to which you would like to send Diagnostic Logs. Example:
+ * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.
+ *
+ * @param workspaceId the workspaceId value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withWorkspaceId(String workspaceId) {
+ this.workspaceId = workspaceId;
+ return this;
+ }
+
+ /**
+ * Get the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
+ *
+ * @return the eventHubAuthorizationRuleId value.
+ */
+ public String eventHubAuthorizationRuleId() {
+ return this.eventHubAuthorizationRuleId;
+ }
+
+ /**
+ * Set the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
+ *
+ * @param eventHubAuthorizationRuleId the eventHubAuthorizationRuleId value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId) {
+ this.eventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
+ return this;
+ }
+
+ /**
+ * Get the eventHubName property: The name of the event hub. If none is specified, the default event hub will be
+ * selected.
+ *
+ * @return the eventHubName value.
+ */
+ public String eventHubName() {
+ return this.eventHubName;
+ }
+
+ /**
+ * Set the eventHubName property: The name of the event hub. If none is specified, the default event hub will be
+ * selected.
+ *
+ * @param eventHubName the eventHubName value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withEventHubName(String eventHubName) {
+ this.eventHubName = eventHubName;
+ return this;
+ }
+
+ /**
+ * Get the logs property: The list of logs settings.
+ *
+ * @return the logs value.
+ */
+ public List logs() {
+ return this.logs;
+ }
+
+ /**
+ * Set the logs property: The list of logs settings.
+ *
+ * @param logs the logs value to set.
+ * @return the DiagnosticSettings object itself.
+ */
+ public DiagnosticSettings withLogs(List logs) {
+ this.logs = logs;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (logs() != null) {
+ logs().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategory.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategory.java
new file mode 100644
index 000000000000..6aa19f971aa3
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategory.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.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azureactivedirectory.models.CategoryType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The diagnostic settings Category. */
+@Fluent
+public final class DiagnosticSettingsCategory {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticSettingsCategory.class);
+
+ /*
+ * The type of the diagnostic settings category.
+ */
+ @JsonProperty(value = "categoryType")
+ private CategoryType categoryType;
+
+ /**
+ * Get the categoryType property: The type of the diagnostic settings category.
+ *
+ * @return the categoryType value.
+ */
+ public CategoryType categoryType() {
+ return this.categoryType;
+ }
+
+ /**
+ * Set the categoryType property: The type of the diagnostic settings category.
+ *
+ * @param categoryType the categoryType value to set.
+ * @return the DiagnosticSettingsCategory object itself.
+ */
+ public DiagnosticSettingsCategory withCategoryType(CategoryType categoryType) {
+ this.categoryType = categoryType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategoryResourceCollectionInner.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategoryResourceCollectionInner.java
new file mode 100644
index 000000000000..e8cbe6f89809
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsCategoryResourceCollectionInner.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.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azureactivedirectory.models.DiagnosticSettingsCategoryResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents a collection of diagnostic setting category resources. */
+@Fluent
+public final class DiagnosticSettingsCategoryResourceCollectionInner {
+ @JsonIgnore
+ private final ClientLogger logger = new ClientLogger(DiagnosticSettingsCategoryResourceCollectionInner.class);
+
+ /*
+ * The collection of diagnostic settings category resources.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The collection of diagnostic settings category resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The collection of diagnostic settings category resources.
+ *
+ * @param value the value value to set.
+ * @return the DiagnosticSettingsCategoryResourceCollectionInner object itself.
+ */
+ public DiagnosticSettingsCategoryResourceCollectionInner 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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceCollectionInner.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceCollectionInner.java
new file mode 100644
index 000000000000..4c1ad6f30f8a
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceCollectionInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents a collection of alert rule resources. */
+@Fluent
+public final class DiagnosticSettingsResourceCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticSettingsResourceCollectionInner.class);
+
+ /*
+ * The collection of diagnostic settings resources.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The collection of diagnostic settings resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The collection of diagnostic settings resources.
+ *
+ * @param value the value value to set.
+ * @return the DiagnosticSettingsResourceCollectionInner object itself.
+ */
+ public DiagnosticSettingsResourceCollectionInner 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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceInner.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceInner.java
new file mode 100644
index 000000000000..d8eaf83d72f6
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/DiagnosticSettingsResourceInner.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azureactivedirectory.models.LogSettings;
+import com.azure.resourcemanager.azureactivedirectory.models.ProxyOnlyResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The diagnostic setting resource. */
+@Fluent
+public final class DiagnosticSettingsResourceInner extends ProxyOnlyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticSettingsResourceInner.class);
+
+ /*
+ * Properties of a Diagnostic Settings Resource.
+ */
+ @JsonProperty(value = "properties")
+ private DiagnosticSettings innerProperties;
+
+ /**
+ * Get the innerProperties property: Properties of a Diagnostic Settings Resource.
+ *
+ * @return the innerProperties value.
+ */
+ private DiagnosticSettings innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the storageAccountId property: The resource ID of the storage account to which you would like to send
+ * Diagnostic Logs.
+ *
+ * @return the storageAccountId value.
+ */
+ public String storageAccountId() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountId();
+ }
+
+ /**
+ * Set the storageAccountId property: The resource ID of the storage account to which you would like to send
+ * Diagnostic Logs.
+ *
+ * @param storageAccountId the storageAccountId value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withStorageAccountId(String storageAccountId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withStorageAccountId(storageAccountId);
+ return this;
+ }
+
+ /**
+ * Get the serviceBusRuleId property: The service bus rule Id of the diagnostic setting. This is here to maintain
+ * backwards compatibility.
+ *
+ * @return the serviceBusRuleId value.
+ */
+ public String serviceBusRuleId() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceBusRuleId();
+ }
+
+ /**
+ * Set the serviceBusRuleId property: The service bus rule Id of the diagnostic setting. This is here to maintain
+ * backwards compatibility.
+ *
+ * @param serviceBusRuleId the serviceBusRuleId value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withServiceBusRuleId(String serviceBusRuleId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withServiceBusRuleId(serviceBusRuleId);
+ return this;
+ }
+
+ /**
+ * Get the workspaceId property: The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics
+ * workspace to which you would like to send Diagnostic Logs. Example:
+ * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.
+ *
+ * @return the workspaceId value.
+ */
+ public String workspaceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().workspaceId();
+ }
+
+ /**
+ * Set the workspaceId property: The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics
+ * workspace to which you would like to send Diagnostic Logs. Example:
+ * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.
+ *
+ * @param workspaceId the workspaceId value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withWorkspaceId(String workspaceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withWorkspaceId(workspaceId);
+ return this;
+ }
+
+ /**
+ * Get the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
+ *
+ * @return the eventHubAuthorizationRuleId value.
+ */
+ public String eventHubAuthorizationRuleId() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventHubAuthorizationRuleId();
+ }
+
+ /**
+ * Set the eventHubAuthorizationRuleId property: The resource Id for the event hub authorization rule.
+ *
+ * @param eventHubAuthorizationRuleId the eventHubAuthorizationRuleId value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withEventHubAuthorizationRuleId(String eventHubAuthorizationRuleId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withEventHubAuthorizationRuleId(eventHubAuthorizationRuleId);
+ return this;
+ }
+
+ /**
+ * Get the eventHubName property: The name of the event hub. If none is specified, the default event hub will be
+ * selected.
+ *
+ * @return the eventHubName value.
+ */
+ public String eventHubName() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventHubName();
+ }
+
+ /**
+ * Set the eventHubName property: The name of the event hub. If none is specified, the default event hub will be
+ * selected.
+ *
+ * @param eventHubName the eventHubName value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withEventHubName(String eventHubName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withEventHubName(eventHubName);
+ return this;
+ }
+
+ /**
+ * Get the logs property: The list of logs settings.
+ *
+ * @return the logs value.
+ */
+ public List logs() {
+ return this.innerProperties() == null ? null : this.innerProperties().logs();
+ }
+
+ /**
+ * Set the logs property: The list of logs settings.
+ *
+ * @param logs the logs value to set.
+ * @return the DiagnosticSettingsResourceInner object itself.
+ */
+ public DiagnosticSettingsResourceInner withLogs(List logs) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticSettings();
+ }
+ this.innerProperties().withLogs(logs);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/OperationsDiscoveryCollectionInner.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/OperationsDiscoveryCollectionInner.java
new file mode 100644
index 000000000000..735753b319cc
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/OperationsDiscoveryCollectionInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azureactivedirectory.models.OperationsDiscovery;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of ClientDiscovery details. */
+@Fluent
+public final class OperationsDiscoveryCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsDiscoveryCollectionInner.class);
+
+ /*
+ * The ClientDiscovery details.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: The ClientDiscovery details.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The ClientDiscovery details.
+ *
+ * @param value the value value to set.
+ * @return the OperationsDiscoveryCollectionInner object itself.
+ */
+ public OperationsDiscoveryCollectionInner 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/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/package-info.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/package-info.java
new file mode 100644
index 000000000000..d86814317af6
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for Azureactivedirectory. Azure Active Directory Client. */
+package com.azure.resourcemanager.azureactivedirectory.fluent.models;
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/package-info.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/package-info.java
new file mode 100644
index 000000000000..cbd53c6a16ae
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for Azureactivedirectory. Azure Active Directory Client. */
+package com.azure.resourcemanager.azureactivedirectory.fluent;
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryBuilder.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryBuilder.java
new file mode 100644
index 000000000000..ea5b599ab60d
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryBuilder.java
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the AzureactivedirectoryImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureactivedirectoryImpl.class})
+public final class AzureactivedirectoryBuilder {
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AzureactivedirectoryBuilder.
+ */
+ public AzureactivedirectoryBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AzureactivedirectoryBuilder.
+ */
+ public AzureactivedirectoryBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the AzureactivedirectoryBuilder.
+ */
+ public AzureactivedirectoryBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AzureactivedirectoryBuilder.
+ */
+ public AzureactivedirectoryBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the AzureactivedirectoryBuilder.
+ */
+ public AzureactivedirectoryBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AzureactivedirectoryImpl with the provided parameters.
+ *
+ * @return an instance of AzureactivedirectoryImpl.
+ */
+ public AzureactivedirectoryImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ AzureactivedirectoryImpl client =
+ new AzureactivedirectoryImpl(pipeline, serializerAdapter, defaultPollInterval, environment, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryImpl.java b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryImpl.java
new file mode 100644
index 000000000000..9b272374e904
--- /dev/null
+++ b/sdk/azureactivedirectory/azure-resourcemanager-azureactivedirectory/src/main/java/com/azure/resourcemanager/azureactivedirectory/implementation/AzureactivedirectoryImpl.java
@@ -0,0 +1,306 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azureactivedirectory.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.azureactivedirectory.fluent.Azureactivedirectory;
+import com.azure.resourcemanager.azureactivedirectory.fluent.DiagnosticSettingsCategoriesClient;
+import com.azure.resourcemanager.azureactivedirectory.fluent.DiagnosticSettingsOperationsClient;
+import com.azure.resourcemanager.azureactivedirectory.fluent.OperationsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the AzureactivedirectoryImpl type. */
+@ServiceClient(builder = AzureactivedirectoryBuilder.class)
+public final class AzureactivedirectoryImpl implements Azureactivedirectory {
+ private final ClientLogger logger = new ClientLogger(AzureactivedirectoryImpl.class);
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The DiagnosticSettingsOperationsClient object to access its operations. */
+ private final DiagnosticSettingsOperationsClient diagnosticSettingsOperations;
+
+ /**
+ * Gets the DiagnosticSettingsOperationsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsOperationsClient object.
+ */
+ public DiagnosticSettingsOperationsClient getDiagnosticSettingsOperations() {
+ return this.diagnosticSettingsOperations;
+ }
+
+ /** The DiagnosticSettingsCategoriesClient object to access its operations. */
+ private final DiagnosticSettingsCategoriesClient diagnosticSettingsCategories;
+
+ /**
+ * Gets the DiagnosticSettingsCategoriesClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsCategoriesClient object.
+ */
+ public DiagnosticSettingsCategoriesClient getDiagnosticSettingsCategories() {
+ return this.diagnosticSettingsCategories;
+ }
+
+ /**
+ * Initializes an instance of Azureactivedirectory client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint server parameter.
+ */
+ AzureactivedirectoryImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.apiVersion = "2017-04-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.diagnosticSettingsOperations = new DiagnosticSettingsOperationsClientImpl(this);
+ this.diagnosticSettingsCategories = new DiagnosticSettingsCategoriesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry