diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 053d18426c3e..c81b61cc1c7f 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -340,6 +340,7 @@ com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.2;1.
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-dfp;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.2
diff --git a/pom.xml b/pom.xml
index f3ba561857a5..27ce7c45f19d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -888,6 +888,7 @@
sdk/deviceupdatesdk/devspacessdk/devtestlabs
+ sdk/dfpsdk/digitaltwinssdk/dnsresolversdk/edgeorder
diff --git a/sdk/dfp/azure-resourcemanager-dfp/CHANGELOG.md b/sdk/dfp/azure-resourcemanager-dfp/CHANGELOG.md
new file mode 100644
index 000000000000..de24d4b15aaf
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-03-24)
+
+- Azure Resource Manager Dfp client library for Java. This package contains Microsoft Azure SDK for Dfp Management SDK. DFP Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete DFP instances. Package tag package-2021-02-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/dfp/azure-resourcemanager-dfp/README.md b/sdk/dfp/azure-resourcemanager-dfp/README.md
new file mode 100644
index 000000000000..6421c1d39d92
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager Dfp client library for Java
+
+Azure Resource Manager Dfp client library for Java.
+
+This package contains Microsoft Azure SDK for Dfp Management SDK. DFP Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete DFP instances. Package tag package-2021-02-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-dfp;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-dfp
+ 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();
+DfpManager manager = DfpManager
+ .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/dfp/azure-resourcemanager-dfp/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/dfp/azure-resourcemanager-dfp/SAMPLE.md b/sdk/dfp/azure-resourcemanager-dfp/SAMPLE.md
new file mode 100644
index 000000000000..c20f272f2258
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/SAMPLE.md
@@ -0,0 +1,240 @@
+# Code snippets and samples
+
+
+## Instances
+
+- [CheckNameAvailability](#instances_checknameavailability)
+- [Create](#instances_create)
+- [Delete](#instances_delete)
+- [GetByResourceGroup](#instances_getbyresourcegroup)
+- [List](#instances_list)
+- [ListByResourceGroup](#instances_listbyresourcegroup)
+- [Update](#instances_update)
+
+## ResourceProvider
+
+- [ListOperations](#resourceprovider_listoperations)
+### Instances_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dfp.models.CheckInstanceNameAvailabilityParameters;
+
+/** Samples for Instances CheckNameAvailability. */
+public final class InstancesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/checkNameAvailability.json
+ */
+ /**
+ * Sample code: Check name availability of an instance.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void checkNameAvailabilityOfAnInstance(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager
+ .instances()
+ .checkNameAvailabilityWithResponse(
+ "West US",
+ new CheckInstanceNameAvailabilityParameters()
+ .withName("azsdktest")
+ .withType("Microsoft.Dynamics365Fraudprotection/instances"),
+ Context.NONE);
+ }
+}
+```
+
+### Instances_Create
+
+```java
+import com.azure.resourcemanager.dfp.models.DfpInstanceAdministrators;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Instances Create. */
+public final class InstancesCreateSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/createInstance.json
+ */
+ /**
+ * Sample code: Create instance.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void createInstance(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager
+ .instances()
+ .define("azsdktest")
+ .withRegion("West US")
+ .withExistingResourceGroup("TestRG")
+ .withTags(mapOf("testKey", "testValue"))
+ .withAdministration(
+ new DfpInstanceAdministrators()
+ .withMembers(Arrays.asList("azsdktest@microsoft.com", "azsdktest2@microsoft.com")))
+ .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;
+ }
+}
+```
+
+### Instances_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Instances Delete. */
+public final class InstancesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/deleteInstance.json
+ */
+ /**
+ * Sample code: Get details of an instance.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void getDetailsOfAnInstance(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager.instances().delete("TestRG", "azsdktest", Context.NONE);
+ }
+}
+```
+
+### Instances_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Instances GetByResourceGroup. */
+public final class InstancesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/getInstance.json
+ */
+ /**
+ * Sample code: Get details of an instance.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void getDetailsOfAnInstance(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager.instances().getByResourceGroupWithResponse("TestRG", "azsdktest", Context.NONE);
+ }
+}
+```
+
+### Instances_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Instances List. */
+public final class InstancesListSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/listInstancesInSubscription.json
+ */
+ /**
+ * Sample code: Get details of a instance.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void getDetailsOfAInstance(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager.instances().list(Context.NONE);
+ }
+}
+```
+
+### Instances_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Instances ListByResourceGroup. */
+public final class InstancesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/listInstancesInResourceGroup.json
+ */
+ /**
+ * Sample code: List DFP instances in resource group.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void listDFPInstancesInResourceGroup(com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager.instances().listByResourceGroup("TestRG", Context.NONE);
+ }
+}
+```
+
+### Instances_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dfp.models.DfpInstance;
+import com.azure.resourcemanager.dfp.models.DfpInstanceAdministrators;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Instances Update. */
+public final class InstancesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/updateInstance.json
+ */
+ /**
+ * Sample code: Update instance parameters.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void updateInstanceParameters(com.azure.resourcemanager.dfp.DfpManager manager) {
+ DfpInstance resource =
+ manager.instances().getByResourceGroupWithResponse("TestRG", "azsdktest", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("testKey", "testValue"))
+ .withAdministration(
+ new DfpInstanceAdministrators()
+ .withMembers(Arrays.asList("azsdktest@microsoft.com", "azsdktest2@microsoft.com")))
+ .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;
+ }
+}
+```
+
+### ResourceProvider_ListOperations
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceProvider ListOperations. */
+public final class ResourceProviderListOperationsSamples {
+ /*
+ * x-ms-original-file: specification/dfp/resource-manager/Microsoft.Dynamics365Fraudprotection/preview/2021-02-01-preview/examples/ListOperations.json
+ */
+ /**
+ * Sample code: Get a list of operations supported by Microsoft.Dynamics365FraudProtection resource provider.
+ *
+ * @param manager Entry point to DfpManager.
+ */
+ public static void getAListOfOperationsSupportedByMicrosoftDynamics365FraudProtectionResourceProvider(
+ com.azure.resourcemanager.dfp.DfpManager manager) {
+ manager.resourceProviders().listOperations(Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/dfp/azure-resourcemanager-dfp/pom.xml b/sdk/dfp/azure-resourcemanager-dfp/pom.xml
new file mode 100644
index 000000000000..689395edd472
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/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-dfp
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Dfp Management
+ This package contains Microsoft Azure SDK for Dfp Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DFP Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete DFP instances. Package tag package-2021-02-01-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.26.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.3
+
+
+
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/DfpManager.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/DfpManager.java
new file mode 100644
index 000000000000..2360ddc390f3
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/DfpManager.java
@@ -0,0 +1,259 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp;
+
+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.dfp.fluent.Dfp;
+import com.azure.resourcemanager.dfp.implementation.DfpBuilder;
+import com.azure.resourcemanager.dfp.implementation.InstancesImpl;
+import com.azure.resourcemanager.dfp.implementation.ResourceProvidersImpl;
+import com.azure.resourcemanager.dfp.models.Instances;
+import com.azure.resourcemanager.dfp.models.ResourceProviders;
+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 DfpManager. DFP Web API provides a RESTful set of web services that enables users to create, retrieve,
+ * update, and delete DFP instances.
+ */
+public final class DfpManager {
+ private Instances instances;
+
+ private ResourceProviders resourceProviders;
+
+ private final Dfp clientObject;
+
+ private DfpManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new DfpBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Dfp service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Dfp service API instance.
+ */
+ public static DfpManager 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 DfpManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new DfpManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Dfp service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Dfp service API instance.
+ */
+ public DfpManager 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.dfp")
+ .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 DfpManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Instances. */
+ public Instances instances() {
+ if (this.instances == null) {
+ this.instances = new InstancesImpl(clientObject.getInstances(), this);
+ }
+ return instances;
+ }
+
+ /** @return Resource collection API of ResourceProviders. */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * @return Wrapped service client Dfp providing direct access to the underlying auto-generated API implementation,
+ * based on Azure REST API.
+ */
+ public Dfp serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/Dfp.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/Dfp.java
new file mode 100644
index 000000000000..5a3c47b68f5e
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/Dfp.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for Dfp class. */
+public interface Dfp {
+ /**
+ * Gets A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every
+ * service call.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the InstancesClient object to access its operations.
+ *
+ * @return the InstancesClient object.
+ */
+ InstancesClient getInstances();
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/InstancesClient.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/InstancesClient.java
new file mode 100644
index 000000000000..2c4abc6cea96
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/InstancesClient.java
@@ -0,0 +1,329 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.dfp.fluent.models.CheckInstanceNameAvailabilityResultInner;
+import com.azure.resourcemanager.dfp.fluent.models.DfpInstanceInner;
+import com.azure.resourcemanager.dfp.models.CheckInstanceNameAvailabilityParameters;
+import com.azure.resourcemanager.dfp.models.DfpInstanceUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in InstancesClient. */
+public interface InstancesClient {
+ /**
+ * Gets details about the specified instances.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the instance. It must be a minimum of 3 characters, and a maximum of 63.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details about the specified instances.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DfpInstanceInner getByResourceGroup(String resourceGroupName, String instanceName);
+
+ /**
+ * Gets details about the specified instances.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the instance. It must be a minimum of 3 characters, and a maximum of 63.
+ * @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 details about the specified instances along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String instanceName, Context context);
+
+ /**
+ * Provisions the specified DFP instance based on the configuration specified in the request.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instances. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param instanceParameters Contains the information used to provision the DFP instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DfpInstanceInner> beginCreate(
+ String resourceGroupName, String instanceName, DfpInstanceInner instanceParameters);
+
+ /**
+ * Provisions the specified DFP instance based on the configuration specified in the request.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instances. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param instanceParameters Contains the information used to provision the DFP instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DfpInstanceInner> beginCreate(
+ String resourceGroupName, String instanceName, DfpInstanceInner instanceParameters, Context context);
+
+ /**
+ * Provisions the specified DFP instance based on the configuration specified in the request.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instances. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param instanceParameters Contains the information used to provision the DFP instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DfpInstanceInner create(String resourceGroupName, String instanceName, DfpInstanceInner instanceParameters);
+
+ /**
+ * Provisions the specified DFP instance based on the configuration specified in the request.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instances. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param instanceParameters Contains the information used to provision the DFP instance.
+ * @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 an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DfpInstanceInner create(
+ String resourceGroupName, String instanceName, DfpInstanceInner instanceParameters, Context context);
+
+ /**
+ * Deletes the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String instanceName);
+
+ /**
+ * Deletes the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String instanceName, Context context);
+
+ /**
+ * Deletes the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 instanceName);
+
+ /**
+ * Deletes the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String instanceName, Context context);
+
+ /**
+ * Updates the current state of the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param instanceUpdateParameters Request object that contains the updated information for the instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DfpInstanceInner> beginUpdate(
+ String resourceGroupName, String instanceName, DfpInstanceUpdateParameters instanceUpdateParameters);
+
+ /**
+ * Updates the current state of the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param instanceUpdateParameters Request object that contains the updated information for the instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DfpInstanceInner> beginUpdate(
+ String resourceGroupName,
+ String instanceName,
+ DfpInstanceUpdateParameters instanceUpdateParameters,
+ Context context);
+
+ /**
+ * Updates the current state of the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param instanceUpdateParameters Request object that contains the updated information for the instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DfpInstanceInner update(
+ String resourceGroupName, String instanceName, DfpInstanceUpdateParameters instanceUpdateParameters);
+
+ /**
+ * Updates the current state of the specified DFP instance.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param instanceName The name of the DFP instance. It must be at least 3 characters in length, and no more than
+ * 63.
+ * @param instanceUpdateParameters Request object that contains the updated information for the instance.
+ * @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 an instance of a DFP instance resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DfpInstanceInner update(
+ String resourceGroupName,
+ String instanceName,
+ DfpInstanceUpdateParameters instanceUpdateParameters,
+ Context context);
+
+ /**
+ * Gets all the Dedicated instance for the given resource group.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the Dedicated instance for the given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets all the Dedicated instance for the given resource group.
+ *
+ * @param resourceGroupName The name of the Azure Resource group of which a given DFP instance is part. This name
+ * must be at least 1 character in length, and no more than 90.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the Dedicated instance for the given resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all the Dedicated instances for the given 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 an array of DFP instance resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the Dedicated instances for the given 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 an array of DFP instance resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Check the name availability in the target location.
+ *
+ * @param location The region name which the operation will lookup into.
+ * @param instanceParameters The name of the instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 checking result of DFP instance name availability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckInstanceNameAvailabilityResultInner checkNameAvailability(
+ String location, CheckInstanceNameAvailabilityParameters instanceParameters);
+
+ /**
+ * Check the name availability in the target location.
+ *
+ * @param location The region name which the operation will lookup into.
+ * @param instanceParameters The name of the instance.
+ * @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 checking result of DFP instance name availability along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String location, CheckInstanceNameAvailabilityParameters instanceParameters, Context context);
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/ResourceProvidersClient.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/ResourceProvidersClient.java
new file mode 100644
index 000000000000..88f3cab26ca1
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/ResourceProvidersClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.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.dfp.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
+ /**
+ * Lists all of the available DFP REST API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOperations();
+
+ /**
+ * Lists all of the available DFP REST API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOperations(Context context);
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/CheckInstanceNameAvailabilityResultInner.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/CheckInstanceNameAvailabilityResultInner.java
new file mode 100644
index 000000000000..ac93bcb2daa2
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/CheckInstanceNameAvailabilityResultInner.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The checking result of DFP instance name availability. */
+@Fluent
+public final class CheckInstanceNameAvailabilityResultInner {
+ /*
+ * Indicator of availability of the DFP instance name.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * The reason of unavailability.
+ */
+ @JsonProperty(value = "reason")
+ private String reason;
+
+ /*
+ * The detailed message of the request unavailability.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the nameAvailable property: Indicator of availability of the DFP instance name.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Indicator of availability of the DFP instance name.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the CheckInstanceNameAvailabilityResultInner object itself.
+ */
+ public CheckInstanceNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason property: The reason of unavailability.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: The reason of unavailability.
+ *
+ * @param reason the reason value to set.
+ * @return the CheckInstanceNameAvailabilityResultInner object itself.
+ */
+ public CheckInstanceNameAvailabilityResultInner withReason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the message property: The detailed message of the request unavailability.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: The detailed message of the request unavailability.
+ *
+ * @param message the message value to set.
+ * @return the CheckInstanceNameAvailabilityResultInner object itself.
+ */
+ public CheckInstanceNameAvailabilityResultInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceInner.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceInner.java
new file mode 100644
index 000000000000..4f58d1a4363c
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceInner.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.dfp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.dfp.models.DfpInstanceAdministrators;
+import com.azure.resourcemanager.dfp.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Represents an instance of a DFP instance resource. */
+@Fluent
+public final class DfpInstanceInner extends ProxyResource {
+ /*
+ * Properties of the provision operation request.
+ */
+ @JsonProperty(value = "properties")
+ private DfpInstanceProperties innerProperties;
+
+ /*
+ * Location of the DFP resource.
+ */
+ @JsonProperty(value = "location", required = true)
+ private String location;
+
+ /*
+ * Key-value pairs of additional resource provisioning properties.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of the provision operation request.
+ *
+ * @return the innerProperties value.
+ */
+ private DfpInstanceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the location property: Location of the DFP resource.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Location of the DFP resource.
+ *
+ * @param location the location value to set.
+ * @return the DfpInstanceInner object itself.
+ */
+ public DfpInstanceInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Key-value pairs of additional resource provisioning properties.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Key-value pairs of additional resource provisioning properties.
+ *
+ * @param tags the tags value to set.
+ * @return the DfpInstanceInner object itself.
+ */
+ public DfpInstanceInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the provisioningState property: The current deployment state of DFP resource. The provisioningState is to
+ * indicate states for resource provisioning.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the administration property: A collection of DFP instance administrators.
+ *
+ * @return the administration value.
+ */
+ public DfpInstanceAdministrators administration() {
+ return this.innerProperties() == null ? null : this.innerProperties().administration();
+ }
+
+ /**
+ * Set the administration property: A collection of DFP instance administrators.
+ *
+ * @param administration the administration value to set.
+ * @return the DfpInstanceInner object itself.
+ */
+ public DfpInstanceInner withAdministration(DfpInstanceAdministrators administration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DfpInstanceProperties();
+ }
+ this.innerProperties().withAdministration(administration);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (location() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property location in model DfpInstanceInner"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DfpInstanceInner.class);
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceMutableProperties.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceMutableProperties.java
new file mode 100644
index 000000000000..4520e56e2037
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceMutableProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.dfp.models.DfpInstanceAdministrators;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An object that represents a set of mutable DFP resource properties. */
+@Fluent
+public class DfpInstanceMutableProperties {
+ /*
+ * A collection of DFP instance administrators
+ */
+ @JsonProperty(value = "administration")
+ private DfpInstanceAdministrators administration;
+
+ /**
+ * Get the administration property: A collection of DFP instance administrators.
+ *
+ * @return the administration value.
+ */
+ public DfpInstanceAdministrators administration() {
+ return this.administration;
+ }
+
+ /**
+ * Set the administration property: A collection of DFP instance administrators.
+ *
+ * @param administration the administration value to set.
+ * @return the DfpInstanceMutableProperties object itself.
+ */
+ public DfpInstanceMutableProperties withAdministration(DfpInstanceAdministrators administration) {
+ this.administration = administration;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (administration() != null) {
+ administration().validate();
+ }
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceProperties.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceProperties.java
new file mode 100644
index 000000000000..a590ab501fbf
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/DfpInstanceProperties.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.dfp.models.DfpInstanceAdministrators;
+import com.azure.resourcemanager.dfp.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of DFP resource. */
+@Fluent
+public final class DfpInstanceProperties extends DfpInstanceMutableProperties {
+ /*
+ * The current deployment state of DFP resource. The provisioningState is
+ * to indicate states for resource provisioning.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * Get the provisioningState property: The current deployment state of DFP resource. The provisioningState is to
+ * indicate states for resource provisioning.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DfpInstanceProperties withAdministration(DfpInstanceAdministrators administration) {
+ super.withAdministration(administration);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/OperationInner.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..30e2081566a6
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/OperationInner.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.dfp.models.ActionType;
+import com.azure.resourcemanager.dfp.models.OperationDisplay;
+import com.azure.resourcemanager.dfp.models.Origin;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+@Fluent
+public final class OperationInner {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC).
+ * Examples: "Microsoft.Compute/virtualMachines/write",
+ * "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for
+ * data-plane operations and "false" for ARM/control-plane operations.
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access
+ * Control (RBAC) and audit logs UX. Default value is "user,system"
+ */
+ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ */
+ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
+ private ActionType actionType;
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Localized display information for this particular operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/package-info.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/models/package-info.java
new file mode 100644
index 000000000000..b8f8bed5abed
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/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 Dfp. DFP Web API provides a RESTful set of web services that enables
+ * users to create, retrieve, update, and delete DFP instances.
+ */
+package com.azure.resourcemanager.dfp.fluent.models;
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/package-info.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/fluent/package-info.java
new file mode 100644
index 000000000000..7f55dcf1ed98
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/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 Dfp. DFP Web API provides a RESTful set of web services that enables users
+ * to create, retrieve, update, and delete DFP instances.
+ */
+package com.azure.resourcemanager.dfp.fluent;
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/CheckInstanceNameAvailabilityResultImpl.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/CheckInstanceNameAvailabilityResultImpl.java
new file mode 100644
index 000000000000..8ec5c6447d1a
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/CheckInstanceNameAvailabilityResultImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.implementation;
+
+import com.azure.resourcemanager.dfp.fluent.models.CheckInstanceNameAvailabilityResultInner;
+import com.azure.resourcemanager.dfp.models.CheckInstanceNameAvailabilityResult;
+
+public final class CheckInstanceNameAvailabilityResultImpl implements CheckInstanceNameAvailabilityResult {
+ private CheckInstanceNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.dfp.DfpManager serviceManager;
+
+ CheckInstanceNameAvailabilityResultImpl(
+ CheckInstanceNameAvailabilityResultInner innerObject, com.azure.resourcemanager.dfp.DfpManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public String reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public CheckInstanceNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.dfp.DfpManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpBuilder.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpBuilder.java
new file mode 100644
index 000000000000..d9d231b01f67
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpBuilder.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.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 DfpImpl type. */
+@ServiceClientBuilder(serviceClients = {DfpImpl.class})
+public final class DfpBuilder {
+ /*
+ * A unique identifier for a Microsoft Azure subscription. The subscription
+ * ID forms part of the URI for every service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every
+ * service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DfpBuilder.
+ */
+ public DfpBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DfpBuilder.
+ */
+ public DfpBuilder 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 DfpBuilder.
+ */
+ public DfpBuilder 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 DfpBuilder.
+ */
+ public DfpBuilder 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 DfpBuilder.
+ */
+ public DfpBuilder 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 DfpBuilder.
+ */
+ public DfpBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DfpImpl with the provided parameters.
+ *
+ * @return an instance of DfpImpl.
+ */
+ public DfpImpl 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();
+ }
+ DfpImpl client =
+ new DfpImpl(pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpImpl.java b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpImpl.java
new file mode 100644
index 000000000000..96aa92f40989
--- /dev/null
+++ b/sdk/dfp/azure-resourcemanager-dfp/src/main/java/com/azure/resourcemanager/dfp/implementation/DfpImpl.java
@@ -0,0 +1,312 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dfp.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.dfp.fluent.Dfp;
+import com.azure.resourcemanager.dfp.fluent.InstancesClient;
+import com.azure.resourcemanager.dfp.fluent.ResourceProvidersClient;
+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 DfpImpl type. */
+@ServiceClient(builder = DfpBuilder.class)
+public final class DfpImpl implements Dfp {
+ /**
+ * A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every
+ * service call.
+ *
+ * @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 InstancesClient object to access its operations. */
+ private final InstancesClient instances;
+
+ /**
+ * Gets the InstancesClient object to access its operations.
+ *
+ * @return the InstancesClient object.
+ */
+ public InstancesClient getInstances() {
+ return this.instances;
+ }
+
+ /** The ResourceProvidersClient object to access its operations. */
+ private final ResourceProvidersClient resourceProviders;
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
+ }
+
+ /**
+ * Initializes an instance of Dfp 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 A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ DfpImpl(
+ 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 = "2021-02-01-preview";
+ this.instances = new InstancesClientImpl(this);
+ this.resourceProviders = new ResourceProvidersClientImpl(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