diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 162b0b666abe..a93e733ce8d6 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -202,6 +202,7 @@ com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-bet
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-netapp;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-datalakeanalytics;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index 4c02855979a4..5ea1a5f56036 100644
--- a/pom.xml
+++ b/pom.xml
@@ -579,6 +579,7 @@
sdk/coresdk/cosmossdk/costmanagement
+ sdk/datalakeanalyticssdk/digitaltwinssdk/eventgridsdk/eventhubs
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md
new file mode 100644
index 000000000000..68520d8ea6ef
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-02-21)
+
+- Azure Resource Manager DataLakeAnalytics client library for Java. This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. 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/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md
new file mode 100644
index 000000000000..e65c25b21166
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager DataLakeAnalytics client library for Java
+
+Azure Resource Manager DataLakeAnalytics client library for Java.
+
+This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. 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-datalakeanalytics;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-datalakeanalytics
+ 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();
+DataLakeAnalyticsManager manager = DataLakeAnalyticsManager
+ .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
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/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/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml
new file mode 100644
index 000000000000..f4627fc5016b
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml
@@ -0,0 +1,67 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-datalakeanalytics
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for DataLakeAnalytics Management
+ This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
+ 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
+
+
+
+
+ com.azure
+ azure-core
+ 1.13.0
+
+
+ com.azure
+ azure-core-management
+ 1.1.1
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java
new file mode 100644
index 000000000000..6762feba4d8d
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics;
+
+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.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+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.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.fluent.DataLakeAnalyticsAccountManagementClient;
+import com.azure.resourcemanager.datalakeanalytics.implementation.AccountsImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.ComputePoliciesImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.DataLakeAnalyticsAccountManagementClientBuilder;
+import com.azure.resourcemanager.datalakeanalytics.implementation.DataLakeStoreAccountsImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.FirewallRulesImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.LocationsImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.OperationsImpl;
+import com.azure.resourcemanager.datalakeanalytics.implementation.StorageAccountsImpl;
+import com.azure.resourcemanager.datalakeanalytics.models.Accounts;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicies;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeStoreAccounts;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallRules;
+import com.azure.resourcemanager.datalakeanalytics.models.Locations;
+import com.azure.resourcemanager.datalakeanalytics.models.Operations;
+import com.azure.resourcemanager.datalakeanalytics.models.StorageAccounts;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to DataLakeAnalyticsManager. Creates an Azure Data Lake Analytics account management client. */
+public final class DataLakeAnalyticsManager {
+ private Accounts accounts;
+
+ private DataLakeStoreAccounts dataLakeStoreAccounts;
+
+ private StorageAccounts storageAccounts;
+
+ private ComputePolicies computePolicies;
+
+ private FirewallRules firewallRules;
+
+ private Operations operations;
+
+ private Locations locations;
+
+ private final DataLakeAnalyticsAccountManagementClient clientObject;
+
+ private DataLakeAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new DataLakeAnalyticsAccountManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of DataLakeAnalytics service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the DataLakeAnalytics service API instance.
+ */
+ public static DataLakeAnalyticsManager 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 DataLakeAnalyticsManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new DataLakeAnalyticsManager.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 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;
+ }
+
+ /**
+ * 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 DataLakeAnalytics service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the DataLakeAnalytics service API instance.
+ */
+ public DataLakeAnalyticsManager 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.datalakeanalytics")
+ .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 (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new DataLakeAnalyticsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Accounts. */
+ public Accounts accounts() {
+ if (this.accounts == null) {
+ this.accounts = new AccountsImpl(clientObject.getAccounts(), this);
+ }
+ return accounts;
+ }
+
+ /** @return Resource collection API of DataLakeStoreAccounts. */
+ public DataLakeStoreAccounts dataLakeStoreAccounts() {
+ if (this.dataLakeStoreAccounts == null) {
+ this.dataLakeStoreAccounts = new DataLakeStoreAccountsImpl(clientObject.getDataLakeStoreAccounts(), this);
+ }
+ return dataLakeStoreAccounts;
+ }
+
+ /** @return Resource collection API of StorageAccounts. */
+ public StorageAccounts storageAccounts() {
+ if (this.storageAccounts == null) {
+ this.storageAccounts = new StorageAccountsImpl(clientObject.getStorageAccounts(), this);
+ }
+ return storageAccounts;
+ }
+
+ /** @return Resource collection API of ComputePolicies. */
+ public ComputePolicies computePolicies() {
+ if (this.computePolicies == null) {
+ this.computePolicies = new ComputePoliciesImpl(clientObject.getComputePolicies(), this);
+ }
+ return computePolicies;
+ }
+
+ /** @return Resource collection API of FirewallRules. */
+ public FirewallRules firewallRules() {
+ if (this.firewallRules == null) {
+ this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
+ }
+ return firewallRules;
+ }
+
+ /** @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 Locations. */
+ public Locations locations() {
+ if (this.locations == null) {
+ this.locations = new LocationsImpl(clientObject.getLocations(), this);
+ }
+ return locations;
+ }
+
+ /**
+ * @return Wrapped service client DataLakeAnalyticsAccountManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public DataLakeAnalyticsAccountManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java
new file mode 100644
index 000000000000..cd23fbc6154b
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java
@@ -0,0 +1,377 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountBasicInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.NameAvailabilityInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateDataLakeAnalyticsAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters;
+
+/** An instance of this class provides access to all the operations defined in AccountsClient. */
+public interface AccountsClient {
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @throws com.azure.core.management.exception.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 first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @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 first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context);
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @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 first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context);
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters);
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context);
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner create(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters);
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner create(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context);
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @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 of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account 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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters);
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context);
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account 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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner update(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters);
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner update(String resourceGroupName, String accountName);
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeAnalyticsAccountInner update(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context);
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @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 completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName);
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @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 accountName, Context context);
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NameAvailabilityInformationInner checkNameAvailability(String location, CheckNameAvailabilityParameters parameters);
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @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 data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters parameters, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java
new file mode 100644
index 000000000000..eefc03eda57b
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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.datalakeanalytics.fluent.models.ComputePolicyInner;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyParameters;
+
+/** An instance of this class provides access to all the operations defined in ComputePoliciesClient. */
+public interface ComputePoliciesClient {
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @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 list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComputePolicyInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters);
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @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 data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters,
+ Context context);
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComputePolicyInner get(String resourceGroupName, String accountName, String computePolicyName);
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @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 specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context);
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComputePolicyInner update(String resourceGroupName, String accountName, String computePolicyName);
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @param parameters Parameters supplied to update the compute policy.
+ * @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 data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ UpdateComputePolicyParameters parameters,
+ Context context);
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String computePolicyName);
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeAnalyticsAccountManagementClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeAnalyticsAccountManagementClient.java
new file mode 100644
index 000000000000..a57cc71fe069
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeAnalyticsAccountManagementClient.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for DataLakeAnalyticsAccountManagementClient class. */
+public interface DataLakeAnalyticsAccountManagementClient {
+ /**
+ * Gets Get subscription credentials which uniquely identify 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 AccountsClient object to access its operations.
+ *
+ * @return the AccountsClient object.
+ */
+ AccountsClient getAccounts();
+
+ /**
+ * Gets the DataLakeStoreAccountsClient object to access its operations.
+ *
+ * @return the DataLakeStoreAccountsClient object.
+ */
+ DataLakeStoreAccountsClient getDataLakeStoreAccounts();
+
+ /**
+ * Gets the StorageAccountsClient object to access its operations.
+ *
+ * @return the StorageAccountsClient object.
+ */
+ StorageAccountsClient getStorageAccounts();
+
+ /**
+ * Gets the ComputePoliciesClient object to access its operations.
+ *
+ * @return the ComputePoliciesClient object.
+ */
+ ComputePoliciesClient getComputePolicies();
+
+ /**
+ * Gets the FirewallRulesClient object to access its operations.
+ *
+ * @return the FirewallRulesClient object.
+ */
+ FirewallRulesClient getFirewallRules();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ LocationsClient getLocations();
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java
new file mode 100644
index 000000000000..bd8c5cffa5b3
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.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.datalakeanalytics.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.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters;
+
+/** An instance of this class provides access to all the operations defined in DataLakeStoreAccountsClient. */
+public interface DataLakeStoreAccountsClient {
+ /**
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response
+ * includes a link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response
+ * includes a link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @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 first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(
+ String resourceGroupName,
+ String accountName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context);
+
+ /**
+ * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to add.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 add(String resourceGroupName, String accountName, String dataLakeStoreAccountName);
+
+ /**
+ * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to add.
+ * @param parameters The details of the Data Lake Store account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response addWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String dataLakeStoreAccountName,
+ AddDataLakeStoreParameters parameters,
+ Context context);
+
+ /**
+ * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specified Data Lake Store account details in the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataLakeStoreAccountInformationInner get(
+ String resourceGroupName, String accountName, String dataLakeStoreAccountName);
+
+ /**
+ * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve.
+ * @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 specified Data Lake Store account details in the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String dataLakeStoreAccountName, Context context);
+
+ /**
+ * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String dataLakeStoreAccountName);
+
+ /**
+ * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String dataLakeStoreAccountName, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java
new file mode 100644
index 000000000000..6d51824b9901
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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.datalakeanalytics.fluent.models.FirewallRuleInner;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateFirewallRuleParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleParameters;
+
+/** An instance of this class provides access to all the operations defined in FirewallRulesClient. */
+public interface FirewallRulesClient {
+ /**
+ * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics firewall rule list information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @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 data Lake Analytics firewall rule list information.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be
+ * replaced with this new firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to create or update.
+ * @param parameters Parameters supplied to create or update the firewall rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics firewall rule information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FirewallRuleInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String firewallRuleName,
+ CreateOrUpdateFirewallRuleParameters parameters);
+
+ /**
+ * Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be
+ * replaced with this new firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to create or update.
+ * @param parameters Parameters supplied to create or update the firewall rule.
+ * @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 data Lake Analytics firewall rule information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String firewallRuleName,
+ CreateOrUpdateFirewallRuleParameters parameters,
+ Context context);
+
+ /**
+ * Gets the specified Data Lake Analytics firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specified Data Lake Analytics firewall rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FirewallRuleInner get(String resourceGroupName, String accountName, String firewallRuleName);
+
+ /**
+ * Gets the specified Data Lake Analytics firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to retrieve.
+ * @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 specified Data Lake Analytics firewall rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String firewallRuleName, Context context);
+
+ /**
+ * Updates the specified firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics firewall rule information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FirewallRuleInner update(String resourceGroupName, String accountName, String firewallRuleName);
+
+ /**
+ * Updates the specified firewall rule.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to update.
+ * @param parameters Parameters supplied to update the firewall rule.
+ * @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 data Lake Analytics firewall rule information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String firewallRuleName,
+ UpdateFirewallRuleParameters parameters,
+ Context context);
+
+ /**
+ * Deletes the specified firewall rule from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String firewallRuleName);
+
+ /**
+ * Deletes the specified firewall rule from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param firewallRuleName The name of the firewall rule to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String firewallRuleName, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java
new file mode 100644
index 000000000000..5a3bd9ba1e02
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.CapabilityInformationInner;
+
+/** An instance of this class provides access to all the operations defined in LocationsClient. */
+public interface LocationsClient {
+ /**
+ * Gets subscription-level properties and limits for Data Lake Analytics specified by resource location.
+ *
+ * @param location The resource location without whitespace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return subscription-level properties and limits for Data Lake Analytics specified by resource location.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CapabilityInformationInner getCapability(String location);
+
+ /**
+ * Gets subscription-level properties and limits for Data Lake Analytics specified by resource location.
+ *
+ * @param location The resource location without whitespace.
+ * @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 subscription-level properties and limits for Data Lake Analytics specified by resource location.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCapabilityWithResponse(String location, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java
new file mode 100644
index 000000000000..1e94ae172304
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/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.datalakeanalytics.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.OperationListResultInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Data Lake Analytics 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 the list of available operations for Data Lake Analytics.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationListResultInner list();
+
+ /**
+ * Lists all of the available Data Lake Analytics 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 the list of available operations for Data Lake Analytics.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java
new file mode 100644
index 000000000000..26952fd73e87
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java
@@ -0,0 +1,311 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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.datalakeanalytics.fluent.models.SasTokenInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageContainerInner;
+import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountParameters;
+
+/** An instance of this class provides access to all the operations defined in StorageAccountsClient. */
+public interface StorageAccountsClient {
+ /**
+ * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The
+ * response includes a link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The
+ * response includes a link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param filter The OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @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 first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAccount(
+ String resourceGroupName,
+ String accountName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context);
+
+ /**
+ * Updates the specified Data Lake Analytics account to add an Azure Storage account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account to add.
+ * @param parameters The parameters containing the access key and optional suffix for the Azure Storage Account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 add(
+ String resourceGroupName,
+ String accountName,
+ String storageAccountName,
+ AddStorageAccountParameters parameters);
+
+ /**
+ * Updates the specified Data Lake Analytics account to add an Azure Storage account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account to add.
+ * @param parameters The parameters containing the access key and optional suffix for the Azure Storage Account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response addWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String storageAccountName,
+ AddStorageAccountParameters parameters,
+ Context context);
+
+ /**
+ * Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account for which to retrieve the details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specified Azure Storage account linked to the given Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageAccountInformationInner get(String resourceGroupName, String accountName, String storageAccountName);
+
+ /**
+ * Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account for which to retrieve the details.
+ * @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 specified Azure Storage account linked to the given Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String storageAccountName, Context context);
+
+ /**
+ * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key
+ * and/or suffix.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The Azure Storage account to modify.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 update(String resourceGroupName, String accountName, String storageAccountName);
+
+ /**
+ * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key
+ * and/or suffix.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The Azure Storage account to modify.
+ * @param parameters The parameters containing the access key and suffix to update the storage account with, if any.
+ * Passing nothing results in no change.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String storageAccountName,
+ UpdateStorageAccountParameters parameters,
+ Context context);
+
+ /**
+ * Updates the specified Data Lake Analytics account to remove an Azure Storage account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account to remove.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 accountName, String storageAccountName);
+
+ /**
+ * Updates the specified Data Lake Analytics account to remove an Azure Storage account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure Storage account to remove.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String storageAccountName, Context context);
+
+ /**
+ * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage
+ * account combination. The response includes a link to the next page of results, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account from which to list blob containers.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 list of blob containers associated with the storage account attached to the Data Lake Analytics
+ * account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listStorageContainers(
+ String resourceGroupName, String accountName, String storageAccountName);
+
+ /**
+ * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage
+ * account combination. The response includes a link to the next page of results, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account from which to list blob containers.
+ * @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 list of blob containers associated with the storage account attached to the Data Lake Analytics
+ * account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listStorageContainers(
+ String resourceGroupName, String accountName, String storageAccountName, Context context);
+
+ /**
+ * Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage
+ * accounts.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account from which to retrieve the blob container.
+ * @param containerName The name of the Azure storage container to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage
+ * accounts.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainerInner getStorageContainer(
+ String resourceGroupName, String accountName, String storageAccountName, String containerName);
+
+ /**
+ * Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage
+ * accounts.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account from which to retrieve the blob container.
+ * @param containerName The name of the Azure storage container to retrieve.
+ * @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 specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage
+ * accounts.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getStorageContainerWithResponse(
+ String resourceGroupName, String accountName, String storageAccountName, String containerName, Context context);
+
+ /**
+ * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container
+ * combination.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account for which the SAS token is being requested.
+ * @param containerName The name of the Azure storage container for which the SAS token is being requested.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container
+ * combination.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSasTokens(
+ String resourceGroupName, String accountName, String storageAccountName, String containerName);
+
+ /**
+ * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container
+ * combination.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param storageAccountName The name of the Azure storage account for which the SAS token is being requested.
+ * @param containerName The name of the Azure storage container for which the SAS token is being requested.
+ * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container
+ * combination.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSasTokens(
+ String resourceGroupName, String accountName, String storageAccountName, String containerName, Context context);
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CapabilityInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CapabilityInformationInner.java
new file mode 100644
index 000000000000..e09e2427a088
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CapabilityInformationInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.SubscriptionState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Subscription-level properties and limits for Data Lake Analytics. */
+@Immutable
+public final class CapabilityInformationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CapabilityInformationInner.class);
+
+ /*
+ * The subscription credentials that uniquely identifies the subscription.
+ */
+ @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID subscriptionId;
+
+ /*
+ * The subscription state.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private SubscriptionState state;
+
+ /*
+ * The maximum supported number of accounts under this subscription.
+ */
+ @JsonProperty(value = "maxAccountCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxAccountCount;
+
+ /*
+ * The current number of accounts under this subscription.
+ */
+ @JsonProperty(value = "accountCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer accountCount;
+
+ /*
+ * The Boolean value of true or false to indicate the maintenance state.
+ */
+ @JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean migrationState;
+
+ /**
+ * Get the subscriptionId property: The subscription credentials that uniquely identifies the subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public UUID subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Get the state property: The subscription state.
+ *
+ * @return the state value.
+ */
+ public SubscriptionState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the maxAccountCount property: The maximum supported number of accounts under this subscription.
+ *
+ * @return the maxAccountCount value.
+ */
+ public Integer maxAccountCount() {
+ return this.maxAccountCount;
+ }
+
+ /**
+ * Get the accountCount property: The current number of accounts under this subscription.
+ *
+ * @return the accountCount value.
+ */
+ public Integer accountCount() {
+ return this.accountCount;
+ }
+
+ /**
+ * Get the migrationState property: The Boolean value of true or false to indicate the maintenance state.
+ *
+ * @return the migrationState value.
+ */
+ public Boolean migrationState() {
+ return this.migrationState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java
new file mode 100644
index 000000000000..7964d5f972b5
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Data Lake Analytics compute policy information. */
+@JsonFlatten
+@Immutable
+public class ComputePolicyInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputePolicyInner.class);
+
+ /*
+ * The AAD object identifier for the entity to create a policy for.
+ */
+ @JsonProperty(value = "properties.objectId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID objectId;
+
+ /*
+ * The type of AAD object the object identifier refers to.
+ */
+ @JsonProperty(value = "properties.objectType", access = JsonProperty.Access.WRITE_ONLY)
+ private AadObjectType objectType;
+
+ /*
+ * The maximum degree of parallelism per job this user can use to submit
+ * jobs.
+ */
+ @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum priority per job this user can use to submit jobs.
+ */
+ @JsonProperty(value = "properties.minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer minPriorityPerJob;
+
+ /*
+ * The resource name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the objectId property: The AAD object identifier for the entity to create a policy for.
+ *
+ * @return the objectId value.
+ */
+ public UUID objectId() {
+ return this.objectId;
+ }
+
+ /**
+ * Get the objectType property: The type of AAD object the object identifier refers to.
+ *
+ * @return the objectType value.
+ */
+ public AadObjectType objectType() {
+ return this.objectType;
+ }
+
+ /**
+ * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to
+ * submit jobs.
+ *
+ * @return the maxDegreeOfParallelismPerJob value.
+ */
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.maxDegreeOfParallelismPerJob;
+ }
+
+ /**
+ * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs.
+ *
+ * @return the minPriorityPerJob value.
+ */
+ public Integer minPriorityPerJob() {
+ return this.minPriorityPerJob;
+ }
+
+ /**
+ * Get the name property: The resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ComputePolicyInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java
new file mode 100644
index 000000000000..9d3b0ae18438
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java
@@ -0,0 +1,139 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+import java.util.UUID;
+
+/**
+ * A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics
+ * account.
+ */
+@JsonFlatten
+@Immutable
+public class DataLakeAnalyticsAccountBasicInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountBasicInner.class);
+
+ /*
+ * The unique identifier associated with this Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID accountId;
+
+ /*
+ * The provisioning status of the Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountStatus provisioningState;
+
+ /*
+ * The state of the Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountState state;
+
+ /*
+ * The account creation time.
+ */
+ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationTime;
+
+ /*
+ * The account last modified time.
+ */
+ @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
+
+ /*
+ * The full CName endpoint for this account.
+ */
+ @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String endpoint;
+
+ /**
+ * Get the accountId property: The unique identifier associated with this Data Lake Analytics account.
+ *
+ * @return the accountId value.
+ */
+ public UUID accountId() {
+ return this.accountId;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning status of the Data Lake Analytics account.
+ *
+ * @return the provisioningState value.
+ */
+ public DataLakeAnalyticsAccountStatus provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the state property: The state of the Data Lake Analytics account.
+ *
+ * @return the state value.
+ */
+ public DataLakeAnalyticsAccountState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the creationTime property: The account creation time.
+ *
+ * @return the creationTime value.
+ */
+ public OffsetDateTime creationTime() {
+ return this.creationTime;
+ }
+
+ /**
+ * Get the lastModifiedTime property: The account last modified time.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * Get the endpoint property: The full CName endpoint for this account.
+ *
+ * @return the endpoint value.
+ */
+ public String endpoint() {
+ return this.endpoint;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountBasicInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountBasicInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java
new file mode 100644
index 000000000000..639eb629a068
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java
@@ -0,0 +1,568 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus;
+import com.azure.resourcemanager.datalakeanalytics.models.DebugDataAccessLevel;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.HiveMetastore;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+import java.util.UUID;
+
+/**
+ * A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics
+ * account.
+ */
+@JsonFlatten
+@Fluent
+public class DataLakeAnalyticsAccountInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountInner.class);
+
+ /*
+ * The unique identifier associated with this Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID accountId;
+
+ /*
+ * The provisioning status of the Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountStatus provisioningState;
+
+ /*
+ * The state of the Data Lake Analytics account.
+ */
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountState state;
+
+ /*
+ * The account creation time.
+ */
+ @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationTime;
+
+ /*
+ * The account last modified time.
+ */
+ @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
+
+ /*
+ * The full CName endpoint for this account.
+ */
+ @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String endpoint;
+
+ /*
+ * The default Data Lake Store account associated with this account.
+ */
+ @JsonProperty(value = "properties.defaultDataLakeStoreAccount", access = JsonProperty.Access.WRITE_ONLY)
+ private String defaultDataLakeStoreAccount;
+
+ /*
+ * The list of Data Lake Store accounts associated with this account.
+ */
+ @JsonProperty(value = "properties.dataLakeStoreAccounts", access = JsonProperty.Access.WRITE_ONLY)
+ private List dataLakeStoreAccounts;
+
+ /*
+ * The list of Data Lake Store accounts associated with this account.
+ */
+ @JsonProperty(value = "properties.publicDataLakeStoreAccounts")
+ private List publicDataLakeStoreAccounts;
+
+ /*
+ * The list of Azure Blob Storage accounts associated with this account.
+ */
+ @JsonProperty(value = "properties.storageAccounts", access = JsonProperty.Access.WRITE_ONLY)
+ private List storageAccounts;
+
+ /*
+ * The list of compute policies associated with this account.
+ */
+ @JsonProperty(value = "properties.computePolicies", access = JsonProperty.Access.WRITE_ONLY)
+ private List computePolicies;
+
+ /*
+ * The list of hiveMetastores associated with this account.
+ */
+ @JsonProperty(value = "properties.hiveMetastores", access = JsonProperty.Access.WRITE_ONLY)
+ private List hiveMetastores;
+
+ /*
+ * The list of virtualNetwork rules associated with this account.
+ */
+ @JsonProperty(value = "properties.virtualNetworkRules", access = JsonProperty.Access.WRITE_ONLY)
+ private List virtualNetworkRules;
+
+ /*
+ * The list of firewall rules associated with this account.
+ */
+ @JsonProperty(value = "properties.firewallRules", access = JsonProperty.Access.WRITE_ONLY)
+ private List firewallRules;
+
+ /*
+ * The current state of the IP address firewall for this account.
+ */
+ @JsonProperty(value = "properties.firewallState")
+ private FirewallState firewallState;
+
+ /*
+ * The current state of allowing or disallowing IPs originating within
+ * Azure through the firewall. If the firewall is disabled, this is not
+ * enforced.
+ */
+ @JsonProperty(value = "properties.firewallAllowAzureIps")
+ private FirewallAllowAzureIpsState firewallAllowAzureIps;
+
+ /*
+ * The commitment tier for the next month.
+ */
+ @JsonProperty(value = "properties.newTier")
+ private TierType newTier;
+
+ /*
+ * The commitment tier in use for the current month.
+ */
+ @JsonProperty(value = "properties.currentTier", access = JsonProperty.Access.WRITE_ONLY)
+ private TierType currentTier;
+
+ /*
+ * The maximum supported jobs running under the account at the same time.
+ */
+ @JsonProperty(value = "properties.maxJobCount")
+ private Integer maxJobCount;
+
+ /*
+ * The system defined maximum supported jobs running under the account at
+ * the same time, which restricts the maximum number of running jobs the
+ * user can set for the account.
+ */
+ @JsonProperty(value = "properties.systemMaxJobCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer systemMaxJobCount;
+
+ /*
+ * The maximum supported degree of parallelism for this account.
+ */
+ @JsonProperty(value = "properties.maxDegreeOfParallelism")
+ private Integer maxDegreeOfParallelism;
+
+ /*
+ * The system defined maximum supported degree of parallelism for this
+ * account, which restricts the maximum value of parallelism the user can
+ * set for the account.
+ */
+ @JsonProperty(value = "properties.systemMaxDegreeOfParallelism", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer systemMaxDegreeOfParallelism;
+
+ /*
+ * The maximum supported degree of parallelism per job for this account.
+ */
+ @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob")
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum supported priority per job for this account.
+ */
+ @JsonProperty(value = "properties.minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer minPriorityPerJob;
+
+ /*
+ * The number of days that job metadata is retained.
+ */
+ @JsonProperty(value = "properties.queryStoreRetention")
+ private Integer queryStoreRetention;
+
+ /*
+ * The current state of the DebugDataAccessLevel for this account.
+ */
+ @JsonProperty(value = "properties.debugDataAccessLevel", access = JsonProperty.Access.WRITE_ONLY)
+ private DebugDataAccessLevel debugDataAccessLevel;
+
+ /**
+ * Get the accountId property: The unique identifier associated with this Data Lake Analytics account.
+ *
+ * @return the accountId value.
+ */
+ public UUID accountId() {
+ return this.accountId;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning status of the Data Lake Analytics account.
+ *
+ * @return the provisioningState value.
+ */
+ public DataLakeAnalyticsAccountStatus provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the state property: The state of the Data Lake Analytics account.
+ *
+ * @return the state value.
+ */
+ public DataLakeAnalyticsAccountState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the creationTime property: The account creation time.
+ *
+ * @return the creationTime value.
+ */
+ public OffsetDateTime creationTime() {
+ return this.creationTime;
+ }
+
+ /**
+ * Get the lastModifiedTime property: The account last modified time.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * Get the endpoint property: The full CName endpoint for this account.
+ *
+ * @return the endpoint value.
+ */
+ public String endpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account.
+ *
+ * @return the defaultDataLakeStoreAccount value.
+ */
+ public String defaultDataLakeStoreAccount() {
+ return this.defaultDataLakeStoreAccount;
+ }
+
+ /**
+ * Get the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account.
+ *
+ * @return the dataLakeStoreAccounts value.
+ */
+ public List dataLakeStoreAccounts() {
+ return this.dataLakeStoreAccounts;
+ }
+
+ /**
+ * Get the publicDataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account.
+ *
+ * @return the publicDataLakeStoreAccounts value.
+ */
+ public List publicDataLakeStoreAccounts() {
+ return this.publicDataLakeStoreAccounts;
+ }
+
+ /**
+ * Set the publicDataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account.
+ *
+ * @param publicDataLakeStoreAccounts the publicDataLakeStoreAccounts value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withPublicDataLakeStoreAccounts(
+ List publicDataLakeStoreAccounts) {
+ this.publicDataLakeStoreAccounts = publicDataLakeStoreAccounts;
+ return this;
+ }
+
+ /**
+ * Get the storageAccounts property: The list of Azure Blob Storage accounts associated with this account.
+ *
+ * @return the storageAccounts value.
+ */
+ public List storageAccounts() {
+ return this.storageAccounts;
+ }
+
+ /**
+ * Get the computePolicies property: The list of compute policies associated with this account.
+ *
+ * @return the computePolicies value.
+ */
+ public List computePolicies() {
+ return this.computePolicies;
+ }
+
+ /**
+ * Get the hiveMetastores property: The list of hiveMetastores associated with this account.
+ *
+ * @return the hiveMetastores value.
+ */
+ public List hiveMetastores() {
+ return this.hiveMetastores;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: The list of virtualNetwork rules associated with this account.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Get the firewallRules property: The list of firewall rules associated with this account.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Get the firewallState property: The current state of the IP address firewall for this account.
+ *
+ * @return the firewallState value.
+ */
+ public FirewallState firewallState() {
+ return this.firewallState;
+ }
+
+ /**
+ * Set the firewallState property: The current state of the IP address firewall for this account.
+ *
+ * @param firewallState the firewallState value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withFirewallState(FirewallState firewallState) {
+ this.firewallState = firewallState;
+ return this;
+ }
+
+ /**
+ * Get the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @return the firewallAllowAzureIps value.
+ */
+ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
+ return this.firewallAllowAzureIps;
+ }
+
+ /**
+ * Set the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @param firewallAllowAzureIps the firewallAllowAzureIps value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps) {
+ this.firewallAllowAzureIps = firewallAllowAzureIps;
+ return this;
+ }
+
+ /**
+ * Get the newTier property: The commitment tier for the next month.
+ *
+ * @return the newTier value.
+ */
+ public TierType newTier() {
+ return this.newTier;
+ }
+
+ /**
+ * Set the newTier property: The commitment tier for the next month.
+ *
+ * @param newTier the newTier value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withNewTier(TierType newTier) {
+ this.newTier = newTier;
+ return this;
+ }
+
+ /**
+ * Get the currentTier property: The commitment tier in use for the current month.
+ *
+ * @return the currentTier value.
+ */
+ public TierType currentTier() {
+ return this.currentTier;
+ }
+
+ /**
+ * Get the maxJobCount property: The maximum supported jobs running under the account at the same time.
+ *
+ * @return the maxJobCount value.
+ */
+ public Integer maxJobCount() {
+ return this.maxJobCount;
+ }
+
+ /**
+ * Set the maxJobCount property: The maximum supported jobs running under the account at the same time.
+ *
+ * @param maxJobCount the maxJobCount value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withMaxJobCount(Integer maxJobCount) {
+ this.maxJobCount = maxJobCount;
+ return this;
+ }
+
+ /**
+ * Get the systemMaxJobCount property: The system defined maximum supported jobs running under the account at the
+ * same time, which restricts the maximum number of running jobs the user can set for the account.
+ *
+ * @return the systemMaxJobCount value.
+ */
+ public Integer systemMaxJobCount() {
+ return this.systemMaxJobCount;
+ }
+
+ /**
+ * Get the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account.
+ *
+ * @return the maxDegreeOfParallelism value.
+ */
+ public Integer maxDegreeOfParallelism() {
+ return this.maxDegreeOfParallelism;
+ }
+
+ /**
+ * Set the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account.
+ *
+ * @param maxDegreeOfParallelism the maxDegreeOfParallelism value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) {
+ this.maxDegreeOfParallelism = maxDegreeOfParallelism;
+ return this;
+ }
+
+ /**
+ * Get the systemMaxDegreeOfParallelism property: The system defined maximum supported degree of parallelism for
+ * this account, which restricts the maximum value of parallelism the user can set for the account.
+ *
+ * @return the systemMaxDegreeOfParallelism value.
+ */
+ public Integer systemMaxDegreeOfParallelism() {
+ return this.systemMaxDegreeOfParallelism;
+ }
+
+ /**
+ * Get the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this
+ * account.
+ *
+ * @return the maxDegreeOfParallelismPerJob value.
+ */
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.maxDegreeOfParallelismPerJob;
+ }
+
+ /**
+ * Set the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this
+ * account.
+ *
+ * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
+ this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob;
+ return this;
+ }
+
+ /**
+ * Get the minPriorityPerJob property: The minimum supported priority per job for this account.
+ *
+ * @return the minPriorityPerJob value.
+ */
+ public Integer minPriorityPerJob() {
+ return this.minPriorityPerJob;
+ }
+
+ /**
+ * Get the queryStoreRetention property: The number of days that job metadata is retained.
+ *
+ * @return the queryStoreRetention value.
+ */
+ public Integer queryStoreRetention() {
+ return this.queryStoreRetention;
+ }
+
+ /**
+ * Set the queryStoreRetention property: The number of days that job metadata is retained.
+ *
+ * @param queryStoreRetention the queryStoreRetention value to set.
+ * @return the DataLakeAnalyticsAccountInner object itself.
+ */
+ public DataLakeAnalyticsAccountInner withQueryStoreRetention(Integer queryStoreRetention) {
+ this.queryStoreRetention = queryStoreRetention;
+ return this;
+ }
+
+ /**
+ * Get the debugDataAccessLevel property: The current state of the DebugDataAccessLevel for this account.
+ *
+ * @return the debugDataAccessLevel value.
+ */
+ public DebugDataAccessLevel debugDataAccessLevel() {
+ return this.debugDataAccessLevel;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dataLakeStoreAccounts() != null) {
+ dataLakeStoreAccounts().forEach(e -> e.validate());
+ }
+ if (publicDataLakeStoreAccounts() != null) {
+ publicDataLakeStoreAccounts().forEach(e -> e.validate());
+ }
+ if (storageAccounts() != null) {
+ storageAccounts().forEach(e -> e.validate());
+ }
+ if (computePolicies() != null) {
+ computePolicies().forEach(e -> e.validate());
+ }
+ if (hiveMetastores() != null) {
+ hiveMetastores().forEach(e -> e.validate());
+ }
+ if (virtualNetworkRules() != null) {
+ virtualNetworkRules().forEach(e -> e.validate());
+ }
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java
new file mode 100644
index 000000000000..130f01f6bb9a
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Data Lake Store account information. */
+@JsonFlatten
+@Immutable
+public class DataLakeStoreAccountInformationInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInformationInner.class);
+
+ /*
+ * The optional suffix for the Data Lake Store account.
+ */
+ @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY)
+ private String suffix;
+
+ /*
+ * The resource name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Get the name property: The resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeStoreAccountInformationInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java
new file mode 100644
index 000000000000..128e8ddbcae3
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.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.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Data Lake Analytics firewall rule information. */
+@JsonFlatten
+@Immutable
+public class FirewallRuleInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleInner.class);
+
+ /*
+ * The start IP address for the firewall rule. This can be either ipv4 or
+ * ipv6. Start and End should be in the same protocol.
+ */
+ @JsonProperty(value = "properties.startIpAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String startIpAddress;
+
+ /*
+ * The end IP address for the firewall rule. This can be either ipv4 or
+ * ipv6. Start and End should be in the same protocol.
+ */
+ @JsonProperty(value = "properties.endIpAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String endIpAddress;
+
+ /*
+ * The resource name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.startIpAddress;
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.endIpAddress;
+ }
+
+ /**
+ * Get the name property: The resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public FirewallRuleInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/NameAvailabilityInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/NameAvailabilityInformationInner.java
new file mode 100644
index 000000000000..b2d809287fef
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/NameAvailabilityInformationInner.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Data Lake Analytics account name availability result information. */
+@Immutable
+public final class NameAvailabilityInformationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(NameAvailabilityInformationInner.class);
+
+ /*
+ * The Boolean value of true or false to indicate whether the Data Lake
+ * Analytics account name is available or not.
+ */
+ @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean nameAvailable;
+
+ /*
+ * The reason why the Data Lake Analytics account name is not available, if
+ * nameAvailable is false.
+ */
+ @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
+ private String reason;
+
+ /*
+ * The message describing why the Data Lake Analytics account name is not
+ * available, if nameAvailable is false.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Get the nameAvailable property: The Boolean value of true or false to indicate whether the Data Lake Analytics
+ * account name is available or not.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Get the reason property: The reason why the Data Lake Analytics account name is not available, if nameAvailable
+ * is false.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get the message property: The message describing why the Data Lake Analytics account name is not available, if
+ * nameAvailable is false.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/OperationListResultInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/OperationListResultInner.java
new file mode 100644
index 000000000000..8be68d5c2c41
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/OperationListResultInner.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.Operation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The list of available operations for Data Lake Analytics. */
+@Immutable
+public final class OperationListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResultInner.class);
+
+ /*
+ * The results of the list operation.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * The link (url) to the next page of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /**
+ * Get the value property: The results of the list operation.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: The link (url) to the next page of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/SasTokenInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/SasTokenInformationInner.java
new file mode 100644
index 000000000000..889c8402d7fb
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/SasTokenInformationInner.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** SAS token information. */
+@Immutable
+public final class SasTokenInformationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SasTokenInformationInner.class);
+
+ /*
+ * The access token for the associated Azure Storage Container.
+ */
+ @JsonProperty(value = "accessToken", access = JsonProperty.Access.WRITE_ONLY)
+ private String accessToken;
+
+ /**
+ * Get the accessToken property: The access token for the associated Azure Storage Container.
+ *
+ * @return the accessToken value.
+ */
+ public String accessToken() {
+ return this.accessToken;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java
new file mode 100644
index 000000000000..c53ae5a034de
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Storage account information. */
+@JsonFlatten
+@Immutable
+public class StorageAccountInformationInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInformationInner.class);
+
+ /*
+ * The optional suffix for the storage account.
+ */
+ @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY)
+ private String suffix;
+
+ /*
+ * The resource name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the suffix property: The optional suffix for the storage account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Get the name property: The resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageAccountInformationInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java
new file mode 100644
index 000000000000..596ac1b6a4b1
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SubResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Azure Storage blob container information. */
+@JsonFlatten
+@Immutable
+public class StorageContainerInner extends SubResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageContainerInner.class);
+
+ /*
+ * The last modified time of the blob container.
+ */
+ @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
+
+ /*
+ * The resource name.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * Get the lastModifiedTime property: The last modified time of the blob container.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * Get the name property: The resource name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageContainerInner withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/package-info.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/package-info.java
new file mode 100644
index 000000000000..5908a6a55aac
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/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 DataLakeAnalyticsAccountManagementClient. Creates an Azure Data Lake
+ * Analytics account management client.
+ */
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/package-info.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/package-info.java
new file mode 100644
index 000000000000..af0781971620
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/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 DataLakeAnalyticsAccountManagementClient. Creates an Azure Data Lake
+ * Analytics account management client.
+ */
+package com.azure.resourcemanager.datalakeanalytics.fluent;
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java
new file mode 100644
index 000000000000..513b3cf2b898
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java
@@ -0,0 +1,2074 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.datalakeanalytics.fluent.AccountsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountBasicInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.NameAvailabilityInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateDataLakeAnalyticsAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountListResult;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AccountsClient. */
+public final class AccountsClientImpl implements AccountsClient {
+ private final ClientLogger logger = new ClientLogger(AccountsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final AccountsService service;
+
+ /** The service client containing this operation class. */
+ private final DataLakeAnalyticsAccountManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AccountsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AccountsClientImpl(DataLakeAnalyticsAccountManagementClientImpl client) {
+ this.service = RestProxy.create(AccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DataLakeAnalyticsAccountManagementClientAccounts to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DataLakeAnalyticsAcc")
+ private interface AccountsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("$filter") String filter,
+ @QueryParam("$top") Integer top,
+ @QueryParam("$skip") Integer skip,
+ @QueryParam("$select") String select,
+ @QueryParam("$orderby") String orderby,
+ @QueryParam("$count") Boolean count,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("$filter") String filter,
+ @QueryParam("$top") Integer top,
+ @QueryParam("$skip") Integer skip,
+ @QueryParam("$select") String select,
+ @QueryParam("$orderby") String orderby,
+ @QueryParam("$count") Boolean count,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CreateDataLakeAnalyticsAccountParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}")
+ @ExpectedResponses({200, 201, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") UpdateDataLakeAnalyticsAccountParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}"
+ + "/checkNameAvailability")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> checkNameAvailability(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CheckNameAvailabilityParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ filter,
+ top,
+ skip,
+ select,
+ orderby,
+ count,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ filter,
+ top,
+ skip,
+ select,
+ orderby,
+ count,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, top, skip, select, orderby, count),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final String filter = null;
+ final Integer top = null;
+ final Integer skip = null;
+ final String select = null;
+ final String orderby = null;
+ final Boolean count = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, top, skip, select, orderby, count),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(filter, top, skip, select, orderby, count, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final String filter = null;
+ final Integer top = null;
+ final Integer skip = null;
+ final String select = null;
+ final String orderby = null;
+ final Boolean count = null;
+ return new PagedIterable<>(listAsync(filter, top, skip, select, orderby, count));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a
+ * link to the next page, if any.
+ *
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context) {
+ return new PagedIterable<>(listAsync(filter, top, skip, select, orderby, count, context));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ filter,
+ top,
+ skip,
+ select,
+ orderby,
+ count,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ filter,
+ top,
+ skip,
+ select,
+ orderby,
+ count,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, top, skip, select, orderby, count),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ final String filter = null;
+ final Integer top = null;
+ final Integer skip = null;
+ final String select = null;
+ final String orderby = null;
+ final Boolean count = null;
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, top, skip, select, orderby, count),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context) {
+ return new PagedFlux<>(
+ () ->
+ listByResourceGroupSinglePageAsync(
+ resourceGroupName, filter, top, skip, select, orderby, count, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ final String filter = null;
+ final Integer top = null;
+ final Integer skip = null;
+ final String select = null;
+ final String orderby = null;
+ final Boolean count = null;
+ return new PagedIterable<>(
+ listByResourceGroupAsync(resourceGroupName, filter, top, skip, select, orderby, count));
+ }
+
+ /**
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a
+ * link to the next page, if any.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param filter OData filter. Optional.
+ * @param top The number of items to return. Optional.
+ * @param skip The number of items to skip over before returning elements. Optional.
+ * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g.
+ * Categories?$select=CategoryName,Description. Optional.
+ * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or
+ * "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc.
+ * Optional.
+ * @param count The Boolean value of true or false to request a count of the matching resources included with the
+ * resources in the response, e.g. Categories?$count=true. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context) {
+ return new PagedIterable<>(
+ listByResourceGroupAsync(resourceGroupName, filter, top, skip, select, orderby, count, context));
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DataLakeAnalyticsAccountInner.class,
+ DataLakeAnalyticsAccountInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createWithResponseAsync(resourceGroupName, accountName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DataLakeAnalyticsAccountInner.class,
+ DataLakeAnalyticsAccountInner.class,
+ context);
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
+ return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
+ return beginCreateAsync(resourceGroupName, accountName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return beginCreateAsync(resourceGroupName, accountName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner create(
+ String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
+ return createAsync(resourceGroupName, accountName, parameters).block();
+ }
+
+ /**
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake
+ * Analytics workloads.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner create(
+ String resourceGroupName,
+ String accountName,
+ CreateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return createAsync(resourceGroupName, accountName, parameters, context).block();
+ }
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
+ return getByResourceGroupAsync(resourceGroupName, accountName).block();
+ }
+
+ /**
+ * Gets details of the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the specified Data Lake Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DataLakeAnalyticsAccountInner.class,
+ DataLakeAnalyticsAccountInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, accountName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ DataLakeAnalyticsAccountInner.class,
+ DataLakeAnalyticsAccountInner.class,
+ context);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
+ return beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
+ return beginUpdateAsync(resourceGroupName, accountName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String accountName) {
+ final UpdateDataLakeAnalyticsAccountParameters parameters = null;
+ return beginUpdateAsync(resourceGroupName, accountName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, accountName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner update(
+ String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
+ return updateAsync(resourceGroupName, accountName, parameters).block();
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner update(String resourceGroupName, String accountName) {
+ final UpdateDataLakeAnalyticsAccountParameters parameters = null;
+ return updateAsync(resourceGroupName, accountName, parameters).block();
+ }
+
+ /**
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account
+ * object.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param parameters Parameters supplied to the update Data Lake Analytics account operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake
+ * Analytics account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataLakeAnalyticsAccountInner update(
+ String resourceGroupName,
+ String accountName,
+ UpdateDataLakeAnalyticsAccountParameters parameters,
+ Context context) {
+ return updateAsync(resourceGroupName, accountName, parameters, context).block();
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String accountName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) {
+ return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, Context context) {
+ return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String accountName) {
+ return beginDeleteAsync(resourceGroupName, accountName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String accountName, Context context) {
+ return beginDeleteAsync(resourceGroupName, accountName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName) {
+ deleteAsync(resourceGroupName, accountName).block();
+ }
+
+ /**
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName, Context context) {
+ deleteAsync(resourceGroupName, accountName, context).block();
+ }
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String location, CheckNameAvailabilityParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ location,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> checkNameAvailabilityWithResponseAsync(
+ String location, CheckNameAvailabilityParameters parameters, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .checkNameAvailability(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ location,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono checkNameAvailabilityAsync(
+ String location, CheckNameAvailabilityParameters parameters) {
+ return checkNameAvailabilityWithResponseAsync(location, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public NameAvailabilityInformationInner checkNameAvailability(
+ String location, CheckNameAvailabilityParameters parameters) {
+ return checkNameAvailabilityAsync(location, parameters).block();
+ }
+
+ /**
+ * Checks whether the specified account name is available or taken.
+ *
+ * @param location The resource location without whitespace.
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account name availability result information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response checkNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters parameters, Context context) {
+ return checkNameAvailabilityWithResponseAsync(location, parameters, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account list information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account list information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account list information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics account list information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java
new file mode 100644
index 000000000000..2be1bcb858b1
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.AccountsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountBasicInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.NameAvailabilityInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.Accounts;
+import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountBasic;
+import com.azure.resourcemanager.datalakeanalytics.models.NameAvailabilityInformation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class AccountsImpl implements Accounts {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountsImpl.class);
+
+ private final AccountsClient innerClient;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ public AccountsImpl(AccountsClient innerClient, DataLakeAnalyticsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new DataLakeAnalyticsAccountBasicImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(filter, top, skip, select, orderby, count, context);
+ return Utils.mapPage(inner, inner1 -> new DataLakeAnalyticsAccountBasicImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new DataLakeAnalyticsAccountBasicImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName,
+ String filter,
+ Integer top,
+ Integer skip,
+ String select,
+ String orderby,
+ Boolean count,
+ Context context) {
+ PagedIterable inner =
+ this
+ .serviceClient()
+ .listByResourceGroup(resourceGroupName, filter, top, skip, select, orderby, count, context);
+ return Utils.mapPage(inner, inner1 -> new DataLakeAnalyticsAccountBasicImpl(inner1, this.manager()));
+ }
+
+ public DataLakeAnalyticsAccount getByResourceGroup(String resourceGroupName, String accountName) {
+ DataLakeAnalyticsAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName);
+ if (inner != null) {
+ return new DataLakeAnalyticsAccountImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DataLakeAnalyticsAccountImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String accountName) {
+ this.serviceClient().delete(resourceGroupName, accountName);
+ }
+
+ public void delete(String resourceGroupName, String accountName, Context context) {
+ this.serviceClient().delete(resourceGroupName, accountName, context);
+ }
+
+ public NameAvailabilityInformation checkNameAvailability(
+ String location, CheckNameAvailabilityParameters parameters) {
+ NameAvailabilityInformationInner inner = this.serviceClient().checkNameAvailability(location, parameters);
+ if (inner != null) {
+ return new NameAvailabilityInformationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response checkNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters parameters, Context context) {
+ Response inner =
+ this.serviceClient().checkNameAvailabilityWithResponse(location, parameters, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new NameAvailabilityInformationImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DataLakeAnalyticsAccount getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, accountName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ this.delete(resourceGroupName, accountName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ this.delete(resourceGroupName, accountName, context);
+ }
+
+ private AccountsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+
+ public DataLakeAnalyticsAccountImpl define(String name) {
+ return new DataLakeAnalyticsAccountImpl(name, this.manager());
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/CapabilityInformationImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/CapabilityInformationImpl.java
new file mode 100644
index 000000000000..9d23b436fab6
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/CapabilityInformationImpl.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.datalakeanalytics.implementation;
+
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.CapabilityInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.CapabilityInformation;
+import com.azure.resourcemanager.datalakeanalytics.models.SubscriptionState;
+import java.util.UUID;
+
+public final class CapabilityInformationImpl implements CapabilityInformation {
+ private CapabilityInformationInner innerObject;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ CapabilityInformationImpl(CapabilityInformationInner innerObject, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public UUID subscriptionId() {
+ return this.innerModel().subscriptionId();
+ }
+
+ public SubscriptionState state() {
+ return this.innerModel().state();
+ }
+
+ public Integer maxAccountCount() {
+ return this.innerModel().maxAccountCount();
+ }
+
+ public Integer accountCount() {
+ return this.innerModel().accountCount();
+ }
+
+ public Boolean migrationState() {
+ return this.innerModel().migrationState();
+ }
+
+ public CapabilityInformationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java
new file mode 100644
index 000000000000..aefb11029e74
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java
@@ -0,0 +1,1165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.fluent.ComputePoliciesClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicyListResult;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyParameters;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ComputePoliciesClient. */
+public final class ComputePoliciesClientImpl implements ComputePoliciesClient {
+ private final ClientLogger logger = new ClientLogger(ComputePoliciesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final ComputePoliciesService service;
+
+ /** The service client containing this operation class. */
+ private final DataLakeAnalyticsAccountManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ComputePoliciesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ComputePoliciesClientImpl(DataLakeAnalyticsAccountManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ComputePoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DataLakeAnalyticsAccountManagementClientComputePolicies to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "DataLakeAnalyticsAcc")
+ private interface ComputePoliciesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}/computePolicies")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAccount(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}/computePolicies/{computePolicyName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("computePolicyName") String computePolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CreateOrUpdateComputePolicyParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}/computePolicies/{computePolicyName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("computePolicyName") String computePolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}/computePolicies/{computePolicyName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("computePolicyName") String computePolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") UpdateComputePolicyParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics"
+ + "/accounts/{accountName}/computePolicies/{computePolicyName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("computePolicyName") String computePolicyName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAccountNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAccountSinglePageAsync(
+ String resourceGroupName, String accountName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByAccount(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAccountSinglePageAsync(
+ String resourceGroupName, String accountName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByAccount(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByAccountAsync(String resourceGroupName, String accountName) {
+ return new PagedFlux<>(
+ () -> listByAccountSinglePageAsync(resourceGroupName, accountName),
+ nextLink -> listByAccountNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByAccountAsync(
+ String resourceGroupName, String accountName, Context context) {
+ return new PagedFlux<>(
+ () -> listByAccountSinglePageAsync(resourceGroupName, accountName, context),
+ nextLink -> listByAccountNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAccount(String resourceGroupName, String accountName) {
+ return new PagedIterable<>(listByAccountAsync(resourceGroupName, accountName));
+ }
+
+ /**
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account
+ * supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAccount(
+ String resourceGroupName, String accountName, Context context) {
+ return new PagedIterable<>(listByAccountAsync(resourceGroupName, accountName, context));
+ }
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ComputePolicyInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters) {
+ return createOrUpdateAsync(resourceGroupName, accountName, computePolicyName, parameters).block();
+ }
+
+ /**
+ * Creates or updates the specified compute policy. During update, the compute policy with the specified name will
+ * be replaced with this new compute policy. An account supports, at most, 50 policies.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to create or update.
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per
+ * job property, min priority per job property, or both must be present.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ CreateOrUpdateComputePolicyParameters parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String computePolicyName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String accountName, String computePolicyName) {
+ return getWithResponseAsync(resourceGroupName, accountName, computePolicyName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ComputePolicyInner get(String resourceGroupName, String accountName, String computePolicyName) {
+ return getAsync(resourceGroupName, accountName, computePolicyName).block();
+ }
+
+ /**
+ * Gets the specified Data Lake Analytics compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to retrieve.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Data Lake Analytics compute policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, computePolicyName, context).block();
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @param parameters Parameters supplied to update the compute policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ UpdateComputePolicyParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @param parameters Parameters supplied to update the compute policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ UpdateComputePolicyParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @param parameters Parameters supplied to update the compute policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ UpdateComputePolicyParameters parameters) {
+ return updateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String accountName, String computePolicyName) {
+ final UpdateComputePolicyParameters parameters = null;
+ return updateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ComputePolicyInner update(String resourceGroupName, String accountName, String computePolicyName) {
+ final UpdateComputePolicyParameters parameters = null;
+ return updateAsync(resourceGroupName, accountName, computePolicyName, parameters).block();
+ }
+
+ /**
+ * Updates the specified compute policy.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to update.
+ * @param parameters Parameters supplied to update the compute policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Lake Analytics compute policy information.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String computePolicyName,
+ UpdateComputePolicyParameters parameters,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters, context).block();
+ }
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, String computePolicyName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (computePolicyName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter computePolicyName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ computePolicyName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String accountName, String computePolicyName) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, computePolicyName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName, String computePolicyName) {
+ deleteAsync(resourceGroupName, accountName, computePolicyName).block();
+ }
+
+ /**
+ * Deletes the specified compute policy from the specified Data Lake Analytics account.
+ *
+ * @param resourceGroupName The name of the Azure resource group.
+ * @param accountName The name of the Data Lake Analytics account.
+ * @param computePolicyName The name of the compute policy to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, computePolicyName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAccountNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByAccountNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of compute policies in the account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAccountNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByAccountNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java
new file mode 100644
index 000000000000..adbf81eda7d4
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java
@@ -0,0 +1,194 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.ComputePoliciesClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicies;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class ComputePoliciesImpl implements ComputePolicies {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputePoliciesImpl.class);
+
+ private final ComputePoliciesClient innerClient;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ public ComputePoliciesImpl(ComputePoliciesClient innerClient, DataLakeAnalyticsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable listByAccount(String resourceGroupName, String accountName) {
+ PagedIterable inner = this.serviceClient().listByAccount(resourceGroupName, accountName);
+ return Utils.mapPage(inner, inner1 -> new ComputePolicyImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByAccount(String resourceGroupName, String accountName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByAccount(resourceGroupName, accountName, context);
+ return Utils.mapPage(inner, inner1 -> new ComputePolicyImpl(inner1, this.manager()));
+ }
+
+ public ComputePolicy get(String resourceGroupName, String accountName, String computePolicyName) {
+ ComputePolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, computePolicyName);
+ if (inner != null) {
+ return new ComputePolicyImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, accountName, computePolicyName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ComputePolicyImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String accountName, String computePolicyName) {
+ this.serviceClient().delete(resourceGroupName, accountName, computePolicyName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String accountName, String computePolicyName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, computePolicyName, context);
+ }
+
+ public ComputePolicy getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ String computePolicyName = Utils.getValueFromIdByName(id, "computePolicies");
+ if (computePolicyName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'computePolicies'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, accountName, computePolicyName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ String computePolicyName = Utils.getValueFromIdByName(id, "computePolicies");
+ if (computePolicyName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'computePolicies'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, accountName, computePolicyName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ String computePolicyName = Utils.getValueFromIdByName(id, "computePolicies");
+ if (computePolicyName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'computePolicies'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, accountName, computePolicyName, Context.NONE).getValue();
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String accountName = Utils.getValueFromIdByName(id, "accounts");
+ if (accountName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
+ }
+ String computePolicyName = Utils.getValueFromIdByName(id, "computePolicies");
+ if (computePolicyName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'computePolicies'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, accountName, computePolicyName, context);
+ }
+
+ private ComputePoliciesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+
+ public ComputePolicyImpl define(String name) {
+ return new ComputePolicyImpl(name, this.manager());
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java
new file mode 100644
index 000000000000..a5b8a738c5ac
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java
@@ -0,0 +1,198 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
+import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyParameters;
+import java.util.UUID;
+
+public final class ComputePolicyImpl implements ComputePolicy, ComputePolicy.Definition, ComputePolicy.Update {
+ private ComputePolicyInner innerObject;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public UUID objectId() {
+ return this.innerModel().objectId();
+ }
+
+ public AadObjectType objectType() {
+ return this.innerModel().objectType();
+ }
+
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.innerModel().maxDegreeOfParallelismPerJob();
+ }
+
+ public Integer minPriorityPerJob() {
+ return this.innerModel().minPriorityPerJob();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ComputePolicyInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String accountName;
+
+ private String computePolicyName;
+
+ private CreateOrUpdateComputePolicyParameters createParameters;
+
+ private UpdateComputePolicyParameters updateParameters;
+
+ public ComputePolicyImpl withExistingAccount(String resourceGroupName, String accountName) {
+ this.resourceGroupName = resourceGroupName;
+ this.accountName = accountName;
+ return this;
+ }
+
+ public ComputePolicy create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .createOrUpdateWithResponse(
+ resourceGroupName, accountName, computePolicyName, createParameters, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComputePolicy create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .createOrUpdateWithResponse(
+ resourceGroupName, accountName, computePolicyName, createParameters, context)
+ .getValue();
+ return this;
+ }
+
+ ComputePolicyImpl(String name, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = new ComputePolicyInner();
+ this.serviceManager = serviceManager;
+ this.computePolicyName = name;
+ this.createParameters = new CreateOrUpdateComputePolicyParameters();
+ }
+
+ public ComputePolicyImpl update() {
+ this.updateParameters = new UpdateComputePolicyParameters();
+ return this;
+ }
+
+ public ComputePolicy apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .updateWithResponse(resourceGroupName, accountName, computePolicyName, updateParameters, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComputePolicy apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .updateWithResponse(resourceGroupName, accountName, computePolicyName, updateParameters, context)
+ .getValue();
+ return this;
+ }
+
+ ComputePolicyImpl(ComputePolicyInner innerObject, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = Utils.getValueFromIdByName(innerObject.id(), "accounts");
+ this.computePolicyName = Utils.getValueFromIdByName(innerObject.id(), "computePolicies");
+ }
+
+ public ComputePolicy refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .getWithResponse(resourceGroupName, accountName, computePolicyName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComputePolicy refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getComputePolicies()
+ .getWithResponse(resourceGroupName, accountName, computePolicyName, context)
+ .getValue();
+ return this;
+ }
+
+ public ComputePolicyImpl withObjectId(UUID objectId) {
+ if (isInCreateMode()) {
+ this.createParameters.withObjectId(objectId);
+ return this;
+ } else {
+ this.updateParameters.withObjectId(objectId);
+ return this;
+ }
+ }
+
+ public ComputePolicyImpl withObjectType(AadObjectType objectType) {
+ if (isInCreateMode()) {
+ this.createParameters.withObjectType(objectType);
+ return this;
+ } else {
+ this.updateParameters.withObjectType(objectType);
+ return this;
+ }
+ }
+
+ public ComputePolicyImpl withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
+ if (isInCreateMode()) {
+ this.createParameters.withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob);
+ return this;
+ } else {
+ this.updateParameters.withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob);
+ return this;
+ }
+ }
+
+ public ComputePolicyImpl withMinPriorityPerJob(Integer minPriorityPerJob) {
+ if (isInCreateMode()) {
+ this.createParameters.withMinPriorityPerJob(minPriorityPerJob);
+ return this;
+ } else {
+ this.updateParameters.withMinPriorityPerJob(minPriorityPerJob);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountBasicImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountBasicImpl.java
new file mode 100644
index 000000000000..6bc927c4ba82
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountBasicImpl.java
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountBasicInner;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountBasic;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.Map;
+import java.util.UUID;
+
+public final class DataLakeAnalyticsAccountBasicImpl implements DataLakeAnalyticsAccountBasic {
+ private DataLakeAnalyticsAccountBasicInner innerObject;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ DataLakeAnalyticsAccountBasicImpl(
+ DataLakeAnalyticsAccountBasicInner innerObject, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public UUID accountId() {
+ return this.innerModel().accountId();
+ }
+
+ public DataLakeAnalyticsAccountStatus provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public DataLakeAnalyticsAccountState state() {
+ return this.innerModel().state();
+ }
+
+ public OffsetDateTime creationTime() {
+ return this.innerModel().creationTime();
+ }
+
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerModel().lastModifiedTime();
+ }
+
+ public String endpoint() {
+ return this.innerModel().endpoint();
+ }
+
+ public DataLakeAnalyticsAccountBasicInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java
new file mode 100644
index 000000000000..9a78aa923a04
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java
@@ -0,0 +1,499 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.FirewallRuleInner;
+import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationInner;
+import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateDataLakeAnalyticsAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeStoreAccountInformation;
+import com.azure.resourcemanager.datalakeanalytics.models.DebugDataAccessLevel;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.HiveMetastore;
+import com.azure.resourcemanager.datalakeanalytics.models.StorageAccountInformation;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.UUID;
+import java.util.stream.Collectors;
+
+public final class DataLakeAnalyticsAccountImpl
+ implements DataLakeAnalyticsAccount, DataLakeAnalyticsAccount.Definition, DataLakeAnalyticsAccount.Update {
+ private DataLakeAnalyticsAccountInner innerObject;
+
+ private final DataLakeAnalyticsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public UUID accountId() {
+ return this.innerModel().accountId();
+ }
+
+ public DataLakeAnalyticsAccountStatus provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public DataLakeAnalyticsAccountState state() {
+ return this.innerModel().state();
+ }
+
+ public OffsetDateTime creationTime() {
+ return this.innerModel().creationTime();
+ }
+
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerModel().lastModifiedTime();
+ }
+
+ public String endpoint() {
+ return this.innerModel().endpoint();
+ }
+
+ public String defaultDataLakeStoreAccount() {
+ return this.innerModel().defaultDataLakeStoreAccount();
+ }
+
+ public List dataLakeStoreAccounts() {
+ List inner = this.innerModel().dataLakeStoreAccounts();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new DataLakeStoreAccountInformationImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List publicDataLakeStoreAccounts() {
+ List inner = this.innerModel().publicDataLakeStoreAccounts();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new DataLakeStoreAccountInformationImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List storageAccounts() {
+ List inner = this.innerModel().storageAccounts();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new StorageAccountInformationImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List computePolicies() {
+ List inner = this.innerModel().computePolicies();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new ComputePolicyImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List hiveMetastores() {
+ List inner = this.innerModel().hiveMetastores();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List virtualNetworkRules() {
+ List inner = this.innerModel().virtualNetworkRules();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List firewallRules() {
+ List inner = this.innerModel().firewallRules();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new FirewallRuleImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public FirewallState firewallState() {
+ return this.innerModel().firewallState();
+ }
+
+ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
+ return this.innerModel().firewallAllowAzureIps();
+ }
+
+ public TierType newTier() {
+ return this.innerModel().newTier();
+ }
+
+ public TierType currentTier() {
+ return this.innerModel().currentTier();
+ }
+
+ public Integer maxJobCount() {
+ return this.innerModel().maxJobCount();
+ }
+
+ public Integer systemMaxJobCount() {
+ return this.innerModel().systemMaxJobCount();
+ }
+
+ public Integer maxDegreeOfParallelism() {
+ return this.innerModel().maxDegreeOfParallelism();
+ }
+
+ public Integer systemMaxDegreeOfParallelism() {
+ return this.innerModel().systemMaxDegreeOfParallelism();
+ }
+
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.innerModel().maxDegreeOfParallelismPerJob();
+ }
+
+ public Integer minPriorityPerJob() {
+ return this.innerModel().minPriorityPerJob();
+ }
+
+ public Integer queryStoreRetention() {
+ return this.innerModel().queryStoreRetention();
+ }
+
+ public DebugDataAccessLevel debugDataAccessLevel() {
+ return this.innerModel().debugDataAccessLevel();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public DataLakeAnalyticsAccountInner innerModel() {
+ return this.innerObject;
+ }
+
+ private DataLakeAnalyticsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String accountName;
+
+ private CreateDataLakeAnalyticsAccountParameters createParameters;
+
+ private UpdateDataLakeAnalyticsAccountParameters updateParameters;
+
+ public DataLakeAnalyticsAccountImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public DataLakeAnalyticsAccount create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .create(resourceGroupName, accountName, createParameters, Context.NONE);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccount create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .create(resourceGroupName, accountName, createParameters, context);
+ return this;
+ }
+
+ DataLakeAnalyticsAccountImpl(String name, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = new DataLakeAnalyticsAccountInner();
+ this.serviceManager = serviceManager;
+ this.accountName = name;
+ this.createParameters = new CreateDataLakeAnalyticsAccountParameters();
+ }
+
+ public DataLakeAnalyticsAccountImpl update() {
+ this.updateParameters = new UpdateDataLakeAnalyticsAccountParameters();
+ return this;
+ }
+
+ public DataLakeAnalyticsAccount apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .update(resourceGroupName, accountName, updateParameters, Context.NONE);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccount apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .update(resourceGroupName, accountName, updateParameters, context);
+ return this;
+ }
+
+ DataLakeAnalyticsAccountImpl(DataLakeAnalyticsAccountInner innerObject, DataLakeAnalyticsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = Utils.getValueFromIdByName(innerObject.id(), "accounts");
+ }
+
+ public DataLakeAnalyticsAccount refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DataLakeAnalyticsAccount refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAccounts()
+ .getByResourceGroupWithResponse(resourceGroupName, accountName, context)
+ .getValue();
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withRegion(Region location) {
+ this.createParameters.withLocation(location.toString());
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withRegion(String location) {
+ this.createParameters.withLocation(location);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withDefaultDataLakeStoreAccount(String defaultDataLakeStoreAccount) {
+ this.createParameters.withDefaultDataLakeStoreAccount(defaultDataLakeStoreAccount);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withDataLakeStoreAccounts(
+ List dataLakeStoreAccounts) {
+ this.createParameters.withDataLakeStoreAccounts(dataLakeStoreAccounts);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.createParameters.withTags(tags);
+ return this;
+ } else {
+ this.updateParameters.withTags(tags);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withStorageAccounts(
+ List storageAccounts) {
+ this.createParameters.withStorageAccounts(storageAccounts);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withComputePolicies(
+ List computePolicies) {
+ this.createParameters.withComputePolicies(computePolicies);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withFirewallRules(List firewallRules) {
+ this.createParameters.withFirewallRules(firewallRules);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withFirewallState(FirewallState firewallState) {
+ if (isInCreateMode()) {
+ this.createParameters.withFirewallState(firewallState);
+ return this;
+ } else {
+ this.updateParameters.withFirewallState(firewallState);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps) {
+ if (isInCreateMode()) {
+ this.createParameters.withFirewallAllowAzureIps(firewallAllowAzureIps);
+ return this;
+ } else {
+ this.updateParameters.withFirewallAllowAzureIps(firewallAllowAzureIps);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withNewTier(TierType newTier) {
+ if (isInCreateMode()) {
+ this.createParameters.withNewTier(newTier);
+ return this;
+ } else {
+ this.updateParameters.withNewTier(newTier);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withMaxJobCount(Integer maxJobCount) {
+ if (isInCreateMode()) {
+ this.createParameters.withMaxJobCount(maxJobCount);
+ return this;
+ } else {
+ this.updateParameters.withMaxJobCount(maxJobCount);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) {
+ if (isInCreateMode()) {
+ this.createParameters.withMaxDegreeOfParallelism(maxDegreeOfParallelism);
+ return this;
+ } else {
+ this.updateParameters.withMaxDegreeOfParallelism(maxDegreeOfParallelism);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
+ if (isInCreateMode()) {
+ this.createParameters.withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob);
+ return this;
+ } else {
+ this.updateParameters.withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withMinPriorityPerJob(Integer minPriorityPerJob) {
+ if (isInCreateMode()) {
+ this.createParameters.withMinPriorityPerJob(minPriorityPerJob);
+ return this;
+ } else {
+ this.updateParameters.withMinPriorityPerJob(minPriorityPerJob);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withQueryStoreRetention(Integer queryStoreRetention) {
+ if (isInCreateMode()) {
+ this.createParameters.withQueryStoreRetention(queryStoreRetention);
+ return this;
+ } else {
+ this.updateParameters.withQueryStoreRetention(queryStoreRetention);
+ return this;
+ }
+ }
+
+ public DataLakeAnalyticsAccountImpl withDataLakeStoreAccountsForUpdate(
+ List dataLakeStoreAccounts) {
+ this.updateParameters.withDataLakeStoreAccounts(dataLakeStoreAccounts);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withStorageAccountsForUpdate(
+ List storageAccounts) {
+ this.updateParameters.withStorageAccounts(storageAccounts);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withComputePoliciesForUpdate(
+ List computePolicies) {
+ this.updateParameters.withComputePolicies(computePolicies);
+ return this;
+ }
+
+ public DataLakeAnalyticsAccountImpl withFirewallRulesForUpdate(
+ List firewallRules) {
+ this.updateParameters.withFirewallRules(firewallRules);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientBuilder.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientBuilder.java
new file mode 100644
index 000000000000..37d94e8223a8
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientBuilder.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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 DataLakeAnalyticsAccountManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {DataLakeAnalyticsAccountManagementClientImpl.class})
+public final class DataLakeAnalyticsAccountManagementClientBuilder {
+ /*
+ * Get subscription credentials which uniquely identify Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Get subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder 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 DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder 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 DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder 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 DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder 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 DataLakeAnalyticsAccountManagementClientBuilder.
+ */
+ public DataLakeAnalyticsAccountManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DataLakeAnalyticsAccountManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of DataLakeAnalyticsAccountManagementClientImpl.
+ */
+ public DataLakeAnalyticsAccountManagementClientImpl 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();
+ }
+ DataLakeAnalyticsAccountManagementClientImpl client =
+ new DataLakeAnalyticsAccountManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java
new file mode 100644
index 000000000000..21b7c8b1b815
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java
@@ -0,0 +1,382 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.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.datalakeanalytics.fluent.AccountsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.ComputePoliciesClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.DataLakeAnalyticsAccountManagementClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.DataLakeStoreAccountsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.FirewallRulesClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.LocationsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.OperationsClient;
+import com.azure.resourcemanager.datalakeanalytics.fluent.StorageAccountsClient;
+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 DataLakeAnalyticsAccountManagementClientImpl type. */
+@ServiceClient(builder = DataLakeAnalyticsAccountManagementClientBuilder.class)
+public final class DataLakeAnalyticsAccountManagementClientImpl implements DataLakeAnalyticsAccountManagementClient {
+ private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountManagementClientImpl.class);
+
+ /**
+ * Get subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part
+ * of the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Get subscription credentials which uniquely identify 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 AccountsClient object to access its operations. */
+ private final AccountsClient accounts;
+
+ /**
+ * Gets the AccountsClient object to access its operations.
+ *
+ * @return the AccountsClient object.
+ */
+ public AccountsClient getAccounts() {
+ return this.accounts;
+ }
+
+ /** The DataLakeStoreAccountsClient object to access its operations. */
+ private final DataLakeStoreAccountsClient dataLakeStoreAccounts;
+
+ /**
+ * Gets the DataLakeStoreAccountsClient object to access its operations.
+ *
+ * @return the DataLakeStoreAccountsClient object.
+ */
+ public DataLakeStoreAccountsClient getDataLakeStoreAccounts() {
+ return this.dataLakeStoreAccounts;
+ }
+
+ /** The StorageAccountsClient object to access its operations. */
+ private final StorageAccountsClient storageAccounts;
+
+ /**
+ * Gets the StorageAccountsClient object to access its operations.
+ *
+ * @return the StorageAccountsClient object.
+ */
+ public StorageAccountsClient getStorageAccounts() {
+ return this.storageAccounts;
+ }
+
+ /** The ComputePoliciesClient object to access its operations. */
+ private final ComputePoliciesClient computePolicies;
+
+ /**
+ * Gets the ComputePoliciesClient object to access its operations.
+ *
+ * @return the ComputePoliciesClient object.
+ */
+ public ComputePoliciesClient getComputePolicies() {
+ return this.computePolicies;
+ }
+
+ /** The FirewallRulesClient object to access its operations. */
+ private final FirewallRulesClient firewallRules;
+
+ /**
+ * Gets the FirewallRulesClient object to access its operations.
+ *
+ * @return the FirewallRulesClient object.
+ */
+ public FirewallRulesClient getFirewallRules() {
+ return this.firewallRules;
+ }
+
+ /** 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 LocationsClient object to access its operations. */
+ private final LocationsClient locations;
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ public LocationsClient getLocations() {
+ return this.locations;
+ }
+
+ /**
+ * Initializes an instance of DataLakeAnalyticsAccountManagementClient 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 Get subscription credentials which uniquely identify Microsoft Azure subscription. The
+ * subscription ID forms part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ DataLakeAnalyticsAccountManagementClientImpl(
+ 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 = "2016-11-01";
+ this.accounts = new AccountsClientImpl(this);
+ this.dataLakeStoreAccounts = new DataLakeStoreAccountsClientImpl(this);
+ this.storageAccounts = new StorageAccountsClientImpl(this);
+ this.computePolicies = new ComputePoliciesClientImpl(this);
+ this.firewallRules = new FirewallRulesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.locations = new LocationsClientImpl(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