diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 81e13ce5a899b..61b7dfe8a43ba 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -336,6 +336,7 @@ com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-bet
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.0.0-beta.2
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-azuredata;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 0b3ac328a8f42..2f8317bc81f34 100644
--- a/pom.xml
+++ b/pom.xml
@@ -851,6 +851,7 @@
sdk/automationsdk/avssdk/azurearcdata
+ sdk/azuredatasdk/azurestacksdk/azurestackhcisdk/baremetalinfrastructure
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/CHANGELOG.md b/sdk/azuredata/azure-resourcemanager-azuredata/CHANGELOG.md
new file mode 100644
index 0000000000000..0f3435468c5e9
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-02-25)
+
+- Azure Resource Manager AzureData client library for Java. This package contains Microsoft Azure SDK for AzureData Management SDK. The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources. Package tag package-preview-2019-07. 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/azuredata/azure-resourcemanager-azuredata/README.md b/sdk/azuredata/azure-resourcemanager-azuredata/README.md
new file mode 100644
index 0000000000000..584cde8c81efc
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager AzureData client library for Java
+
+Azure Resource Manager AzureData client library for Java.
+
+This package contains Microsoft Azure SDK for AzureData Management SDK. The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources. Package tag package-preview-2019-07. 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-azuredata;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-azuredata
+ 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();
+AzureDataManager manager = AzureDataManager
+ .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/azuredata/azure-resourcemanager-azuredata/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/azuredata/azure-resourcemanager-azuredata/SAMPLE.md b/sdk/azuredata/azure-resourcemanager-azuredata/SAMPLE.md
new file mode 100644
index 0000000000000..99e15b89ced80
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/SAMPLE.md
@@ -0,0 +1,303 @@
+# Code snippets and samples
+
+
+## Operations
+
+- [List](#operations_list)
+
+## SqlServerRegistrations
+
+- [CreateOrUpdate](#sqlserverregistrations_createorupdate)
+- [Delete](#sqlserverregistrations_delete)
+- [GetByResourceGroup](#sqlserverregistrations_getbyresourcegroup)
+- [List](#sqlserverregistrations_list)
+- [ListByResourceGroup](#sqlserverregistrations_listbyresourcegroup)
+- [Update](#sqlserverregistrations_update)
+
+## SqlServers
+
+- [CreateOrUpdate](#sqlservers_createorupdate)
+- [Delete](#sqlservers_delete)
+- [Get](#sqlservers_get)
+- [ListByResourceGroup](#sqlservers_listbyresourcegroup)
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListOperation.json
+ */
+ /**
+ * Sample code: Lists all of the available SQL Server Registration API operations.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void listsAllOfTheAvailableSQLServerRegistrationAPIOperations(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### SqlServerRegistrations_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SqlServerRegistrations CreateOrUpdate. */
+public final class SqlServerRegistrationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Creates or updates a SQL Server registration.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void createsOrUpdatesASQLServerRegistration(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager
+ .sqlServerRegistrations()
+ .define("testsqlregistration")
+ .withRegion("northeurope")
+ .withExistingResourceGroup("testrg")
+ .withTags(mapOf("mytag", "myval"))
+ .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;
+ }
+}
+```
+
+### SqlServerRegistrations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServerRegistrations Delete. */
+public final class SqlServerRegistrationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Deletes a SQL Server registration.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void deletesASQLServerRegistration(com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServerRegistrations().deleteWithResponse("testrg", "testsqlregistration", Context.NONE);
+ }
+}
+```
+
+### SqlServerRegistrations_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServerRegistrations GetByResourceGroup. */
+public final class SqlServerRegistrationsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Gets a SQL Server registration.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void getsASQLServerRegistration(com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServerRegistrations().getByResourceGroupWithResponse("testrg", "testsqlregistration", Context.NONE);
+ }
+}
+```
+
+### SqlServerRegistrations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServerRegistrations List. */
+public final class SqlServerRegistrationsListSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListSubscriptionSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Gets all SQL Server registrations in a subscription.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void getsAllSQLServerRegistrationsInASubscription(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServerRegistrations().list(Context.NONE);
+ }
+}
+```
+
+### SqlServerRegistrations_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServerRegistrations ListByResourceGroup. */
+public final class SqlServerRegistrationsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Gets all SQL Server registrations in a resource group.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void getsAllSQLServerRegistrationsInAResourceGroup(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServerRegistrations().listByResourceGroup("testrg", Context.NONE);
+ }
+}
+```
+
+### SqlServerRegistrations_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azuredata.models.SqlServerRegistration;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for SqlServerRegistrations Update. */
+public final class SqlServerRegistrationsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/UpdateSqlServerRegistration.json
+ */
+ /**
+ * Sample code: Updates a SQL Server Registration tags.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void updatesASQLServerRegistrationTags(com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ SqlServerRegistration resource =
+ manager
+ .sqlServerRegistrations()
+ .getByResourceGroupWithResponse("testrg", "testsqlregistration", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("mytag", "myval")).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;
+ }
+}
+```
+
+### SqlServers_CreateOrUpdate
+
+```java
+/** Samples for SqlServers CreateOrUpdate. */
+public final class SqlServersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerWithRegistrationGroup.json
+ */
+ /**
+ * Sample code: Creates or updates a SQL Server in a Registration group.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void createsOrUpdatesASQLServerInARegistrationGroup(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager
+ .sqlServers()
+ .define("testsqlserver")
+ .withExistingSqlServerRegistration("testrg", "testsqlregistration")
+ .withVersion("2008")
+ .withEdition("Latin")
+ .withRegistrationId(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration")
+ .withPropertyBag("")
+ .create();
+ }
+}
+```
+
+### SqlServers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServers Delete. */
+public final class SqlServersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServer.json
+ */
+ /**
+ * Sample code: Deletes a SQL Server.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void deletesASQLServer(com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServers().deleteWithResponse("testrg", "testsqlregistration", "testsqlserver", Context.NONE);
+ }
+}
+```
+
+### SqlServers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServers Get. */
+public final class SqlServersGetSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServer.json
+ */
+ /**
+ * Sample code: Gets a SQL Server.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void getsASQLServer(com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServers().getWithResponse("testrg", "testsqlregistration", "testsqlserver", null, Context.NONE);
+ }
+}
+```
+
+### SqlServers_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SqlServers ListByResourceGroup. */
+public final class SqlServersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServer.json
+ */
+ /**
+ * Sample code: Gets all SQL Servers in a SQL Server Registration.
+ *
+ * @param manager Entry point to AzureDataManager.
+ */
+ public static void getsAllSQLServersInASQLServerRegistration(
+ com.azure.resourcemanager.azuredata.AzureDataManager manager) {
+ manager.sqlServers().listByResourceGroup("testrg", "testsqlregistration", null, Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/pom.xml b/sdk/azuredata/azure-resourcemanager-azuredata/pom.xml
new file mode 100644
index 0000000000000..ba03051988db6
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/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-azuredata
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for AzureData Management
+ This package contains Microsoft Azure SDK for AzureData Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The AzureData management API provides a RESTful set of web APIs to manage Azure Data Resources. Package tag package-preview-2019-07.
+ 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.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
+
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/AzureDataManager.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/AzureDataManager.java
new file mode 100644
index 0000000000000..00df6eaca4908
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/AzureDataManager.java
@@ -0,0 +1,270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata;
+
+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.azuredata.fluent.AzureDataManagementClient;
+import com.azure.resourcemanager.azuredata.implementation.AzureDataManagementClientBuilder;
+import com.azure.resourcemanager.azuredata.implementation.OperationsImpl;
+import com.azure.resourcemanager.azuredata.implementation.SqlServerRegistrationsImpl;
+import com.azure.resourcemanager.azuredata.implementation.SqlServersImpl;
+import com.azure.resourcemanager.azuredata.models.Operations;
+import com.azure.resourcemanager.azuredata.models.SqlServerRegistrations;
+import com.azure.resourcemanager.azuredata.models.SqlServers;
+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 AzureDataManager. The AzureData management API provides a RESTful set of web APIs to manage Azure Data
+ * Resources.
+ */
+public final class AzureDataManager {
+ private Operations operations;
+
+ private SqlServerRegistrations sqlServerRegistrations;
+
+ private SqlServers sqlServers;
+
+ private final AzureDataManagementClient clientObject;
+
+ private AzureDataManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new AzureDataManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of AzureData service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AzureData service API instance.
+ */
+ public static AzureDataManager 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 AzureDataManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new AzureDataManager.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 AzureData service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AzureData service API instance.
+ */
+ public AzureDataManager 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.azuredata")
+ .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 AzureDataManager(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 SqlServerRegistrations. */
+ public SqlServerRegistrations sqlServerRegistrations() {
+ if (this.sqlServerRegistrations == null) {
+ this.sqlServerRegistrations =
+ new SqlServerRegistrationsImpl(clientObject.getSqlServerRegistrations(), this);
+ }
+ return sqlServerRegistrations;
+ }
+
+ /** @return Resource collection API of SqlServers. */
+ public SqlServers sqlServers() {
+ if (this.sqlServers == null) {
+ this.sqlServers = new SqlServersImpl(clientObject.getSqlServers(), this);
+ }
+ return sqlServers;
+ }
+
+ /**
+ * @return Wrapped service client AzureDataManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public AzureDataManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/AzureDataManagementClient.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/AzureDataManagementClient.java
new file mode 100644
index 0000000000000..5d51fec1ba16c
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/AzureDataManagementClient.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureDataManagementClient class. */
+public interface AzureDataManagementClient {
+ /**
+ * Gets Subscription ID that identifies an Azure subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the SqlServerRegistrationsClient object to access its operations.
+ *
+ * @return the SqlServerRegistrationsClient object.
+ */
+ SqlServerRegistrationsClient getSqlServerRegistrations();
+
+ /**
+ * Gets the SqlServersClient object to access its operations.
+ *
+ * @return the SqlServersClient object.
+ */
+ SqlServersClient getSqlServers();
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/OperationsClient.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..2166fb7d5b391
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/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.azuredata.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.azuredata.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 SQL Server Registration 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 SQL operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available SQL Server Registration 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 SQL operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServerRegistrationsClient.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServerRegistrationsClient.java
new file mode 100644
index 0000000000000..66f81cbf97143
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServerRegistrationsClient.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.azuredata.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.azuredata.fluent.models.SqlServerRegistrationInner;
+import com.azure.resourcemanager.azuredata.models.SqlServerRegistrationUpdate;
+
+/** An instance of this class provides access to all the operations defined in SqlServerRegistrationsClient. */
+public interface SqlServerRegistrationsClient {
+ /**
+ * Gets a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SQL Server registration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerRegistrationInner getByResourceGroup(String resourceGroupName, String sqlServerRegistrationName);
+
+ /**
+ * Gets a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @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 SQL Server registration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String sqlServerRegistrationName, Context context);
+
+ /**
+ * Creates or updates a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param parameters The SQL Server registration to be created or 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 a SQL server registration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerRegistrationInner createOrUpdate(
+ String resourceGroupName, String sqlServerRegistrationName, SqlServerRegistrationInner parameters);
+
+ /**
+ * Creates or updates a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param parameters The SQL Server registration to be created or 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 a SQL server registration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String sqlServerRegistrationName,
+ SqlServerRegistrationInner parameters,
+ Context context);
+
+ /**
+ * Deletes a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 sqlServerRegistrationName);
+
+ /**
+ * Deletes a SQL Server registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @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 sqlServerRegistrationName, Context context);
+
+ /**
+ * Updates SQL Server Registration tags.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param parameters The SQL Server Registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SQL server registration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerRegistrationInner update(
+ String resourceGroupName, String sqlServerRegistrationName, SqlServerRegistrationUpdate parameters);
+
+ /**
+ * Updates SQL Server Registration tags.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param parameters The SQL Server Registration.
+ * @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 SQL server registration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String sqlServerRegistrationName,
+ SqlServerRegistrationUpdate parameters,
+ Context context);
+
+ /**
+ * Gets all SQL Server registrations in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SQL Server registrations in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets all SQL Server registrations in a resource group.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @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 SQL Server registrations in a resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Gets all SQL Server registrations in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all SQL Server registrations in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets all SQL Server registrations in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all SQL Server registrations in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServersClient.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServersClient.java
new file mode 100644
index 0000000000000..fc38f12269bad
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/SqlServersClient.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.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.azuredata.fluent.models.SqlServerInner;
+
+/** An instance of this class provides access to all the operations defined in SqlServersClient. */
+public interface SqlServersClient {
+ /**
+ * Gets a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a SQL Server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInner get(String resourceGroupName, String sqlServerRegistrationName, String sqlServerName);
+
+ /**
+ * Gets a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @param expand The child resources to include in the response.
+ * @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 SQL Server along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String sqlServerRegistrationName,
+ String sqlServerName,
+ String expand,
+ Context context);
+
+ /**
+ * Creates or updates a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @param parameters The SQL Server to be created or 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 a SQL server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlServerInner createOrUpdate(
+ String resourceGroupName, String sqlServerRegistrationName, String sqlServerName, SqlServerInner parameters);
+
+ /**
+ * Creates or updates a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @param parameters The SQL Server to be created or 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 a SQL server along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String sqlServerRegistrationName,
+ String sqlServerName,
+ SqlServerInner parameters,
+ Context context);
+
+ /**
+ * Deletes a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String sqlServerRegistrationName, String sqlServerName);
+
+ /**
+ * Deletes a SQL Server.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param sqlServerName Name of the SQL Server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String sqlServerRegistrationName, String sqlServerName, Context context);
+
+ /**
+ * Gets all SQL Servers in a SQL Server Registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SQL Servers in a SQL Server Registration as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String sqlServerRegistrationName);
+
+ /**
+ * Gets all SQL Servers in a SQL Server Registration.
+ *
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from
+ * the Azure Resource Manager API or the portal.
+ * @param sqlServerRegistrationName Name of the SQL Server registration.
+ * @param expand The child resources to include in the response.
+ * @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 SQL Servers in a SQL Server Registration as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String sqlServerRegistrationName, String expand, Context context);
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/OperationInner.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..795bd47884703
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/OperationInner.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azuredata.models.OperationDisplay;
+import com.azure.resourcemanager.azuredata.models.OperationOrigin;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** SQL REST API operation definition. */
+@Immutable
+public final class OperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
+
+ /*
+ * The name of the operation being performed on this particular object.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The localized display information for this particular operation /
+ * action.
+ */
+ @JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation.
+ */
+ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
+ private OperationOrigin origin;
+
+ /*
+ * Additional descriptions for the operation.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map properties;
+
+ /**
+ * Get the name property: The name of the operation being performed on this particular object.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the display property: The localized display information for this particular operation / action.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation.
+ *
+ * @return the origin value.
+ */
+ public OperationOrigin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the properties property: Additional descriptions for the operation.
+ *
+ * @return the properties value.
+ */
+ public Map properties() {
+ return this.properties;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerInner.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerInner.java
new file mode 100644
index 0000000000000..e80fb6ee97f4a
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerInner.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A SQL server. */
+@Fluent
+public final class SqlServerInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerInner.class);
+
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private SqlServerProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SqlServerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the cores property: Cores of the Sql Server.
+ *
+ * @return the cores value.
+ */
+ public Integer cores() {
+ return this.innerProperties() == null ? null : this.innerProperties().cores();
+ }
+
+ /**
+ * Set the cores property: Cores of the Sql Server.
+ *
+ * @param cores the cores value to set.
+ * @return the SqlServerInner object itself.
+ */
+ public SqlServerInner withCores(Integer cores) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerProperties();
+ }
+ this.innerProperties().withCores(cores);
+ return this;
+ }
+
+ /**
+ * Get the version property: Version of the Sql Server.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Set the version property: Version of the Sql Server.
+ *
+ * @param version the version value to set.
+ * @return the SqlServerInner object itself.
+ */
+ public SqlServerInner withVersion(String version) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerProperties();
+ }
+ this.innerProperties().withVersion(version);
+ return this;
+ }
+
+ /**
+ * Get the edition property: Sql Server Edition.
+ *
+ * @return the edition value.
+ */
+ public String edition() {
+ return this.innerProperties() == null ? null : this.innerProperties().edition();
+ }
+
+ /**
+ * Set the edition property: Sql Server Edition.
+ *
+ * @param edition the edition value to set.
+ * @return the SqlServerInner object itself.
+ */
+ public SqlServerInner withEdition(String edition) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerProperties();
+ }
+ this.innerProperties().withEdition(edition);
+ return this;
+ }
+
+ /**
+ * Get the registrationId property: ID for Parent Sql Server Registration.
+ *
+ * @return the registrationId value.
+ */
+ public String registrationId() {
+ return this.innerProperties() == null ? null : this.innerProperties().registrationId();
+ }
+
+ /**
+ * Set the registrationId property: ID for Parent Sql Server Registration.
+ *
+ * @param registrationId the registrationId value to set.
+ * @return the SqlServerInner object itself.
+ */
+ public SqlServerInner withRegistrationId(String registrationId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerProperties();
+ }
+ this.innerProperties().withRegistrationId(registrationId);
+ return this;
+ }
+
+ /**
+ * Get the propertyBag property: Sql Server Json Property Bag.
+ *
+ * @return the propertyBag value.
+ */
+ public String propertyBag() {
+ return this.innerProperties() == null ? null : this.innerProperties().propertyBag();
+ }
+
+ /**
+ * Set the propertyBag property: Sql Server Json Property Bag.
+ *
+ * @param propertyBag the propertyBag value to set.
+ * @return the SqlServerInner object itself.
+ */
+ public SqlServerInner withPropertyBag(String propertyBag) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerProperties();
+ }
+ this.innerProperties().withPropertyBag(propertyBag);
+ 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/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerProperties.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerProperties.java
new file mode 100644
index 0000000000000..7a816a3b88dde
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerProperties.java
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.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;
+
+/** The SQL server properties. */
+@Fluent
+public final class SqlServerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerProperties.class);
+
+ /*
+ * Cores of the Sql Server.
+ */
+ @JsonProperty(value = "cores")
+ private Integer cores;
+
+ /*
+ * Version of the Sql Server.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /*
+ * Sql Server Edition.
+ */
+ @JsonProperty(value = "edition")
+ private String edition;
+
+ /*
+ * ID for Parent Sql Server Registration.
+ */
+ @JsonProperty(value = "registrationID")
+ private String registrationId;
+
+ /*
+ * Sql Server Json Property Bag.
+ */
+ @JsonProperty(value = "propertyBag")
+ private String propertyBag;
+
+ /**
+ * Get the cores property: Cores of the Sql Server.
+ *
+ * @return the cores value.
+ */
+ public Integer cores() {
+ return this.cores;
+ }
+
+ /**
+ * Set the cores property: Cores of the Sql Server.
+ *
+ * @param cores the cores value to set.
+ * @return the SqlServerProperties object itself.
+ */
+ public SqlServerProperties withCores(Integer cores) {
+ this.cores = cores;
+ return this;
+ }
+
+ /**
+ * Get the version property: Version of the Sql Server.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Version of the Sql Server.
+ *
+ * @param version the version value to set.
+ * @return the SqlServerProperties object itself.
+ */
+ public SqlServerProperties withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the edition property: Sql Server Edition.
+ *
+ * @return the edition value.
+ */
+ public String edition() {
+ return this.edition;
+ }
+
+ /**
+ * Set the edition property: Sql Server Edition.
+ *
+ * @param edition the edition value to set.
+ * @return the SqlServerProperties object itself.
+ */
+ public SqlServerProperties withEdition(String edition) {
+ this.edition = edition;
+ return this;
+ }
+
+ /**
+ * Get the registrationId property: ID for Parent Sql Server Registration.
+ *
+ * @return the registrationId value.
+ */
+ public String registrationId() {
+ return this.registrationId;
+ }
+
+ /**
+ * Set the registrationId property: ID for Parent Sql Server Registration.
+ *
+ * @param registrationId the registrationId value to set.
+ * @return the SqlServerProperties object itself.
+ */
+ public SqlServerProperties withRegistrationId(String registrationId) {
+ this.registrationId = registrationId;
+ return this;
+ }
+
+ /**
+ * Get the propertyBag property: Sql Server Json Property Bag.
+ *
+ * @return the propertyBag value.
+ */
+ public String propertyBag() {
+ return this.propertyBag;
+ }
+
+ /**
+ * Set the propertyBag property: Sql Server Json Property Bag.
+ *
+ * @param propertyBag the propertyBag value to set.
+ * @return the SqlServerProperties object itself.
+ */
+ public SqlServerProperties withPropertyBag(String propertyBag) {
+ this.propertyBag = propertyBag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationInner.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationInner.java
new file mode 100644
index 0000000000000..0888d7fc04868
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationInner.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.azuredata.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** A SQL server registration. */
+@Fluent
+public final class SqlServerRegistrationInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerRegistrationInner.class);
+
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private SqlServerRegistrationProperties innerProperties;
+
+ /*
+ * Read only system data
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SqlServerRegistrationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Read only system data.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlServerRegistrationInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SqlServerRegistrationInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the subscriptionId property: Subscription Id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.innerProperties() == null ? null : this.innerProperties().subscriptionId();
+ }
+
+ /**
+ * Set the subscriptionId property: Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the SqlServerRegistrationInner object itself.
+ */
+ public SqlServerRegistrationInner withSubscriptionId(String subscriptionId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerRegistrationProperties();
+ }
+ this.innerProperties().withSubscriptionId(subscriptionId);
+ return this;
+ }
+
+ /**
+ * Get the resourceGroup property: Resource Group Name.
+ *
+ * @return the resourceGroup value.
+ */
+ public String resourceGroup() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceGroup();
+ }
+
+ /**
+ * Set the resourceGroup property: Resource Group Name.
+ *
+ * @param resourceGroup the resourceGroup value to set.
+ * @return the SqlServerRegistrationInner object itself.
+ */
+ public SqlServerRegistrationInner withResourceGroup(String resourceGroup) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerRegistrationProperties();
+ }
+ this.innerProperties().withResourceGroup(resourceGroup);
+ return this;
+ }
+
+ /**
+ * Get the propertyBag property: Optional Properties as JSON string.
+ *
+ * @return the propertyBag value.
+ */
+ public String propertyBag() {
+ return this.innerProperties() == null ? null : this.innerProperties().propertyBag();
+ }
+
+ /**
+ * Set the propertyBag property: Optional Properties as JSON string.
+ *
+ * @param propertyBag the propertyBag value to set.
+ * @return the SqlServerRegistrationInner object itself.
+ */
+ public SqlServerRegistrationInner withPropertyBag(String propertyBag) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SqlServerRegistrationProperties();
+ }
+ this.innerProperties().withPropertyBag(propertyBag);
+ 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/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationProperties.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationProperties.java
new file mode 100644
index 0000000000000..fddba0c9cbda5
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/SqlServerRegistrationProperties.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.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;
+
+/** The SQL server Registration properties. */
+@Fluent
+public final class SqlServerRegistrationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerRegistrationProperties.class);
+
+ /*
+ * Subscription Id
+ */
+ @JsonProperty(value = "subscriptionId")
+ private String subscriptionId;
+
+ /*
+ * Resource Group Name
+ */
+ @JsonProperty(value = "resourceGroup")
+ private String resourceGroup;
+
+ /*
+ * Optional Properties as JSON string
+ */
+ @JsonProperty(value = "propertyBag")
+ private String propertyBag;
+
+ /**
+ * Get the subscriptionId property: Subscription Id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the SqlServerRegistrationProperties object itself.
+ */
+ public SqlServerRegistrationProperties withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the resourceGroup property: Resource Group Name.
+ *
+ * @return the resourceGroup value.
+ */
+ public String resourceGroup() {
+ return this.resourceGroup;
+ }
+
+ /**
+ * Set the resourceGroup property: Resource Group Name.
+ *
+ * @param resourceGroup the resourceGroup value to set.
+ * @return the SqlServerRegistrationProperties object itself.
+ */
+ public SqlServerRegistrationProperties withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
+ return this;
+ }
+
+ /**
+ * Get the propertyBag property: Optional Properties as JSON string.
+ *
+ * @return the propertyBag value.
+ */
+ public String propertyBag() {
+ return this.propertyBag;
+ }
+
+ /**
+ * Set the propertyBag property: Optional Properties as JSON string.
+ *
+ * @param propertyBag the propertyBag value to set.
+ * @return the SqlServerRegistrationProperties object itself.
+ */
+ public SqlServerRegistrationProperties withPropertyBag(String propertyBag) {
+ this.propertyBag = propertyBag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/package-info.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/models/package-info.java
new file mode 100644
index 0000000000000..31179836fc8ff
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/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 AzureDataManagementClient. The AzureData management API provides a
+ * RESTful set of web APIs to manage Azure Data Resources.
+ */
+package com.azure.resourcemanager.azuredata.fluent.models;
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/package-info.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/fluent/package-info.java
new file mode 100644
index 0000000000000..febf9fa7c1821
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/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 AzureDataManagementClient. The AzureData management API provides a RESTful
+ * set of web APIs to manage Azure Data Resources.
+ */
+package com.azure.resourcemanager.azuredata.fluent;
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientBuilder.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientBuilder.java
new file mode 100644
index 0000000000000..6da744e9954d4
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientBuilder.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.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 AzureDataManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureDataManagementClientImpl.class})
+public final class AzureDataManagementClientBuilder {
+ /*
+ * Subscription ID that identifies an Azure subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Subscription ID that identifies an Azure subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder 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 AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder 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 AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder 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 AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder 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 AzureDataManagementClientBuilder.
+ */
+ public AzureDataManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AzureDataManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of AzureDataManagementClientImpl.
+ */
+ public AzureDataManagementClientImpl 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();
+ }
+ AzureDataManagementClientImpl client =
+ new AzureDataManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientImpl.java b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientImpl.java
new file mode 100644
index 0000000000000..7b2116b36e04b
--- /dev/null
+++ b/sdk/azuredata/azure-resourcemanager-azuredata/src/main/java/com/azure/resourcemanager/azuredata/implementation/AzureDataManagementClientImpl.java
@@ -0,0 +1,321 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azuredata.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.azuredata.fluent.AzureDataManagementClient;
+import com.azure.resourcemanager.azuredata.fluent.OperationsClient;
+import com.azure.resourcemanager.azuredata.fluent.SqlServerRegistrationsClient;
+import com.azure.resourcemanager.azuredata.fluent.SqlServersClient;
+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 AzureDataManagementClientImpl type. */
+@ServiceClient(builder = AzureDataManagementClientBuilder.class)
+public final class AzureDataManagementClientImpl implements AzureDataManagementClient {
+ private final ClientLogger logger = new ClientLogger(AzureDataManagementClientImpl.class);
+
+ /** Subscription ID that identifies an Azure subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets Subscription ID that identifies an Azure subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** 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 SqlServerRegistrationsClient object to access its operations. */
+ private final SqlServerRegistrationsClient sqlServerRegistrations;
+
+ /**
+ * Gets the SqlServerRegistrationsClient object to access its operations.
+ *
+ * @return the SqlServerRegistrationsClient object.
+ */
+ public SqlServerRegistrationsClient getSqlServerRegistrations() {
+ return this.sqlServerRegistrations;
+ }
+
+ /** The SqlServersClient object to access its operations. */
+ private final SqlServersClient sqlServers;
+
+ /**
+ * Gets the SqlServersClient object to access its operations.
+ *
+ * @return the SqlServersClient object.
+ */
+ public SqlServersClient getSqlServers() {
+ return this.sqlServers;
+ }
+
+ /**
+ * Initializes an instance of AzureDataManagementClient 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 subscriptionId Subscription ID that identifies an Azure subscription.
+ * @param endpoint server parameter.
+ */
+ AzureDataManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2019-07-24-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.sqlServerRegistrations = new SqlServerRegistrationsClientImpl(this);
+ this.sqlServers = new SqlServersClientImpl(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