diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md
index c2c1cbf3924ff..eb0f04028c2ef 100644
--- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-02-16)
+- 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-preview-2019-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-22)
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md
index 69017d50e0cda..da5ca5d87934a 100644
--- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md
@@ -2,7 +2,7 @@
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).
+This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-preview-2019-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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-datalakeanalytics
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md
new file mode 100644
index 0000000000000..adc53e317d28e
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md
@@ -0,0 +1,928 @@
+# Code snippets and samples
+
+
+## Accounts
+
+- [CheckNameAvailability](#accounts_checknameavailability)
+- [Create](#accounts_create)
+- [Delete](#accounts_delete)
+- [GetByResourceGroup](#accounts_getbyresourcegroup)
+- [List](#accounts_list)
+- [ListByResourceGroup](#accounts_listbyresourcegroup)
+- [Update](#accounts_update)
+
+## ComputePolicies
+
+- [CreateOrUpdate](#computepolicies_createorupdate)
+- [Delete](#computepolicies_delete)
+- [Get](#computepolicies_get)
+- [ListByAccount](#computepolicies_listbyaccount)
+- [Update](#computepolicies_update)
+
+## DataLakeStoreAccounts
+
+- [Add](#datalakestoreaccounts_add)
+- [Delete](#datalakestoreaccounts_delete)
+- [Get](#datalakestoreaccounts_get)
+- [ListByAccount](#datalakestoreaccounts_listbyaccount)
+
+## FirewallRules
+
+- [CreateOrUpdate](#firewallrules_createorupdate)
+- [Delete](#firewallrules_delete)
+- [Get](#firewallrules_get)
+- [ListByAccount](#firewallrules_listbyaccount)
+- [Update](#firewallrules_update)
+
+## Locations
+
+- [GetCapability](#locations_getcapability)
+
+## Operations
+
+- [List](#operations_list)
+
+## StorageAccounts
+
+- [Add](#storageaccounts_add)
+- [Delete](#storageaccounts_delete)
+- [Get](#storageaccounts_get)
+- [GetStorageContainer](#storageaccounts_getstoragecontainer)
+- [ListByAccount](#storageaccounts_listbyaccount)
+- [ListSasTokens](#storageaccounts_listsastokens)
+- [ListStorageContainers](#storageaccounts_liststoragecontainers)
+- [Update](#storageaccounts_update)
+### Accounts_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters;
+
+/** Samples for Accounts CheckNameAvailability. */
+public final class AccountsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Checks whether the specified account name is available or taken.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void checksWhetherTheSpecifiedAccountNameIsAvailableOrTaken(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .accounts()
+ .checkNameAvailabilityWithResponse(
+ "EastUS2", new CheckNameAvailabilityParameters().withName("contosoadla"), Context.NONE);
+ }
+}
+```
+
+### Accounts_Create
+
+```java
+import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
+import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+/** Samples for Accounts Create. */
+public final class AccountsCreateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Create.json
+ */
+ /**
+ * Sample code: Creates the specified Data Lake Analytics account. This supplies the user with computation services
+ * for Data Lake Analytics workloads.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void
+ createsTheSpecifiedDataLakeAnalyticsAccountThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .accounts()
+ .define("contosoadla")
+ .withRegion("eastus2")
+ .withExistingResourceGroup("contosorg")
+ .withDefaultDataLakeStoreAccount("test_adls")
+ .withDataLakeStoreAccounts(
+ Arrays
+ .asList(
+ new AddDataLakeStoreWithAccountParameters().withName("test_adls").withSuffix("test_suffix")))
+ .withTags(mapOf("test_key", "test_value"))
+ .withStorageAccounts(
+ Arrays
+ .asList(
+ new AddStorageAccountWithAccountParameters()
+ .withName("test_storage")
+ .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
+ .withSuffix("test_suffix")))
+ .withComputePolicies(
+ Arrays
+ .asList(
+ new CreateComputePolicyWithAccountParameters()
+ .withName("test_policy")
+ .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"))
+ .withObjectType(AadObjectType.USER)
+ .withMaxDegreeOfParallelismPerJob(1)
+ .withMinPriorityPerJob(1)))
+ .withFirewallRules(
+ Arrays
+ .asList(
+ new CreateFirewallRuleWithAccountParameters()
+ .withName("test_rule")
+ .withStartIpAddress("1.1.1.1")
+ .withEndIpAddress("2.2.2.2")))
+ .withFirewallState(FirewallState.ENABLED)
+ .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED)
+ .withNewTier(TierType.CONSUMPTION)
+ .withMaxJobCount(3)
+ .withMaxDegreeOfParallelism(30)
+ .withMaxDegreeOfParallelismPerJob(1)
+ .withMinPriorityPerJob(1)
+ .withQueryStoreRetention(30)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Accounts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Accounts Delete. */
+public final class AccountsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Delete.json
+ */
+ /**
+ * Sample code: Begins the delete process for the Data Lake Analytics account object specified by the account name.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void beginsTheDeleteProcessForTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountName(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.accounts().delete("contosorg", "contosoadla", Context.NONE);
+ }
+}
+```
+
+### Accounts_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Accounts GetByResourceGroup. */
+public final class AccountsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Get.json
+ */
+ /**
+ * Sample code: Gets details of the specified Data Lake Analytics account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsDetailsOfTheSpecifiedDataLakeAnalyticsAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE);
+ }
+}
+```
+
+### Accounts_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Accounts List. */
+public final class AccountsListSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_List.json
+ */
+ /**
+ * Sample code: 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 manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void
+ getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.accounts().list("test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE);
+ }
+}
+```
+
+### Accounts_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Accounts ListByResourceGroup. */
+public final class AccountsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: 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 manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void
+ getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinASpecificResourceGroupThisIncludesALinkToTheNextPageIfAny(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .accounts()
+ .listByResourceGroup("contosorg", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE);
+ }
+}
+```
+
+### Accounts_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+/** Samples for Accounts Update. */
+public final class AccountsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Update.json
+ */
+ /**
+ * Sample code: Updates the Data Lake Analytics account object specified by the accountName with the contents of the
+ * account object.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void
+ updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ DataLakeAnalyticsAccount resource =
+ manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("test_key", "test_value"))
+ .withComputePoliciesForUpdate(
+ Arrays
+ .asList(
+ new UpdateComputePolicyWithAccountParameters()
+ .withName("test_policy")
+ .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"))
+ .withObjectType(AadObjectType.USER)
+ .withMaxDegreeOfParallelismPerJob(1)
+ .withMinPriorityPerJob(1)))
+ .withFirewallRulesForUpdate(
+ Arrays
+ .asList(
+ new UpdateFirewallRuleWithAccountParameters()
+ .withName("test_rule")
+ .withStartIpAddress("1.1.1.1")
+ .withEndIpAddress("2.2.2.2")))
+ .withFirewallState(FirewallState.ENABLED)
+ .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED)
+ .withNewTier(TierType.CONSUMPTION)
+ .withMaxJobCount(1)
+ .withMaxDegreeOfParallelism(1)
+ .withMaxDegreeOfParallelismPerJob(1)
+ .withMinPriorityPerJob(1)
+ .withQueryStoreRetention(1)
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ComputePolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
+import java.util.UUID;
+
+/** Samples for ComputePolicies CreateOrUpdate. */
+public final class ComputePoliciesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Creates or updates the specified compute policy.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void createsOrUpdatesTheSpecifiedComputePolicy(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .computePolicies()
+ .define("test_policy")
+ .withExistingAccount("contosorg", "contosoadla")
+ .withObjectId(UUID.fromString("776b9091-8916-4638-87f7-9c989a38da98"))
+ .withObjectType(AadObjectType.USER)
+ .withMaxDegreeOfParallelismPerJob(10)
+ .withMinPriorityPerJob(30)
+ .create();
+ }
+}
+```
+
+### ComputePolicies_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ComputePolicies Delete. */
+public final class ComputePoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Delete.json
+ */
+ /**
+ * Sample code: Deletes the specified compute policy from the adla account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void deletesTheSpecifiedComputePolicyFromTheAdlaAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.computePolicies().deleteWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE);
+ }
+}
+```
+
+### ComputePolicies_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ComputePolicies Get. */
+public final class ComputePoliciesGetSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Get.json
+ */
+ /**
+ * Sample code: Gets the specified compute policy.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSpecifiedComputePolicy(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.computePolicies().getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE);
+ }
+}
+```
+
+### ComputePolicies_ListByAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ComputePolicies ListByAccount. */
+public final class ComputePoliciesListByAccountSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_ListByAccount.json
+ */
+ /**
+ * Sample code: Lists the compute policies within the adla account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void listsTheComputePoliciesWithinTheAdlaAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.computePolicies().listByAccount("contosorg", "contosoadla", Context.NONE);
+ }
+}
+```
+
+### ComputePolicies_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy;
+
+/** Samples for ComputePolicies Update. */
+public final class ComputePoliciesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Update.json
+ */
+ /**
+ * Sample code: Updates the specified compute policy.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void updatesTheSpecifiedComputePolicy(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ ComputePolicy resource =
+ manager
+ .computePolicies()
+ .getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE)
+ .getValue();
+ resource.update().withMaxDegreeOfParallelismPerJob(11).withMinPriorityPerJob(31).apply();
+ }
+}
+```
+
+### DataLakeStoreAccounts_Add
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters;
+
+/** Samples for DataLakeStoreAccounts Add. */
+public final class DataLakeStoreAccountsAddSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Add.json
+ */
+ /**
+ * Sample code: Adds a Data Lake Store account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void addsADataLakeStoreAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .dataLakeStoreAccounts()
+ .addWithResponse(
+ "contosorg",
+ "contosoadla",
+ "test_adls_account",
+ new AddDataLakeStoreParameters().withSuffix("test_suffix"),
+ Context.NONE);
+ }
+}
+```
+
+### DataLakeStoreAccounts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataLakeStoreAccounts Delete. */
+public final class DataLakeStoreAccountsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Delete.json
+ */
+ /**
+ * Sample code: Removes the specified Data Lake Store account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void removesTheSpecifiedDataLakeStoreAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .dataLakeStoreAccounts()
+ .deleteWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE);
+ }
+}
+```
+
+### DataLakeStoreAccounts_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataLakeStoreAccounts Get. */
+public final class DataLakeStoreAccountsGetSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Get.json
+ */
+ /**
+ * Sample code: Gets the specified Data Lake Store account details.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSpecifiedDataLakeStoreAccountDetails(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.dataLakeStoreAccounts().getWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE);
+ }
+}
+```
+
+### DataLakeStoreAccounts_ListByAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataLakeStoreAccounts ListByAccount. */
+public final class DataLakeStoreAccountsListByAccountSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_ListByAccount.json
+ */
+ /**
+ * Sample code: Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .dataLakeStoreAccounts()
+ .listByAccount(
+ "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE);
+ }
+}
+```
+
+### FirewallRules_CreateOrUpdate
+
+```java
+/** Samples for FirewallRules CreateOrUpdate. */
+public final class FirewallRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Creates or updates the specified firewall rule.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void createsOrUpdatesTheSpecifiedFirewallRule(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .firewallRules()
+ .define("test_rule")
+ .withExistingAccount("contosorg", "contosoadla")
+ .withStartIpAddress("1.1.1.1")
+ .withEndIpAddress("2.2.2.2")
+ .create();
+ }
+}
+```
+
+### FirewallRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FirewallRules Delete. */
+public final class FirewallRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Delete.json
+ */
+ /**
+ * Sample code: Deletes the specified firewall rule.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void deletesTheSpecifiedFirewallRule(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.firewallRules().deleteWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE);
+ }
+}
+```
+
+### FirewallRules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FirewallRules Get. */
+public final class FirewallRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Get.json
+ */
+ /**
+ * Sample code: Gets the specified Data Lake Analytics firewall rule.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSpecifiedDataLakeAnalyticsFirewallRule(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE);
+ }
+}
+```
+
+### FirewallRules_ListByAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for FirewallRules ListByAccount. */
+public final class FirewallRulesListByAccountSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_ListByAccount.json
+ */
+ /**
+ * Sample code: Lists the Data Lake Analytics firewall rules.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void listsTheDataLakeAnalyticsFirewallRules(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.firewallRules().listByAccount("contosorg", "contosoadla", Context.NONE);
+ }
+}
+```
+
+### FirewallRules_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule;
+
+/** Samples for FirewallRules Update. */
+public final class FirewallRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Update.json
+ */
+ /**
+ * Sample code: Updates the specified firewall rule.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void updatesTheSpecifiedFirewallRule(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ FirewallRule resource =
+ manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE).getValue();
+ resource.update().withStartIpAddress("1.1.1.1").withEndIpAddress("2.2.2.2").apply();
+ }
+}
+```
+
+### Locations_GetCapability
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Locations GetCapability. */
+public final class LocationsGetCapabilitySamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Locations_GetCapability.json
+ */
+ /**
+ * Sample code: Gets subscription-level properties and limits for Data Lake Analytics specified by resource
+ * location.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsSubscriptionLevelPropertiesAndLimitsForDataLakeAnalyticsSpecifiedByResourceLocation(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.locations().getCapabilityWithResponse("EastUS2", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: Lists all of the available Data Lake Analytics REST API operations.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void listsAllOfTheAvailableDataLakeAnalyticsRESTAPIOperations(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.operations().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_Add
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountParameters;
+
+/** Samples for StorageAccounts Add. */
+public final class StorageAccountsAddSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Add.json
+ */
+ /**
+ * Sample code: Adds an Azure Storage account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void addsAnAzureStorageAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .storageAccounts()
+ .addWithResponse(
+ "contosorg",
+ "contosoadla",
+ "test_storage",
+ new AddStorageAccountParameters()
+ .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
+ .withSuffix("test_suffix"),
+ Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts Delete. */
+public final class StorageAccountsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Delete.json
+ */
+ /**
+ * Sample code: Removes an Azure Storage account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void removesAnAzureStorageAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.storageAccounts().deleteWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts Get. */
+public final class StorageAccountsGetSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Get.json
+ */
+ /**
+ * Sample code: Gets the specified Azure Storage account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSpecifiedAzureStorageAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.storageAccounts().getWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_GetStorageContainer
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts GetStorageContainer. */
+public final class StorageAccountsGetStorageContainerSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_GetStorageContainer.json
+ */
+ /**
+ * Sample code: Gets the specified Azure Storage container.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSpecifiedAzureStorageContainer(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .storageAccounts()
+ .getStorageContainerWithResponse(
+ "contosorg", "contosoadla", "test_storage", "test_container", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_ListByAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts ListByAccount. */
+public final class StorageAccountsListByAccountSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListByAccount.json
+ */
+ /**
+ * Sample code: Gets the first page of Azure Storage accounts linked to the specified Data Lake Analytics account.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheFirstPageOfAzureStorageAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .storageAccounts()
+ .listByAccount(
+ "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_ListSasTokens
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts ListSasTokens. */
+public final class StorageAccountsListSasTokensSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListSasTokens.json
+ */
+ /**
+ * Sample code: Gets the SAS token.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void getsTheSASToken(com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .storageAccounts()
+ .listSasTokens("contosorg", "contosoadla", "test_storage", "test_container", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_ListStorageContainers
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts ListStorageContainers. */
+public final class StorageAccountsListStorageContainersSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListStorageContainers.json
+ */
+ /**
+ * Sample code: Lists the Azure Storage containers.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void listsTheAzureStorageContainers(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager.storageAccounts().listStorageContainers("contosorg", "contosoadla", "test_storage", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountParameters;
+
+/** Samples for StorageAccounts Update. */
+public final class StorageAccountsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Update.json
+ */
+ /**
+ * Sample code: Replaces Azure Storage blob account details.
+ *
+ * @param manager Entry point to DataLakeAnalyticsManager.
+ */
+ public static void replacesAzureStorageBlobAccountDetails(
+ com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) {
+ manager
+ .storageAccounts()
+ .updateWithResponse(
+ "contosorg",
+ "contosoadla",
+ "test_storage",
+ new UpdateStorageAccountParameters()
+ .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
+ .withSuffix("test_suffix"),
+ Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml
index e81084e8ded21..fe56a7736a4d6 100644
--- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 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.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-datalakeanalytics
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for DataLakeAnalytics Management
- This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for DataLakeAnalytics Management
+ This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Creates an Azure Data Lake Analytics account management client. Package tag package-preview-2019-11.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.25.0
-
-
- com.azure
- azure-core-management
- 1.5.2
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
diff --git a/sdk/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
index a1342ce293e4a..1c6741439a287 100644
--- 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
@@ -8,8 +8,8 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,6 +17,7 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -41,6 +42,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to DataLakeAnalyticsManager. Creates an Azure Data Lake Analytics account management client. */
public final class DataLakeAnalyticsManager {
@@ -101,6 +103,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -140,6 +143,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -196,20 +210,33 @@ public DataLakeAnalyticsManager authenticate(TokenCredential credential, AzurePr
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
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
index cd23fbc6154ba..92856103142a7 100644
--- 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
@@ -26,7 +26,8 @@ public interface AccountsClient {
*
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -49,7 +50,8 @@ public interface AccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -63,7 +65,8 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -87,7 +90,8 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -110,10 +114,10 @@ PagedIterable listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters);
@@ -128,10 +132,10 @@ SyncPoller, DataLakeAnalyticsAccountIn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -198,7 +202,7 @@ DataLakeAnalyticsAccountInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return details of the specified Data Lake Analytics account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -214,10 +218,10 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters);
@@ -232,10 +236,10 @@ SyncPoller, DataLakeAnalyticsAccountIn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -303,9 +307,9 @@ DataLakeAnalyticsAccountInner 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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
/**
@@ -317,9 +321,9 @@ DataLakeAnalyticsAccountInner 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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
/**
@@ -369,7 +373,7 @@ DataLakeAnalyticsAccountInner 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 account name availability result information.
+ * @return data Lake Analytics account name availability result information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
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
index eefc03eda57b2..a4f575fbff9cb 100644
--- 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
@@ -24,7 +24,7 @@ public interface ComputePoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -39,7 +39,7 @@ public interface ComputePoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
@@ -78,7 +78,7 @@ ComputePolicyInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics compute policy information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -112,7 +112,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the specified Data Lake Analytics compute policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -143,7 +143,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics compute policy information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -176,7 +176,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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
index bd8c5cffa5b39..f1e53f9d3352a 100644
--- 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
@@ -23,7 +23,8 @@ public interface DataLakeStoreAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -48,7 +49,8 @@ public interface DataLakeStoreAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(
@@ -86,7 +88,7 @@ PagedIterable listByAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response addWithResponse(
@@ -121,7 +123,8 @@ DataLakeStoreAccountInformationInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -150,7 +153,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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
index 6d51824b9901d..23feaaf998c36 100644
--- 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
@@ -23,7 +23,7 @@ public interface FirewallRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -37,7 +37,7 @@ public interface FirewallRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
@@ -74,7 +74,7 @@ FirewallRuleInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics firewall rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -108,7 +108,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the specified Data Lake Analytics firewall rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -139,7 +139,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return data Lake Analytics firewall rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -172,7 +172,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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
index 5a3bd9ba1e02a..00e1de86c7e1b 100644
--- 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
@@ -32,7 +32,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along
+ * with {@link Response}.
*/
@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
index 1e94ae172304e..a529f77a24cdd 100644
--- 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
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the list of available operations for Data Lake Analytics along with {@link Response}.
*/
@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
index 26952fd73e871..1ed4725ecebf9 100644
--- 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
@@ -26,7 +26,8 @@ public interface StorageAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -51,7 +52,8 @@ public interface StorageAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(
@@ -94,7 +96,7 @@ void 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.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response addWithResponse(
@@ -128,7 +130,8 @@ Response addWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -161,7 +164,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -194,7 +197,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -211,7 +214,7 @@ Response deleteWithResponse(
* @throws com.azure.core.management.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.
+ * account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listStorageContainers(
@@ -229,7 +232,7 @@ PagedIterable listStorageContainers(
* @throws com.azure.core.management.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.
+ * account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listStorageContainers(
@@ -266,7 +269,7 @@ StorageContainerInner getStorageContainer(
* @throws com.azure.core.management.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.
+ * accounts along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getStorageContainerWithResponse(
@@ -284,7 +287,7 @@ Response getStorageContainerWithResponse(
* @throws com.azure.core.management.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.
+ * combination as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSasTokens(
@@ -303,7 +306,7 @@ PagedIterable listSasTokens(
* @throws com.azure.core.management.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.
+ * combination as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSasTokens(
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java
new file mode 100644
index 0000000000000..6289523d859cd
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Data Lake Store account properties to use when adding a new Data Lake Store account. */
+@Fluent
+public final class AddDataLakeStoreProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AddDataLakeStoreProperties.class);
+
+ /*
+ * The optional suffix for the Data Lake Store account.
+ */
+ @JsonProperty(value = "suffix")
+ private String suffix;
+
+ /**
+ * Get the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Set the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @param suffix the suffix value to set.
+ * @return the AddDataLakeStoreProperties object itself.
+ */
+ public AddDataLakeStoreProperties withSuffix(String suffix) {
+ this.suffix = suffix;
+ 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/AddStorageAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java
new file mode 100644
index 0000000000000..6fe384da7e3d1
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java
@@ -0,0 +1,85 @@
+// 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.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Azure Storage account properties to use when adding a new Azure Storage account. */
+@Fluent
+public final class AddStorageAccountProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AddStorageAccountProperties.class);
+
+ /*
+ * The access key associated with this Azure Storage account that will be
+ * used to connect to it.
+ */
+ @JsonProperty(value = "accessKey", required = true)
+ private String accessKey;
+
+ /*
+ * The optional suffix for the storage account.
+ */
+ @JsonProperty(value = "suffix")
+ private String suffix;
+
+ /**
+ * Get the accessKey property: The access key associated with this Azure Storage account that will be used to
+ * connect to it.
+ *
+ * @return the accessKey value.
+ */
+ public String accessKey() {
+ return this.accessKey;
+ }
+
+ /**
+ * Set the accessKey property: The access key associated with this Azure Storage account that will be used to
+ * connect to it.
+ *
+ * @param accessKey the accessKey value to set.
+ * @return the AddStorageAccountProperties object itself.
+ */
+ public AddStorageAccountProperties withAccessKey(String accessKey) {
+ this.accessKey = accessKey;
+ return this;
+ }
+
+ /**
+ * Get the suffix property: The optional suffix for the storage account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Set the suffix property: The optional suffix for the storage account.
+ *
+ * @param suffix the suffix value to set.
+ * @return the AddStorageAccountProperties object itself.
+ */
+ public AddStorageAccountProperties withSuffix(String suffix) {
+ this.suffix = suffix;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (accessKey() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property accessKey in model AddStorageAccountProperties"));
+ }
+ }
+}
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
index 7964d5f972b5a..f3f93f67b5ad9 100644
--- 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
@@ -4,8 +4,7 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType;
@@ -14,35 +13,15 @@
import java.util.UUID;
/** Data Lake Analytics compute policy information. */
-@JsonFlatten
-@Immutable
-public class ComputePolicyInner extends SubResource {
+@Fluent
+public final 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.
+ * The compute policy properties.
*/
- @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;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ComputePolicyProperties innerProperties;
/*
* The resource name.
@@ -56,13 +35,47 @@ public class ComputePolicyInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
+ /**
+ * Get the innerProperties property: The compute policy properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ComputePolicyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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;
+ }
+
/**
* 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;
+ return this.innerProperties() == null ? null : this.innerProperties().objectId();
}
/**
@@ -71,7 +84,7 @@ public UUID objectId() {
* @return the objectType value.
*/
public AadObjectType objectType() {
- return this.objectType;
+ return this.innerProperties() == null ? null : this.innerProperties().objectType();
}
/**
@@ -81,7 +94,7 @@ public AadObjectType objectType() {
* @return the maxDegreeOfParallelismPerJob value.
*/
public Integer maxDegreeOfParallelismPerJob() {
- return this.maxDegreeOfParallelismPerJob;
+ return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob();
}
/**
@@ -90,32 +103,7 @@ public Integer maxDegreeOfParallelismPerJob() {
* @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;
+ return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob();
}
/**
@@ -124,5 +112,8 @@ public ComputePolicyInner withId(String id) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java
new file mode 100644
index 0000000000000..87ca2b34aac1b
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java
@@ -0,0 +1,88 @@
+// 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.AadObjectType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** The compute policy properties. */
+@Immutable
+public final class ComputePolicyProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputePolicyProperties.class);
+
+ /*
+ * The AAD object identifier for the entity to create a policy for.
+ */
+ @JsonProperty(value = "objectId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID objectId;
+
+ /*
+ * The type of AAD object the object identifier refers to.
+ */
+ @JsonProperty(value = "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 = "maxDegreeOfParallelismPerJob", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum priority per job this user can use to submit jobs.
+ */
+ @JsonProperty(value = "minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer minPriorityPerJob;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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/CreateDataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java
new file mode 100644
index 0000000000000..c3fe428083a47
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java
@@ -0,0 +1,408 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The CreateDataLakeAnalyticsAccountProperties model. */
+@Fluent
+public final class CreateDataLakeAnalyticsAccountProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateDataLakeAnalyticsAccountProperties.class);
+
+ /*
+ * The default Data Lake Store account associated with this account.
+ */
+ @JsonProperty(value = "defaultDataLakeStoreAccount", required = true)
+ private String defaultDataLakeStoreAccount;
+
+ /*
+ * The list of Data Lake Store accounts associated with this account.
+ */
+ @JsonProperty(value = "dataLakeStoreAccounts", required = true)
+ private List dataLakeStoreAccounts;
+
+ /*
+ * The list of Azure Blob Storage accounts associated with this account.
+ */
+ @JsonProperty(value = "storageAccounts")
+ private List storageAccounts;
+
+ /*
+ * The list of compute policies associated with this account.
+ */
+ @JsonProperty(value = "computePolicies")
+ private List computePolicies;
+
+ /*
+ * The list of firewall rules associated with this account.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /*
+ * The current state of the IP address firewall for this account.
+ */
+ @JsonProperty(value = "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 = "firewallAllowAzureIps")
+ private FirewallAllowAzureIpsState firewallAllowAzureIps;
+
+ /*
+ * The commitment tier for the next month.
+ */
+ @JsonProperty(value = "newTier")
+ private TierType newTier;
+
+ /*
+ * The maximum supported jobs running under the account at the same time.
+ */
+ @JsonProperty(value = "maxJobCount")
+ private Integer maxJobCount;
+
+ /*
+ * The maximum supported degree of parallelism for this account.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelism")
+ private Integer maxDegreeOfParallelism;
+
+ /*
+ * The maximum supported degree of parallelism per job for this account.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelismPerJob")
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum supported priority per job for this account.
+ */
+ @JsonProperty(value = "minPriorityPerJob")
+ private Integer minPriorityPerJob;
+
+ /*
+ * The number of days that job metadata is retained.
+ */
+ @JsonProperty(value = "queryStoreRetention")
+ private Integer queryStoreRetention;
+
+ /**
+ * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account.
+ *
+ * @return the defaultDataLakeStoreAccount value.
+ */
+ public String defaultDataLakeStoreAccount() {
+ return this.defaultDataLakeStoreAccount;
+ }
+
+ /**
+ * Set the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account.
+ *
+ * @param defaultDataLakeStoreAccount the defaultDataLakeStoreAccount value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withDefaultDataLakeStoreAccount(
+ String defaultDataLakeStoreAccount) {
+ this.defaultDataLakeStoreAccount = defaultDataLakeStoreAccount;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account.
+ *
+ * @param dataLakeStoreAccounts the dataLakeStoreAccounts value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withDataLakeStoreAccounts(
+ List dataLakeStoreAccounts) {
+ this.dataLakeStoreAccounts = dataLakeStoreAccounts;
+ 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;
+ }
+
+ /**
+ * Set the storageAccounts property: The list of Azure Blob Storage accounts associated with this account.
+ *
+ * @param storageAccounts the storageAccounts value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withStorageAccounts(
+ List storageAccounts) {
+ this.storageAccounts = storageAccounts;
+ return this;
+ }
+
+ /**
+ * Get the computePolicies property: The list of compute policies associated with this account.
+ *
+ * @return the computePolicies value.
+ */
+ public List computePolicies() {
+ return this.computePolicies;
+ }
+
+ /**
+ * Set the computePolicies property: The list of compute policies associated with this account.
+ *
+ * @param computePolicies the computePolicies value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withComputePolicies(
+ List computePolicies) {
+ this.computePolicies = computePolicies;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: The list of firewall rules associated with this account.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: The list of firewall rules associated with this account.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withFirewallRules(
+ List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withNewTier(TierType newTier) {
+ this.newTier = newTier;
+ return this;
+ }
+
+ /**
+ * 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) {
+ this.maxJobCount = maxJobCount;
+ return this;
+ }
+
+ /**
+ * 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) {
+ this.maxDegreeOfParallelism = maxDegreeOfParallelism;
+ return this;
+ }
+
+ /**
+ * 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties 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;
+ }
+
+ /**
+ * Set the minPriorityPerJob property: The minimum supported priority per job for this account.
+ *
+ * @param minPriorityPerJob the minPriorityPerJob value to set.
+ * @return the CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withMinPriorityPerJob(Integer minPriorityPerJob) {
+ this.minPriorityPerJob = minPriorityPerJob;
+ return this;
+ }
+
+ /**
+ * 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 CreateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public CreateDataLakeAnalyticsAccountProperties withQueryStoreRetention(Integer queryStoreRetention) {
+ this.queryStoreRetention = queryStoreRetention;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (defaultDataLakeStoreAccount() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property defaultDataLakeStoreAccount in model"
+ + " CreateDataLakeAnalyticsAccountProperties"));
+ }
+ if (dataLakeStoreAccounts() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property dataLakeStoreAccounts in model"
+ + " CreateDataLakeAnalyticsAccountProperties"));
+ } else {
+ dataLakeStoreAccounts().forEach(e -> e.validate());
+ }
+ if (storageAccounts() != null) {
+ storageAccounts().forEach(e -> e.validate());
+ }
+ if (computePolicies() != null) {
+ computePolicies().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/CreateOrUpdateComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java
new file mode 100644
index 0000000000000..5efdf07972a4d
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java
@@ -0,0 +1,151 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+
+/** The compute policy properties to use when creating a new compute policy. */
+@Fluent
+public final class CreateOrUpdateComputePolicyProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateComputePolicyProperties.class);
+
+ /*
+ * The AAD object identifier for the entity to create a policy for.
+ */
+ @JsonProperty(value = "objectId", required = true)
+ private UUID objectId;
+
+ /*
+ * The type of AAD object the object identifier refers to.
+ */
+ @JsonProperty(value = "objectType", required = true)
+ private AadObjectType objectType;
+
+ /*
+ * The maximum degree of parallelism per job this user can use to submit
+ * jobs. This property, the min priority per job property, or both must be
+ * passed.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelismPerJob")
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum priority per job this user can use to submit jobs. This
+ * property, the max degree of parallelism per job property, or both must
+ * be passed.
+ */
+ @JsonProperty(value = "minPriorityPerJob")
+ private Integer minPriorityPerJob;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set the objectId property: The AAD object identifier for the entity to create a policy for.
+ *
+ * @param objectId the objectId value to set.
+ * @return the CreateOrUpdateComputePolicyProperties object itself.
+ */
+ public CreateOrUpdateComputePolicyProperties withObjectId(UUID objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ /**
+ * Get the objectType property: The type of AAD object the object identifier refers to.
+ *
+ * @return the objectType value.
+ */
+ public AadObjectType objectType() {
+ return this.objectType;
+ }
+
+ /**
+ * Set the objectType property: The type of AAD object the object identifier refers to.
+ *
+ * @param objectType the objectType value to set.
+ * @return the CreateOrUpdateComputePolicyProperties object itself.
+ */
+ public CreateOrUpdateComputePolicyProperties withObjectType(AadObjectType objectType) {
+ this.objectType = objectType;
+ return this;
+ }
+
+ /**
+ * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to
+ * submit jobs. This property, the min priority per job property, or both must be passed.
+ *
+ * @return the maxDegreeOfParallelismPerJob value.
+ */
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.maxDegreeOfParallelismPerJob;
+ }
+
+ /**
+ * Set the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to
+ * submit jobs. This property, the min priority per job property, or both must be passed.
+ *
+ * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set.
+ * @return the CreateOrUpdateComputePolicyProperties object itself.
+ */
+ public CreateOrUpdateComputePolicyProperties withMaxDegreeOfParallelismPerJob(
+ Integer maxDegreeOfParallelismPerJob) {
+ this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob;
+ return this;
+ }
+
+ /**
+ * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property,
+ * the max degree of parallelism per job property, or both must be passed.
+ *
+ * @return the minPriorityPerJob value.
+ */
+ public Integer minPriorityPerJob() {
+ return this.minPriorityPerJob;
+ }
+
+ /**
+ * Set the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property,
+ * the max degree of parallelism per job property, or both must be passed.
+ *
+ * @param minPriorityPerJob the minPriorityPerJob value to set.
+ * @return the CreateOrUpdateComputePolicyProperties object itself.
+ */
+ public CreateOrUpdateComputePolicyProperties withMinPriorityPerJob(Integer minPriorityPerJob) {
+ this.minPriorityPerJob = minPriorityPerJob;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (objectId() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property objectId in model CreateOrUpdateComputePolicyProperties"));
+ }
+ if (objectType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property objectType in model CreateOrUpdateComputePolicyProperties"));
+ }
+ }
+}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java
new file mode 100644
index 0000000000000..45f8e3bc3e6ef
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java
@@ -0,0 +1,94 @@
+// 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.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The firewall rule properties to use when creating a new firewall rule. */
+@Fluent
+public final class CreateOrUpdateFirewallRuleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateFirewallRuleProperties.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 = "startIpAddress", required = true)
+ 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 = "endIpAddress", required = true)
+ private String endIpAddress;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param startIpAddress the startIpAddress value to set.
+ * @return the CreateOrUpdateFirewallRuleProperties object itself.
+ */
+ public CreateOrUpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) {
+ this.startIpAddress = startIpAddress;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param endIpAddress the endIpAddress value to set.
+ * @return the CreateOrUpdateFirewallRuleProperties object itself.
+ */
+ public CreateOrUpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) {
+ this.endIpAddress = endIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (startIpAddress() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property startIpAddress in model CreateOrUpdateFirewallRuleProperties"));
+ }
+ if (endIpAddress() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property endIpAddress in model CreateOrUpdateFirewallRuleProperties"));
+ }
+ }
+}
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
index 9d3b0ae184385..c7feb0984053f 100644
--- 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
@@ -4,8 +4,7 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState;
@@ -20,46 +19,40 @@
* A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics
* account.
*/
-@JsonFlatten
-@Immutable
-public class DataLakeAnalyticsAccountBasicInner extends Resource {
+@Fluent
+public final class DataLakeAnalyticsAccountBasicInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountBasicInner.class);
/*
- * The unique identifier associated with this Data Lake Analytics account.
+ * The properties defined by Data Lake Analytics all properties are
+ * specific to each resource provider.
*/
- @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID accountId;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountPropertiesBasic innerProperties;
- /*
- * 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.
+ /**
+ * Get the innerProperties property: The properties defined by Data Lake Analytics all properties are specific to
+ * each resource provider.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationTime;
+ private DataLakeAnalyticsAccountPropertiesBasic innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The account last modified time.
- */
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountBasicInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
- /*
- * The full CName endpoint for this account.
- */
- @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY)
- private String endpoint;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountBasicInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
/**
* Get the accountId property: The unique identifier associated with this Data Lake Analytics account.
@@ -67,7 +60,7 @@ public class DataLakeAnalyticsAccountBasicInner extends Resource {
* @return the accountId value.
*/
public UUID accountId() {
- return this.accountId;
+ return this.innerProperties() == null ? null : this.innerProperties().accountId();
}
/**
@@ -76,7 +69,7 @@ public UUID accountId() {
* @return the provisioningState value.
*/
public DataLakeAnalyticsAccountStatus provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -85,7 +78,7 @@ public DataLakeAnalyticsAccountStatus provisioningState() {
* @return the state value.
*/
public DataLakeAnalyticsAccountState state() {
- return this.state;
+ return this.innerProperties() == null ? null : this.innerProperties().state();
}
/**
@@ -94,7 +87,7 @@ public DataLakeAnalyticsAccountState state() {
* @return the creationTime value.
*/
public OffsetDateTime creationTime() {
- return this.creationTime;
+ return this.innerProperties() == null ? null : this.innerProperties().creationTime();
}
/**
@@ -103,7 +96,7 @@ public OffsetDateTime creationTime() {
* @return the lastModifiedTime value.
*/
public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
}
/**
@@ -112,21 +105,7 @@ public OffsetDateTime lastModifiedTime() {
* @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;
+ return this.innerProperties() == null ? null : this.innerProperties().endpoint();
}
/**
@@ -135,5 +114,8 @@ public DataLakeAnalyticsAccountBasicInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().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
index 639eb629a0684..19253e86e8bf3 100644
--- 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
@@ -5,7 +5,6 @@
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;
@@ -27,225 +26,49 @@
* A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics
* account.
*/
-@JsonFlatten
@Fluent
-public class DataLakeAnalyticsAccountInner extends Resource {
+public final class DataLakeAnalyticsAccountInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountInner.class);
/*
- * The unique identifier associated with this Data Lake Analytics account.
+ * The properties defined by Data Lake Analytics all properties are
+ * specific to each resource provider.
*/
- @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;
- }
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeAnalyticsAccountProperties innerProperties;
/**
- * Get the provisioningState property: The provisioning status of the Data Lake Analytics account.
+ * Get the innerProperties property: The properties defined by Data Lake Analytics all properties are specific to
+ * each resource provider.
*
- * @return the provisioningState value.
+ * @return the innerProperties value.
*/
- public DataLakeAnalyticsAccountStatus provisioningState() {
- return this.provisioningState;
+ private DataLakeAnalyticsAccountProperties innerProperties() {
+ return this.innerProperties;
}
- /**
- * 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;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
}
- /**
- * Get the lastModifiedTime property: The account last modified time.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeAnalyticsAccountInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
}
/**
- * Get the endpoint property: The full CName endpoint for this account.
+ * Get the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated with
+ * this account.
*
- * @return the endpoint value.
+ * @return the defaultDataLakeStoreAccountType value.
*/
- public String endpoint() {
- return this.endpoint;
+ public String defaultDataLakeStoreAccountType() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccountType();
}
/**
@@ -254,7 +77,7 @@ public String endpoint() {
* @return the defaultDataLakeStoreAccount value.
*/
public String defaultDataLakeStoreAccount() {
- return this.defaultDataLakeStoreAccount;
+ return this.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccount();
}
/**
@@ -263,7 +86,7 @@ public String defaultDataLakeStoreAccount() {
* @return the dataLakeStoreAccounts value.
*/
public List dataLakeStoreAccounts() {
- return this.dataLakeStoreAccounts;
+ return this.innerProperties() == null ? null : this.innerProperties().dataLakeStoreAccounts();
}
/**
@@ -272,7 +95,7 @@ public List dataLakeStoreAccounts() {
* @return the publicDataLakeStoreAccounts value.
*/
public List publicDataLakeStoreAccounts() {
- return this.publicDataLakeStoreAccounts;
+ return this.innerProperties() == null ? null : this.innerProperties().publicDataLakeStoreAccounts();
}
/**
@@ -283,7 +106,10 @@ public List publicDataLakeStoreAccounts()
*/
public DataLakeAnalyticsAccountInner withPublicDataLakeStoreAccounts(
List publicDataLakeStoreAccounts) {
- this.publicDataLakeStoreAccounts = publicDataLakeStoreAccounts;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withPublicDataLakeStoreAccounts(publicDataLakeStoreAccounts);
return this;
}
@@ -293,7 +119,7 @@ public DataLakeAnalyticsAccountInner withPublicDataLakeStoreAccounts(
* @return the storageAccounts value.
*/
public List storageAccounts() {
- return this.storageAccounts;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccounts();
}
/**
@@ -302,7 +128,7 @@ public List storageAccounts() {
* @return the computePolicies value.
*/
public List computePolicies() {
- return this.computePolicies;
+ return this.innerProperties() == null ? null : this.innerProperties().computePolicies();
}
/**
@@ -311,7 +137,7 @@ public List computePolicies() {
* @return the hiveMetastores value.
*/
public List hiveMetastores() {
- return this.hiveMetastores;
+ return this.innerProperties() == null ? null : this.innerProperties().hiveMetastores();
}
/**
@@ -320,7 +146,7 @@ public List hiveMetastores() {
* @return the virtualNetworkRules value.
*/
public List virtualNetworkRules() {
- return this.virtualNetworkRules;
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRules();
}
/**
@@ -329,7 +155,7 @@ public List virtualNetworkRules() {
* @return the firewallRules value.
*/
public List firewallRules() {
- return this.firewallRules;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallRules();
}
/**
@@ -338,7 +164,7 @@ public List firewallRules() {
* @return the firewallState value.
*/
public FirewallState firewallState() {
- return this.firewallState;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallState();
}
/**
@@ -348,7 +174,10 @@ public FirewallState firewallState() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withFirewallState(FirewallState firewallState) {
- this.firewallState = firewallState;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withFirewallState(firewallState);
return this;
}
@@ -359,7 +188,7 @@ public DataLakeAnalyticsAccountInner withFirewallState(FirewallState firewallSta
* @return the firewallAllowAzureIps value.
*/
public FirewallAllowAzureIpsState firewallAllowAzureIps() {
- return this.firewallAllowAzureIps;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallAllowAzureIps();
}
/**
@@ -370,7 +199,10 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps) {
- this.firewallAllowAzureIps = firewallAllowAzureIps;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withFirewallAllowAzureIps(firewallAllowAzureIps);
return this;
}
@@ -380,7 +212,7 @@ public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzur
* @return the newTier value.
*/
public TierType newTier() {
- return this.newTier;
+ return this.innerProperties() == null ? null : this.innerProperties().newTier();
}
/**
@@ -390,7 +222,10 @@ public TierType newTier() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withNewTier(TierType newTier) {
- this.newTier = newTier;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withNewTier(newTier);
return this;
}
@@ -400,7 +235,7 @@ public DataLakeAnalyticsAccountInner withNewTier(TierType newTier) {
* @return the currentTier value.
*/
public TierType currentTier() {
- return this.currentTier;
+ return this.innerProperties() == null ? null : this.innerProperties().currentTier();
}
/**
@@ -409,7 +244,7 @@ public TierType currentTier() {
* @return the maxJobCount value.
*/
public Integer maxJobCount() {
- return this.maxJobCount;
+ return this.innerProperties() == null ? null : this.innerProperties().maxJobCount();
}
/**
@@ -419,10 +254,40 @@ public Integer maxJobCount() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withMaxJobCount(Integer maxJobCount) {
- this.maxJobCount = maxJobCount;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withMaxJobCount(maxJobCount);
return this;
}
+ /**
+ * Get the maxActiveJobCountPerUser property: The maximum supported active jobs under the account at the same time.
+ *
+ * @return the maxActiveJobCountPerUser value.
+ */
+ public Integer maxActiveJobCountPerUser() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxActiveJobCountPerUser();
+ }
+
+ /**
+ * Get the maxQueuedJobCountPerUser property: The maximum supported jobs queued under the account at the same time.
+ *
+ * @return the maxQueuedJobCountPerUser value.
+ */
+ public Integer maxQueuedJobCountPerUser() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxQueuedJobCountPerUser();
+ }
+
+ /**
+ * Get the maxJobRunningTimeInMin property: The maximum supported active jobs under the account at the same time.
+ *
+ * @return the maxJobRunningTimeInMin value.
+ */
+ public Integer maxJobRunningTimeInMin() {
+ return this.innerProperties() == null ? null : this.innerProperties().maxJobRunningTimeInMin();
+ }
+
/**
* 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.
@@ -430,7 +295,7 @@ public DataLakeAnalyticsAccountInner withMaxJobCount(Integer maxJobCount) {
* @return the systemMaxJobCount value.
*/
public Integer systemMaxJobCount() {
- return this.systemMaxJobCount;
+ return this.innerProperties() == null ? null : this.innerProperties().systemMaxJobCount();
}
/**
@@ -439,7 +304,7 @@ public Integer systemMaxJobCount() {
* @return the maxDegreeOfParallelism value.
*/
public Integer maxDegreeOfParallelism() {
- return this.maxDegreeOfParallelism;
+ return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelism();
}
/**
@@ -449,7 +314,10 @@ public Integer maxDegreeOfParallelism() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) {
- this.maxDegreeOfParallelism = maxDegreeOfParallelism;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withMaxDegreeOfParallelism(maxDegreeOfParallelism);
return this;
}
@@ -460,7 +328,7 @@ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelism(Integer maxDegre
* @return the systemMaxDegreeOfParallelism value.
*/
public Integer systemMaxDegreeOfParallelism() {
- return this.systemMaxDegreeOfParallelism;
+ return this.innerProperties() == null ? null : this.innerProperties().systemMaxDegreeOfParallelism();
}
/**
@@ -470,7 +338,7 @@ public Integer systemMaxDegreeOfParallelism() {
* @return the maxDegreeOfParallelismPerJob value.
*/
public Integer maxDegreeOfParallelismPerJob() {
- return this.maxDegreeOfParallelismPerJob;
+ return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob();
}
/**
@@ -481,7 +349,10 @@ public Integer maxDegreeOfParallelismPerJob() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
- this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob);
return this;
}
@@ -491,7 +362,7 @@ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelismPerJob(Integer ma
* @return the minPriorityPerJob value.
*/
public Integer minPriorityPerJob() {
- return this.minPriorityPerJob;
+ return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob();
}
/**
@@ -500,7 +371,7 @@ public Integer minPriorityPerJob() {
* @return the queryStoreRetention value.
*/
public Integer queryStoreRetention() {
- return this.queryStoreRetention;
+ return this.innerProperties() == null ? null : this.innerProperties().queryStoreRetention();
}
/**
@@ -510,7 +381,10 @@ public Integer queryStoreRetention() {
* @return the DataLakeAnalyticsAccountInner object itself.
*/
public DataLakeAnalyticsAccountInner withQueryStoreRetention(Integer queryStoreRetention) {
- this.queryStoreRetention = queryStoreRetention;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataLakeAnalyticsAccountProperties();
+ }
+ this.innerProperties().withQueryStoreRetention(queryStoreRetention);
return this;
}
@@ -520,21 +394,61 @@ public DataLakeAnalyticsAccountInner withQueryStoreRetention(Integer queryStoreR
* @return the debugDataAccessLevel value.
*/
public DebugDataAccessLevel debugDataAccessLevel() {
- return this.debugDataAccessLevel;
+ return this.innerProperties() == null ? null : this.innerProperties().debugDataAccessLevel();
}
- /** {@inheritDoc} */
- @Override
- public DataLakeAnalyticsAccountInner withLocation(String location) {
- super.withLocation(location);
- return this;
+ /**
+ * Get the accountId property: The unique identifier associated with this Data Lake Analytics account.
+ *
+ * @return the accountId value.
+ */
+ public UUID accountId() {
+ return this.innerProperties() == null ? null : this.innerProperties().accountId();
}
- /** {@inheritDoc} */
- @Override
- public DataLakeAnalyticsAccountInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ /**
+ * Get the provisioningState property: The provisioning status of the Data Lake Analytics account.
+ *
+ * @return the provisioningState value.
+ */
+ public DataLakeAnalyticsAccountStatus provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the state property: The state of the Data Lake Analytics account.
+ *
+ * @return the state value.
+ */
+ public DataLakeAnalyticsAccountState state() {
+ return this.innerProperties() == null ? null : this.innerProperties().state();
+ }
+
+ /**
+ * Get the creationTime property: The account creation time.
+ *
+ * @return the creationTime value.
+ */
+ public OffsetDateTime creationTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().creationTime();
+ }
+
+ /**
+ * Get the lastModifiedTime property: The account last modified time.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
+ }
+
+ /**
+ * Get the endpoint property: The full CName endpoint for this account.
+ *
+ * @return the endpoint value.
+ */
+ public String endpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().endpoint();
}
/**
@@ -543,26 +457,8 @@ public DataLakeAnalyticsAccountInner withTags(Map tags) {
* @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());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java
similarity index 85%
rename from sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java
rename to sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java
index f490682a1ca56..bfbc03e32f43d 100644
--- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java
@@ -2,14 +2,16 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.datalakeanalytics.models;
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner;
-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.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.util.List;
@@ -22,6 +24,13 @@
public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsAccountPropertiesBasic {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountProperties.class);
+ /*
+ * The type of the default Data Lake Store account associated with this
+ * account.
+ */
+ @JsonProperty(value = "defaultDataLakeStoreAccountType", access = JsonProperty.Access.WRITE_ONLY)
+ private String defaultDataLakeStoreAccountType;
+
/*
* The default Data Lake Store account associated with this account.
*/
@@ -102,6 +111,24 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA
@JsonProperty(value = "maxJobCount")
private Integer maxJobCount;
+ /*
+ * The maximum supported active jobs under the account at the same time.
+ */
+ @JsonProperty(value = "maxActiveJobCountPerUser", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxActiveJobCountPerUser;
+
+ /*
+ * The maximum supported jobs queued under the account at the same time.
+ */
+ @JsonProperty(value = "maxQueuedJobCountPerUser", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxQueuedJobCountPerUser;
+
+ /*
+ * The maximum supported active jobs under the account at the same time.
+ */
+ @JsonProperty(value = "maxJobRunningTimeInMin", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer maxJobRunningTimeInMin;
+
/*
* The system defined maximum supported jobs running under the account at
* the same time, which restricts the maximum number of running jobs the
@@ -148,6 +175,16 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA
@JsonProperty(value = "debugDataAccessLevel", access = JsonProperty.Access.WRITE_ONLY)
private DebugDataAccessLevel debugDataAccessLevel;
+ /**
+ * Get the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated with
+ * this account.
+ *
+ * @return the defaultDataLakeStoreAccountType value.
+ */
+ public String defaultDataLakeStoreAccountType() {
+ return this.defaultDataLakeStoreAccountType;
+ }
+
/**
* Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account.
*
@@ -324,6 +361,33 @@ public DataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) {
return this;
}
+ /**
+ * Get the maxActiveJobCountPerUser property: The maximum supported active jobs under the account at the same time.
+ *
+ * @return the maxActiveJobCountPerUser value.
+ */
+ public Integer maxActiveJobCountPerUser() {
+ return this.maxActiveJobCountPerUser;
+ }
+
+ /**
+ * Get the maxQueuedJobCountPerUser property: The maximum supported jobs queued under the account at the same time.
+ *
+ * @return the maxQueuedJobCountPerUser value.
+ */
+ public Integer maxQueuedJobCountPerUser() {
+ return this.maxQueuedJobCountPerUser;
+ }
+
+ /**
+ * Get the maxJobRunningTimeInMin property: The maximum supported active jobs under the account at the same time.
+ *
+ * @return the maxJobRunningTimeInMin value.
+ */
+ public Integer maxJobRunningTimeInMin() {
+ return this.maxJobRunningTimeInMin;
+ }
+
/**
* 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.
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java
similarity index 93%
rename from sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java
rename to sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java
index 1ff5e9e415a2a..c89ca09354fa3 100644
--- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java
@@ -2,10 +2,12 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.datalakeanalytics.models;
+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.DataLakeAnalyticsAccountState;
+import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
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
index 130f01f6bb9a1..1556b592db40a 100644
--- 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
@@ -4,24 +4,22 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
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 {
+@Fluent
+public final class DataLakeStoreAccountInformationInner extends SubResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInformationInner.class);
/*
- * The optional suffix for the Data Lake Store account.
+ * The Data Lake Store account properties.
*/
- @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY)
- private String suffix;
+ @JsonProperty(value = "properties")
+ private DataLakeStoreAccountInformationProperties innerProperties;
/*
* The resource name.
@@ -36,12 +34,12 @@ public class DataLakeStoreAccountInformationInner extends SubResource {
private String type;
/**
- * Get the suffix property: The optional suffix for the Data Lake Store account.
+ * Get the innerProperties property: The Data Lake Store account properties.
*
- * @return the suffix value.
+ * @return the innerProperties value.
*/
- public String suffix() {
- return this.suffix;
+ private DataLakeStoreAccountInformationProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -69,11 +67,23 @@ public DataLakeStoreAccountInformationInner withId(String id) {
return this;
}
+ /**
+ * Get the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.innerProperties() == null ? null : this.innerProperties().suffix();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java
new file mode 100644
index 0000000000000..7b68ba33a45d9
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.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;
+
+/** The Data Lake Store account properties. */
+@Immutable
+public final class DataLakeStoreAccountInformationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInformationProperties.class);
+
+ /*
+ * The optional suffix for the Data Lake Store account.
+ */
+ @JsonProperty(value = "suffix", access = JsonProperty.Access.WRITE_ONLY)
+ private String suffix;
+
+ /**
+ * Get the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * 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
index 128e8ddbcae3d..7df3b045a6bfe 100644
--- 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
@@ -4,32 +4,22 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
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 {
+@Fluent
+public final 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.
+ * The firewall rule properties.
*/
- @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;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private FirewallRuleProperties innerProperties;
/*
* The resource name.
@@ -44,23 +34,12 @@ public class FirewallRuleInner extends SubResource {
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.
+ * Get the innerProperties property: The firewall rule properties.
*
- * @return the startIpAddress value.
+ * @return the innerProperties 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;
+ private FirewallRuleProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -88,11 +67,34 @@ public FirewallRuleInner withId(String id) {
return this;
}
+ /**
+ * 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.innerProperties() == null ? null : this.innerProperties().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.innerProperties() == null ? null : this.innerProperties().endIpAddress();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java
new file mode 100644
index 0000000000000..13f6f4d81a520
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java
@@ -0,0 +1,58 @@
+// 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;
+
+/** The firewall rule properties. */
+@Immutable
+public final class FirewallRuleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleProperties.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 = "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 = "endIpAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String endIpAddress;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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/HiveMetastoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java
new file mode 100644
index 0000000000000..b45c00df90b05
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java
@@ -0,0 +1,115 @@
+// 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.NestedResourceProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The HiveMetastore properties. */
+@Immutable
+public final class HiveMetastoreProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveMetastoreProperties.class);
+
+ /*
+ * The serverUri for the Hive MetaStore
+ */
+ @JsonProperty(value = "serverUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String serverUri;
+
+ /*
+ * The databaseName for the Hive MetaStore
+ */
+ @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY)
+ private String databaseName;
+
+ /*
+ * The runtimeVersion for the Hive MetaStore
+ */
+ @JsonProperty(value = "runtimeVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String runtimeVersion;
+
+ /*
+ * The userName for the Hive MetaStore
+ */
+ @JsonProperty(value = "userName", access = JsonProperty.Access.WRITE_ONLY)
+ private String username;
+
+ /*
+ * The password for the Hive MetaStore
+ */
+ @JsonProperty(value = "password", access = JsonProperty.Access.WRITE_ONLY)
+ private String password;
+
+ /*
+ * The current state of the NestedResource
+ */
+ @JsonProperty(value = "nestedResourceProvisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private NestedResourceProvisioningState nestedResourceProvisioningState;
+
+ /**
+ * Get the serverUri property: The serverUri for the Hive MetaStore.
+ *
+ * @return the serverUri value.
+ */
+ public String serverUri() {
+ return this.serverUri;
+ }
+
+ /**
+ * Get the databaseName property: The databaseName for the Hive MetaStore.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Get the runtimeVersion property: The runtimeVersion for the Hive MetaStore.
+ *
+ * @return the runtimeVersion value.
+ */
+ public String runtimeVersion() {
+ return this.runtimeVersion;
+ }
+
+ /**
+ * Get the username property: The userName for the Hive MetaStore.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Get the password property: The password for the Hive MetaStore.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Get the nestedResourceProvisioningState property: The current state of the NestedResource.
+ *
+ * @return the nestedResourceProvisioningState value.
+ */
+ public NestedResourceProvisioningState nestedResourceProvisioningState() {
+ return this.nestedResourceProvisioningState;
+ }
+
+ /**
+ * 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
index c53ae5a034de0..c7cbb19c9034b 100644
--- 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
@@ -4,24 +4,22 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
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 {
+@Fluent
+public final class StorageAccountInformationInner extends SubResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInformationInner.class);
/*
- * The optional suffix for the storage account.
+ * The Azure Storage account properties.
*/
- @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY)
- private String suffix;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private StorageAccountInformationProperties innerProperties;
/*
* The resource name.
@@ -36,12 +34,12 @@ public class StorageAccountInformationInner extends SubResource {
private String type;
/**
- * Get the suffix property: The optional suffix for the storage account.
+ * Get the innerProperties property: The Azure Storage account properties.
*
- * @return the suffix value.
+ * @return the innerProperties value.
*/
- public String suffix() {
- return this.suffix;
+ private StorageAccountInformationProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -69,11 +67,23 @@ public StorageAccountInformationInner withId(String id) {
return this;
}
+ /**
+ * Get the suffix property: The optional suffix for the storage account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.innerProperties() == null ? null : this.innerProperties().suffix();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java
new file mode 100644
index 0000000000000..b345e5dd736f7
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.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;
+
+/** The Azure Storage account properties. */
+@Immutable
+public final class StorageAccountInformationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInformationProperties.class);
+
+ /*
+ * The optional suffix for the storage account.
+ */
+ @JsonProperty(value = "suffix", access = JsonProperty.Access.WRITE_ONLY)
+ private String suffix;
+
+ /**
+ * Get the suffix property: The optional suffix for the storage account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * 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
index 596ac1b6a4b1b..136a7f0179ba4 100644
--- 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
@@ -4,8 +4,7 @@
package com.azure.resourcemanager.datalakeanalytics.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
@@ -13,16 +12,15 @@
import java.time.OffsetDateTime;
/** Azure Storage blob container information. */
-@JsonFlatten
-@Immutable
-public class StorageContainerInner extends SubResource {
+@Fluent
+public final class StorageContainerInner extends SubResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageContainerInner.class);
/*
- * The last modified time of the blob container.
+ * The properties of the blob container.
*/
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private StorageContainerProperties innerProperties;
/*
* The resource name.
@@ -37,12 +35,12 @@ public class StorageContainerInner extends SubResource {
private String type;
/**
- * Get the lastModifiedTime property: The last modified time of the blob container.
+ * Get the innerProperties property: The properties of the blob container.
*
- * @return the lastModifiedTime value.
+ * @return the innerProperties value.
*/
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ private StorageContainerProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -70,11 +68,23 @@ public StorageContainerInner withId(String id) {
return this;
}
+ /**
+ * Get the lastModifiedTime property: The last modified time of the blob container.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java
new file mode 100644
index 0000000000000..5a1f80a5b2993
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.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;
+import java.time.OffsetDateTime;
+
+/** Azure Storage blob container properties information. */
+@Immutable
+public final class StorageContainerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageContainerProperties.class);
+
+ /*
+ * The last modified time of the blob container.
+ */
+ @JsonProperty(value = "lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
+
+ /**
+ * Get the lastModifiedTime property: The last modified time of the blob container.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * 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/UpdateComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java
new file mode 100644
index 0000000000000..6c368e0d3f4e7
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+
+/** The compute policy properties to use when updating a compute policy. */
+@Fluent
+public final class UpdateComputePolicyProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateComputePolicyProperties.class);
+
+ /*
+ * The AAD object identifier for the entity to create a policy for.
+ */
+ @JsonProperty(value = "objectId")
+ private UUID objectId;
+
+ /*
+ * The type of AAD object the object identifier refers to.
+ */
+ @JsonProperty(value = "objectType")
+ private AadObjectType objectType;
+
+ /*
+ * The maximum degree of parallelism per job this user can use to submit
+ * jobs. This property, the min priority per job property, or both must be
+ * passed.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelismPerJob")
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum priority per job this user can use to submit jobs. This
+ * property, the max degree of parallelism per job property, or both must
+ * be passed.
+ */
+ @JsonProperty(value = "minPriorityPerJob")
+ private Integer minPriorityPerJob;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set the objectId property: The AAD object identifier for the entity to create a policy for.
+ *
+ * @param objectId the objectId value to set.
+ * @return the UpdateComputePolicyProperties object itself.
+ */
+ public UpdateComputePolicyProperties withObjectId(UUID objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ /**
+ * Get the objectType property: The type of AAD object the object identifier refers to.
+ *
+ * @return the objectType value.
+ */
+ public AadObjectType objectType() {
+ return this.objectType;
+ }
+
+ /**
+ * Set the objectType property: The type of AAD object the object identifier refers to.
+ *
+ * @param objectType the objectType value to set.
+ * @return the UpdateComputePolicyProperties object itself.
+ */
+ public UpdateComputePolicyProperties withObjectType(AadObjectType objectType) {
+ this.objectType = objectType;
+ return this;
+ }
+
+ /**
+ * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to
+ * submit jobs. This property, the min priority per job property, or both must be passed.
+ *
+ * @return the maxDegreeOfParallelismPerJob value.
+ */
+ public Integer maxDegreeOfParallelismPerJob() {
+ return this.maxDegreeOfParallelismPerJob;
+ }
+
+ /**
+ * Set the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to
+ * submit jobs. This property, the min priority per job property, or both must be passed.
+ *
+ * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set.
+ * @return the UpdateComputePolicyProperties object itself.
+ */
+ public UpdateComputePolicyProperties withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
+ this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob;
+ return this;
+ }
+
+ /**
+ * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property,
+ * the max degree of parallelism per job property, or both must be passed.
+ *
+ * @return the minPriorityPerJob value.
+ */
+ public Integer minPriorityPerJob() {
+ return this.minPriorityPerJob;
+ }
+
+ /**
+ * Set the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property,
+ * the max degree of parallelism per job property, or both must be passed.
+ *
+ * @param minPriorityPerJob the minPriorityPerJob value to set.
+ * @return the UpdateComputePolicyProperties object itself.
+ */
+ public UpdateComputePolicyProperties withMinPriorityPerJob(Integer minPriorityPerJob) {
+ this.minPriorityPerJob = minPriorityPerJob;
+ 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/UpdateDataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java
new file mode 100644
index 0000000000000..1194995453483
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java
@@ -0,0 +1,372 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakeanalytics.models.FirewallState;
+import com.azure.resourcemanager.datalakeanalytics.models.TierType;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountWithAccountParameters;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties to update that are associated with an underlying Data Lake Analytics account. */
+@Fluent
+public final class UpdateDataLakeAnalyticsAccountProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeAnalyticsAccountProperties.class);
+
+ /*
+ * The list of Data Lake Store accounts associated with this account.
+ */
+ @JsonProperty(value = "dataLakeStoreAccounts")
+ private List dataLakeStoreAccounts;
+
+ /*
+ * The list of Azure Blob storage accounts associated with this account.
+ */
+ @JsonProperty(value = "storageAccounts")
+ private List storageAccounts;
+
+ /*
+ * The list of compute policies associated with this account.
+ */
+ @JsonProperty(value = "computePolicies")
+ private List computePolicies;
+
+ /*
+ * The list of firewall rules associated with this account.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /*
+ * The current state of the IP address firewall for this account. Disabling
+ * the firewall does not remove existing rules, they will just be ignored
+ * until the firewall is re-enabled.
+ */
+ @JsonProperty(value = "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 = "firewallAllowAzureIps")
+ private FirewallAllowAzureIpsState firewallAllowAzureIps;
+
+ /*
+ * The commitment tier to use for next month.
+ */
+ @JsonProperty(value = "newTier")
+ private TierType newTier;
+
+ /*
+ * The maximum supported jobs running under the account at the same time.
+ */
+ @JsonProperty(value = "maxJobCount")
+ private Integer maxJobCount;
+
+ /*
+ * The maximum supported degree of parallelism for this account.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelism")
+ private Integer maxDegreeOfParallelism;
+
+ /*
+ * The maximum supported degree of parallelism per job for this account.
+ */
+ @JsonProperty(value = "maxDegreeOfParallelismPerJob")
+ private Integer maxDegreeOfParallelismPerJob;
+
+ /*
+ * The minimum supported priority per job for this account.
+ */
+ @JsonProperty(value = "minPriorityPerJob")
+ private Integer minPriorityPerJob;
+
+ /*
+ * The number of days that job metadata is retained.
+ */
+ @JsonProperty(value = "queryStoreRetention")
+ private Integer queryStoreRetention;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account.
+ *
+ * @param dataLakeStoreAccounts the dataLakeStoreAccounts value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withDataLakeStoreAccounts(
+ List dataLakeStoreAccounts) {
+ this.dataLakeStoreAccounts = dataLakeStoreAccounts;
+ 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;
+ }
+
+ /**
+ * Set the storageAccounts property: The list of Azure Blob storage accounts associated with this account.
+ *
+ * @param storageAccounts the storageAccounts value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withStorageAccounts(
+ List storageAccounts) {
+ this.storageAccounts = storageAccounts;
+ return this;
+ }
+
+ /**
+ * Get the computePolicies property: The list of compute policies associated with this account.
+ *
+ * @return the computePolicies value.
+ */
+ public List computePolicies() {
+ return this.computePolicies;
+ }
+
+ /**
+ * Set the computePolicies property: The list of compute policies associated with this account.
+ *
+ * @param computePolicies the computePolicies value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withComputePolicies(
+ List computePolicies) {
+ this.computePolicies = computePolicies;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: The list of firewall rules associated with this account.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: The list of firewall rules associated with this account.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withFirewallRules(
+ List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Get the firewallState property: The current state of the IP address firewall for this account. Disabling the
+ * firewall does not remove existing rules, they will just be ignored until the firewall is re-enabled.
+ *
+ * @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. Disabling the
+ * firewall does not remove existing rules, they will just be ignored until the firewall is re-enabled.
+ *
+ * @param firewallState the firewallState value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties 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 UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withFirewallAllowAzureIps(
+ FirewallAllowAzureIpsState firewallAllowAzureIps) {
+ this.firewallAllowAzureIps = firewallAllowAzureIps;
+ return this;
+ }
+
+ /**
+ * Get the newTier property: The commitment tier to use for next month.
+ *
+ * @return the newTier value.
+ */
+ public TierType newTier() {
+ return this.newTier;
+ }
+
+ /**
+ * Set the newTier property: The commitment tier to use for next month.
+ *
+ * @param newTier the newTier value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withNewTier(TierType newTier) {
+ this.newTier = newTier;
+ return this;
+ }
+
+ /**
+ * 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 UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) {
+ this.maxJobCount = maxJobCount;
+ return this;
+ }
+
+ /**
+ * 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 UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) {
+ this.maxDegreeOfParallelism = maxDegreeOfParallelism;
+ return this;
+ }
+
+ /**
+ * 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 UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties 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;
+ }
+
+ /**
+ * Set the minPriorityPerJob property: The minimum supported priority per job for this account.
+ *
+ * @param minPriorityPerJob the minPriorityPerJob value to set.
+ * @return the UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withMinPriorityPerJob(Integer minPriorityPerJob) {
+ this.minPriorityPerJob = minPriorityPerJob;
+ return this;
+ }
+
+ /**
+ * 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 UpdateDataLakeAnalyticsAccountProperties object itself.
+ */
+ public UpdateDataLakeAnalyticsAccountProperties withQueryStoreRetention(Integer queryStoreRetention) {
+ this.queryStoreRetention = queryStoreRetention;
+ 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 (storageAccounts() != null) {
+ storageAccounts().forEach(e -> e.validate());
+ }
+ if (computePolicies() != null) {
+ computePolicies().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/UpdateDataLakeStoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.java
new file mode 100644
index 0000000000000..b638d95f8d4a5
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Data Lake Store account properties to use when updating a Data Lake Store account. */
+@Fluent
+public final class UpdateDataLakeStoreProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeStoreProperties.class);
+
+ /*
+ * The optional suffix for the Data Lake Store account.
+ */
+ @JsonProperty(value = "suffix")
+ private String suffix;
+
+ /**
+ * Get the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Set the suffix property: The optional suffix for the Data Lake Store account.
+ *
+ * @param suffix the suffix value to set.
+ * @return the UpdateDataLakeStoreProperties object itself.
+ */
+ public UpdateDataLakeStoreProperties withSuffix(String suffix) {
+ this.suffix = suffix;
+ 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/UpdateFirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java
new file mode 100644
index 0000000000000..e00003c32c287
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The firewall rule properties to use when updating a firewall rule. */
+@Fluent
+public final class UpdateFirewallRuleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateFirewallRuleProperties.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 = "startIpAddress")
+ 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 = "endIpAddress")
+ private String endIpAddress;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param startIpAddress the startIpAddress value to set.
+ * @return the UpdateFirewallRuleProperties object itself.
+ */
+ public UpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) {
+ this.startIpAddress = startIpAddress;
+ return this;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Set 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.
+ *
+ * @param endIpAddress the endIpAddress value to set.
+ * @return the UpdateFirewallRuleProperties object itself.
+ */
+ public UpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) {
+ this.endIpAddress = endIpAddress;
+ 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/UpdateStorageAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.java
new file mode 100644
index 0000000000000..c9f81551719f7
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.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.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Azure Storage account properties to use when updating an Azure Storage account. */
+@Fluent
+public final class UpdateStorageAccountProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateStorageAccountProperties.class);
+
+ /*
+ * The updated access key associated with this Azure Storage account that
+ * will be used to connect to it.
+ */
+ @JsonProperty(value = "accessKey")
+ private String accessKey;
+
+ /*
+ * The optional suffix for the storage account.
+ */
+ @JsonProperty(value = "suffix")
+ private String suffix;
+
+ /**
+ * Get the accessKey property: The updated access key associated with this Azure Storage account that will be used
+ * to connect to it.
+ *
+ * @return the accessKey value.
+ */
+ public String accessKey() {
+ return this.accessKey;
+ }
+
+ /**
+ * Set the accessKey property: The updated access key associated with this Azure Storage account that will be used
+ * to connect to it.
+ *
+ * @param accessKey the accessKey value to set.
+ * @return the UpdateStorageAccountProperties object itself.
+ */
+ public UpdateStorageAccountProperties withAccessKey(String accessKey) {
+ this.accessKey = accessKey;
+ return this;
+ }
+
+ /**
+ * Get the suffix property: The optional suffix for the storage account.
+ *
+ * @return the suffix value.
+ */
+ public String suffix() {
+ return this.suffix;
+ }
+
+ /**
+ * Set the suffix property: The optional suffix for the storage account.
+ *
+ * @param suffix the suffix value to set.
+ * @return the UpdateStorageAccountProperties object itself.
+ */
+ public UpdateStorageAccountProperties withSuffix(String suffix) {
+ this.suffix = suffix;
+ 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/VirtualNetworkRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java
new file mode 100644
index 0000000000000..64c926c95621b
--- /dev/null
+++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakeanalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRuleState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The VirtualNetwork Rule properties. */
+@Immutable
+public final class VirtualNetworkRuleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRuleProperties.class);
+
+ /*
+ * The resource identifier for the subnet
+ */
+ @JsonProperty(value = "subnetId", access = JsonProperty.Access.WRITE_ONLY)
+ private String subnetId;
+
+ /*
+ * The current state of the VirtualNetwork Rule
+ */
+ @JsonProperty(value = "virtualNetworkRuleState", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualNetworkRuleState virtualNetworkRuleState;
+
+ /**
+ * Get the subnetId property: The resource identifier for the subnet.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.subnetId;
+ }
+
+ /**
+ * Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule.
+ *
+ * @return the virtualNetworkRuleState value.
+ */
+ public VirtualNetworkRuleState virtualNetworkRuleState() {
+ return this.virtualNetworkRuleState;
+ }
+
+ /**
+ * 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/implementation/AccountsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java
index 098474575c2bb..22600db544a6d 100644
--- 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
@@ -225,7 +225,8 @@ Mono> listByResourceGroupNext(
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -289,7 +290,8 @@ private Mono> listSinglePageAs
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription along with {@link
+ * PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -349,7 +351,8 @@ private Mono> listSinglePageAs
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -365,7 +368,8 @@ private PagedFlux listAsync(
*
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -398,7 +402,8 @@ private PagedFlux listAsync() {
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -414,7 +419,8 @@ private PagedFlux listAsync(
*
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -445,7 +451,8 @@ public PagedIterable list() {
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -471,7 +478,8 @@ public PagedIterable list(
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -547,7 +555,8 @@ private Mono> listByResourceGr
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -620,7 +629,8 @@ private Mono> listByResourceGr
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -644,7 +654,8 @@ private PagedFlux listByResourceGroupAsync(
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -678,7 +689,8 @@ private PagedFlux listByResourceGroupAsync(S
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -705,7 +717,8 @@ private PagedFlux listByResourceGroupAsync(
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -738,7 +751,8 @@ public PagedIterable listByResourceGroup(Str
* @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.
+ * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
@@ -765,7 +779,7 @@ public PagedIterable listByResourceGroup(
* @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.
+ * Analytics account along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -823,7 +837,7 @@ private Mono>> createWithResponseAsync(
* @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.
+ * Analytics account along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -879,10 +893,10 @@ private Mono>> createWithResponseAsync(
* @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.
+ * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters);
@@ -893,7 +907,7 @@ private PollerFlux, DataLakeAnalyticsA
this.client.getHttpPipeline(),
DataLakeAnalyticsAccountInner.class,
DataLakeAnalyticsAccountInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -907,10 +921,10 @@ private PollerFlux, DataLakeAnalyticsA
* @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.
+ * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync(
String resourceGroupName,
String accountName,
@@ -939,10 +953,10 @@ private PollerFlux, DataLakeAnalyticsA
* @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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) {
return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
@@ -959,10 +973,10 @@ public SyncPoller, DataLakeAnalyticsAc
* @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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -982,7 +996,7 @@ public SyncPoller, DataLakeAnalyticsAc
* @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.
+ * Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -1004,7 +1018,7 @@ private Mono createAsync(
* @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.
+ * Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -1067,7 +1081,8 @@ public DataLakeAnalyticsAccountInner create(
* @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.
+ * @return details of the specified Data Lake Analytics account along with {@link Response} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1116,7 +1131,8 @@ private Mono> getByResourceGroupWithResp
* @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.
+ * @return details of the specified Data Lake Analytics account along with {@link Response} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1161,7 +1177,7 @@ private Mono> getByResourceGroupWithResp
* @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.
+ * @return details of the specified Data Lake Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
@@ -1200,7 +1216,7 @@ public DataLakeAnalyticsAccountInner getByResourceGroup(String resourceGroupName
* @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.
+ * @return details of the specified Data Lake Analytics account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -1219,7 +1235,7 @@ public Response getByResourceGroupWithResponse(
* @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.
+ * Analytics account along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1275,7 +1291,7 @@ private Mono>> updateWithResponseAsync(
* @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.
+ * Analytics account along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1329,10 +1345,10 @@ private Mono>> updateWithResponseAsync(
* @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.
+ * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync(
String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, parameters);
@@ -1343,7 +1359,7 @@ private PollerFlux, DataLakeAnalyticsA
this.client.getHttpPipeline(),
DataLakeAnalyticsAccountInner.class,
DataLakeAnalyticsAccountInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1357,10 +1373,10 @@ private PollerFlux, DataLakeAnalyticsA
* @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.
+ * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync(
String resourceGroupName,
String accountName,
@@ -1389,10 +1405,10 @@ private PollerFlux, DataLakeAnalyticsA
* @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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) {
return beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
@@ -1409,10 +1425,10 @@ public SyncPoller, DataLakeAnalyticsAc
* @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.
+ * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information
+ * associated with the named Data Lake Analytics account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -1432,7 +1448,7 @@ public SyncPoller, DataLakeAnalyticsAc
* @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.
+ * Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1452,7 +1468,7 @@ private Mono updateAsync(
* @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.
+ * Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String accountName) {
@@ -1474,7 +1490,7 @@ private Mono updateAsync(String resourceGroupName
* @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.
+ * Analytics account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1555,7 +1571,7 @@ public DataLakeAnalyticsAccountInner 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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) {
@@ -1603,7 +1619,7 @@ private Mono>> deleteWithResponseAsync(String resource
* @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.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -1648,14 +1664,15 @@ private Mono>> deleteWithResponseAsync(
* @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.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -1667,9 +1684,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @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.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, Context context) {
context = this.client.mergeContext(context);
@@ -1687,9 +1704,9 @@ private PollerFlux, Void> beginDeleteAsync(
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) {
return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
}
@@ -1703,9 +1720,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, Context context) {
return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
@@ -1719,7 +1736,7 @@ public SyncPoller, Void> beginDelete(
* @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.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName) {
@@ -1735,7 +1752,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) {
* @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.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, Context context) {
@@ -1781,7 +1798,8 @@ public void delete(String resourceGroupName, String accountName, Context context
* @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.
+ * @return data Lake Analytics account name availability result information along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1831,7 +1849,8 @@ private Mono> checkNameAvailabilityWi
* @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.
+ * @return data Lake Analytics account name availability result information along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1877,7 +1896,8 @@ private Mono> checkNameAvailabilityWi
* @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.
+ * @return data Lake Analytics account name availability result information on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono checkNameAvailabilityAsync(
@@ -1918,7 +1938,7 @@ public NameAvailabilityInformationInner checkNameAvailability(
* @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.
+ * @return data Lake Analytics account name availability result information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response checkNameAvailabilityWithResponse(
@@ -1933,7 +1953,8 @@ public Response checkNameAvailabilityWithRespo
* @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.
+ * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1969,7 +1990,8 @@ private Mono> listNextSinglePa
* @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.
+ * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(
@@ -2005,7 +2027,8 @@ private Mono> listNextSinglePa
* @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.
+ * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
@@ -2043,7 +2066,8 @@ private Mono> listByResourceGr
* @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.
+ * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
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
index 267f8c1122fb2..4673354d311aa 100644
--- 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
@@ -166,7 +166,8 @@ Mono> listByAccountNext(
* @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.
+ * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByAccountSinglePageAsync(
@@ -225,7 +226,8 @@ private Mono> listByAccountSinglePageAsync(
* @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.
+ * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByAccountSinglePageAsync(
@@ -280,7 +282,7 @@ private Mono> listByAccountSinglePageAsync(
* @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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByAccountAsync(String resourceGroupName, String accountName) {
@@ -299,7 +301,7 @@ private PagedFlux listByAccountAsync(String resourceGroupNam
* @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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByAccountAsync(
@@ -318,7 +320,7 @@ private PagedFlux listByAccountAsync(
* @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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByAccount(String resourceGroupName, String accountName) {
@@ -335,7 +337,7 @@ public PagedIterable listByAccount(String resourceGroupName,
* @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.
+ * @return the list of compute policies in the account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByAccount(
@@ -355,7 +357,8 @@ public PagedIterable listByAccount(
* @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.
+ * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -422,7 +425,8 @@ private Mono> createOrUpdateWithResponseAsync(
* @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.
+ * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -486,7 +490,7 @@ private Mono> createOrUpdateWithResponseAsync(
* @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.
+ * @return data Lake Analytics compute policy information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -541,7 +545,7 @@ public ComputePolicyInner createOrUpdate(
* @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.
+ * @return data Lake Analytics compute policy information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
@@ -563,7 +567,8 @@ public Response createOrUpdateWithResponse(
* @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.
+ * @return the specified Data Lake Analytics compute policy along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -618,7 +623,8 @@ private Mono> getWithResponseAsync(
* @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.
+ * @return the specified Data Lake Analytics compute policy along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -669,7 +675,7 @@ private Mono> getWithResponseAsync(
* @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.
+ * @return the specified Data Lake Analytics compute policy on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String accountName, String computePolicyName) {
@@ -710,7 +716,7 @@ public ComputePolicyInner get(String resourceGroupName, String accountName, Stri
* @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.
+ * @return the specified Data Lake Analytics compute policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -728,7 +734,8 @@ public Response