diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md index b70f02ca271d..d18e4615ca5b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md @@ -1,14 +1,50 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-02-24) + +- 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). ### Features Added -### Breaking Changes +* `models.TransferAnalyticsUnitsParameters` was added + +* `models.AnalyticsUnitsParameters` was added + +* `models.MixedTokensMode` was added + +#### `models.Accounts` was modified + +* `transferAnalyticsUnitsWithResponse(java.lang.String,java.lang.String,models.TransferAnalyticsUnitsParameters,com.azure.core.util.Context)` was added +* `transferAnalyticsUnits(java.lang.String,java.lang.String,models.TransferAnalyticsUnitsParameters)` was added +* `transferEcoAnalyticsUnits(java.lang.String,java.lang.String,models.TransferAnalyticsUnitsParameters)` was added +* `transferEcoAnalyticsUnitsWithResponse(java.lang.String,java.lang.String,models.TransferAnalyticsUnitsParameters,com.azure.core.util.Context)` was added + +#### `models.DataLakeAnalyticsAccount$Definition` was modified + +* `withMixedTokensMode(models.MixedTokensMode)` was added + +#### `models.DataLakeAnalyticsAccount$Update` was modified -### Bugs Fixed +* `withMixedTokensMode(models.MixedTokensMode)` was added + +#### `models.UpdateDataLakeAnalyticsAccountParameters` was modified + +* `mixedTokensMode()` was added +* `withMixedTokensMode(models.MixedTokensMode)` was added + +#### `models.CreateDataLakeAnalyticsAccountParameters` was modified + +* `withMixedTokensMode(models.MixedTokensMode)` was added +* `mixedTokensMode()` was added + +#### `models.DataLakeAnalyticsAccount` was modified -### Other Changes +* `transferEcoAnalyticsUnits(models.TransferAnalyticsUnitsParameters)` was added +* `transferEcoAnalyticsUnitsWithResponse(models.TransferAnalyticsUnitsParameters,com.azure.core.util.Context)` was added +* `defaultDataLakeStoreAccountType()` was added +* `mixedTokensMode()` was added +* `transferAnalyticsUnits(models.TransferAnalyticsUnitsParameters)` was added +* `transferAnalyticsUnitsWithResponse(models.TransferAnalyticsUnitsParameters,com.azure.core.util.Context)` was added ## 1.0.0 (2025-01-03) diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md index 125937a01cfb..12c0fd86308d 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 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ DataLakeAnalyticsManager manager = DataLakeAnalyticsManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md index dddaba7b66a9..063d96175670 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md @@ -9,6 +9,8 @@ - [GetByResourceGroup](#accounts_getbyresourcegroup) - [List](#accounts_list) - [ListByResourceGroup](#accounts_listbyresourcegroup) +- [TransferAnalyticsUnits](#accounts_transferanalyticsunits) +- [TransferEcoAnalyticsUnits](#accounts_transferecoanalyticsunits) - [Update](#accounts_update) ## ComputePolicies @@ -63,8 +65,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityP public final class AccountsCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_CheckNameAvailability.json + * 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. @@ -90,6 +92,7 @@ import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWit 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import java.util.Arrays; import java.util.HashMap; @@ -102,8 +105,8 @@ import java.util.UUID; public final class AccountsCreateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Create.json + * 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 @@ -135,6 +138,7 @@ public final class AccountsCreateSamples { .withEndIpAddress("2.2.2.2"))) .withFirewallState(FirewallState.ENABLED) .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withMixedTokensMode(MixedTokensMode.ENABLED) .withNewTier(TierType.CONSUMPTION) .withMaxJobCount(3) .withMaxDegreeOfParallelism(30) @@ -167,8 +171,8 @@ public final class AccountsCreateSamples { public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Delete.json + * 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. @@ -191,8 +195,8 @@ public final class AccountsDeleteSamples { public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Get.json + * 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. @@ -215,8 +219,8 @@ public final class AccountsGetByResourceGroupSamples { public final class AccountsListSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_List.json + * 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 @@ -242,8 +246,8 @@ public final class AccountsListSamples { public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_ListByResourceGroup.json + * 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 @@ -261,6 +265,90 @@ public final class AccountsListByResourceGroupSamples { } ``` +### Accounts_TransferAnalyticsUnits + +```java +import com.azure.resourcemanager.datalakeanalytics.models.AnalyticsUnitsParameters; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; +import java.util.Arrays; + +/** + * Samples for Accounts TransferAnalyticsUnits. + */ +public final class AccountsTransferAnalyticsUnitsSamples { + /* + * x-ms-original-file: + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /Accounts_TransferAnalyticsUnits.json + */ + /** + * Sample code: Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. This supplies the + * user with computation services for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + transferGuaranteeAnalyticsUnitsBetweenAllowedDataLakeAnalyticsAccountsThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts() + .transferAnalyticsUnitsWithResponse("contosorg", "contosoadla", new TransferAnalyticsUnitsParameters() + .withNewSystemMax(17) + .withParticipants(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1") + .withNewSystemMax(26), + new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3") + .withNewSystemMax(12))) + .withRecipients(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2") + .withNewSystemMax(18))), + com.azure.core.util.Context.NONE); + } +} +``` + +### Accounts_TransferEcoAnalyticsUnits + +```java +import com.azure.resourcemanager.datalakeanalytics.models.AnalyticsUnitsParameters; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; +import java.util.Arrays; + +/** + * Samples for Accounts TransferEcoAnalyticsUnits. + */ +public final class AccountsTransferEcoAnalyticsUnitsSamples { + /* + * x-ms-original-file: + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /Accounts_TransferEcoAnalyticsUnits.json + */ + /** + * Sample code: Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. This supplies the user + * with computation services for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + transferEcoAnalyticsUnitsBetweenAllowedDataLakeAnalyticsAccountsThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts() + .transferEcoAnalyticsUnitsWithResponse("contosorg", "contosoadla", new TransferAnalyticsUnitsParameters() + .withNewSystemMax(17) + .withParticipants(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1") + .withNewSystemMax(26), + new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3") + .withNewSystemMax(12))) + .withRecipients(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2") + .withNewSystemMax(18))), + com.azure.core.util.Context.NONE); + } +} +``` + ### Accounts_Update ```java @@ -268,6 +356,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; @@ -282,8 +371,8 @@ import java.util.UUID; public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Update.json + * 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 @@ -311,6 +400,7 @@ public final class AccountsUpdateSamples { .withEndIpAddress("2.2.2.2"))) .withFirewallState(FirewallState.ENABLED) .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withMixedTokensMode(MixedTokensMode.ENABLED) .withNewTier(TierType.CONSUMPTION) .withMaxJobCount(1) .withMaxDegreeOfParallelism(1) @@ -346,8 +436,8 @@ import java.util.UUID; public final class ComputePoliciesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_CreateOrUpdate.json + * 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. @@ -377,8 +467,8 @@ public final class ComputePoliciesCreateOrUpdateSamples { public final class ComputePoliciesDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Delete.json + * 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. @@ -402,8 +492,8 @@ public final class ComputePoliciesDeleteSamples { public final class ComputePoliciesGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Get.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /ComputePolicies_Get.json */ /** * Sample code: Gets the specified compute policy. @@ -427,8 +517,8 @@ public final class ComputePoliciesGetSamples { public final class ComputePoliciesListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_ListByAccount.json + * 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. @@ -453,8 +543,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; public final class ComputePoliciesUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /ComputePolicies_Update.json */ /** * Sample code: Updates the specified compute policy. @@ -482,8 +572,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParame public final class DataLakeStoreAccountsAddSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Add.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /DataLakeStoreAccounts_Add.json */ /** * Sample code: Adds a Data Lake Store account. @@ -508,8 +598,8 @@ public final class DataLakeStoreAccountsAddSamples { public final class DataLakeStoreAccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Delete.json + * 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. @@ -533,8 +623,8 @@ public final class DataLakeStoreAccountsDeleteSamples { public final class DataLakeStoreAccountsGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Get.json + * 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. @@ -558,8 +648,8 @@ public final class DataLakeStoreAccountsGetSamples { public final class DataLakeStoreAccountsListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_ListByAccount.json + * 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. @@ -584,8 +674,8 @@ public final class DataLakeStoreAccountsListByAccountSamples { public final class FirewallRulesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_CreateOrUpdate.json + * 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. @@ -613,8 +703,8 @@ public final class FirewallRulesCreateOrUpdateSamples { public final class FirewallRulesDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Delete.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /FirewallRules_Delete.json */ /** * Sample code: Deletes the specified firewall rule. @@ -638,8 +728,8 @@ public final class FirewallRulesDeleteSamples { public final class FirewallRulesGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Get.json + * 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. @@ -663,8 +753,8 @@ public final class FirewallRulesGetSamples { public final class FirewallRulesListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_ListByAccount.json + * 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. @@ -689,8 +779,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; public final class FirewallRulesUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /FirewallRules_Update.json */ /** * Sample code: Updates the specified firewall rule. @@ -716,8 +806,8 @@ public final class FirewallRulesUpdateSamples { public final class LocationsGetCapabilitySamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Locations_GetCapability.json + * 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 @@ -741,8 +831,8 @@ public final class LocationsGetCapabilitySamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Operations_List.json + * 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. @@ -767,8 +857,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountParam public final class StorageAccountsAddSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Add.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Add.json */ /** * Sample code: Adds an Azure Storage account. @@ -794,8 +884,8 @@ public final class StorageAccountsAddSamples { public final class StorageAccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Delete.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Delete.json */ /** * Sample code: Removes an Azure Storage account. @@ -819,8 +909,8 @@ public final class StorageAccountsDeleteSamples { public final class StorageAccountsGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Get.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Get.json */ /** * Sample code: Gets the specified Azure Storage account. @@ -844,8 +934,8 @@ public final class StorageAccountsGetSamples { public final class StorageAccountsGetStorageContainerSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_GetStorageContainer.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_GetStorageContainer.json */ /** * Sample code: Gets the specified Azure Storage container. @@ -870,8 +960,8 @@ public final class StorageAccountsGetStorageContainerSamples { public final class StorageAccountsListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListByAccount.json + * 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. @@ -896,8 +986,8 @@ public final class StorageAccountsListByAccountSamples { public final class StorageAccountsListSasTokensSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListSasTokens.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_ListSasTokens.json */ /** * Sample code: Gets the SAS token. @@ -921,8 +1011,8 @@ public final class StorageAccountsListSasTokensSamples { public final class StorageAccountsListStorageContainersSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListStorageContainers.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_ListStorageContainers.json */ /** * Sample code: Lists the Azure Storage containers. @@ -948,8 +1038,8 @@ import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountPa public final class StorageAccountsUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Update.json */ /** * Sample code: Replaces Azure Storage blob account details. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml index da6fc1d1078c..269865870298 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml @@ -18,7 +18,7 @@ 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. + 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 @@ -45,6 +45,7 @@ UTF-8 0 0 + true false 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 251d418d811c..efa3b2bf1c5f 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 @@ -22,6 +22,7 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datalakeanalytics.fluent.DataLakeAnalyticsAccountManagementClient; import com.azure.resourcemanager.datalakeanalytics.implementation.AccountsImpl; @@ -43,6 +44,7 @@ import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -117,6 +119,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-datalakeanalytics.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -224,12 +229,14 @@ public DataLakeAnalyticsManager authenticate(TokenCredential credential, AzurePr Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.datalakeanalytics") .append("/") - .append("1.0.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) 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 225964da0776..5dd31608199a 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 @@ -16,6 +16,7 @@ import com.azure.resourcemanager.datalakeanalytics.fluent.models.NameAvailabilityInformationInner; import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.datalakeanalytics.models.CreateDataLakeAnalyticsAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters; /** @@ -343,4 +344,64 @@ Response checkNameAvailabilityWithResponse(Str */ @ServiceMethod(returns = ReturnType.SINGLE) NameAvailabilityInformationInner checkNameAvailability(String location, CheckNameAvailabilityParameters parameters); + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response transferAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void transferAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response transferEcoAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void transferEcoAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters); } 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 index c4064100c645..25a9e7d1888c 100644 --- 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 @@ -16,6 +16,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import java.io.IOException; import java.util.List; @@ -62,6 +63,12 @@ public final class CreateDataLakeAnalyticsAccountProperties */ private FirewallAllowAzureIpsState firewallAllowAzureIps; + /* + * The current state of allowing or disallowing to use both Guarantee Analytics Unit and Eco Analytics Unit together + * during Job execution. + */ + private MixedTokensMode mixedTokensMode; + /* * The commitment tier for the next month. */ @@ -246,6 +253,28 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.mixedTokensMode; + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withMixedTokensMode(MixedTokensMode mixedTokensMode) { + this.mixedTokensMode = mixedTokensMode; + return this; + } + /** * Get the newTier property: The commitment tier for the next month. * @@ -417,6 +446,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("firewallState", this.firewallState == null ? null : this.firewallState.toString()); jsonWriter.writeStringField("firewallAllowAzureIps", this.firewallAllowAzureIps == null ? null : this.firewallAllowAzureIps.toString()); + jsonWriter.writeStringField("mixedTokensMode", + this.mixedTokensMode == null ? null : this.mixedTokensMode.toString()); jsonWriter.writeStringField("newTier", this.newTier == null ? null : this.newTier.toString()); jsonWriter.writeNumberField("maxJobCount", this.maxJobCount); jsonWriter.writeNumberField("maxDegreeOfParallelism", this.maxDegreeOfParallelism); @@ -468,6 +499,9 @@ public static CreateDataLakeAnalyticsAccountProperties fromJson(JsonReader jsonR } else if ("firewallAllowAzureIps".equals(fieldName)) { deserializedCreateDataLakeAnalyticsAccountProperties.firewallAllowAzureIps = FirewallAllowAzureIpsState.fromString(reader.getString()); + } else if ("mixedTokensMode".equals(fieldName)) { + deserializedCreateDataLakeAnalyticsAccountProperties.mixedTokensMode + = MixedTokensMode.fromString(reader.getString()); } else if ("newTier".equals(fieldName)) { deserializedCreateDataLakeAnalyticsAccountProperties.newTier = TierType.fromString(reader.getString()); 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 4671d13975cc..3f87a0c21056 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 @@ -15,6 +15,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule; import java.io.IOException; @@ -113,6 +114,16 @@ public DataLakeAnalyticsAccountInner withTags(Map tags) { return this; } + /** + * 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.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccountType(); + } + /** * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. * @@ -248,6 +259,31 @@ public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzur return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.innerProperties() == null ? null : this.innerProperties().mixedTokensMode(); + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the DataLakeAnalyticsAccountInner object itself. + */ + public DataLakeAnalyticsAccountInner withMixedTokensMode(MixedTokensMode mixedTokensMode) { + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMixedTokensMode(mixedTokensMode); + return this; + } + /** * Get the newTier property: The commitment tier for the next month. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java index 7b4186b8a086..7e6d2bd410f9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java @@ -15,6 +15,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule; import java.io.IOException; @@ -28,6 +29,11 @@ */ @Fluent public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsAccountPropertiesBasic { + /* + * The type of the default Data Lake Store account associated with this account. + */ + private String defaultDataLakeStoreAccountType; + /* * The default Data Lake Store account associated with this account. */ @@ -79,6 +85,12 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA */ private FirewallAllowAzureIpsState firewallAllowAzureIps; + /* + * The current state of allowing or disallowing to use both Guarantee Analytics Unit and Eco Analytics Unit together + * during Job execution. + */ + private MixedTokensMode mixedTokensMode; + /* * The commitment tier for the next month. */ @@ -182,6 +194,16 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA public DataLakeAnalyticsAccountProperties() { } + /** + * 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. * @@ -309,6 +331,28 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.mixedTokensMode; + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the DataLakeAnalyticsAccountProperties object itself. + */ + public DataLakeAnalyticsAccountProperties withMixedTokensMode(MixedTokensMode mixedTokensMode) { + this.mixedTokensMode = mixedTokensMode; + return this; + } + /** * Get the newTier property: The commitment tier for the next month. * @@ -586,6 +630,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("firewallState", this.firewallState == null ? null : this.firewallState.toString()); jsonWriter.writeStringField("firewallAllowAzureIps", this.firewallAllowAzureIps == null ? null : this.firewallAllowAzureIps.toString()); + jsonWriter.writeStringField("mixedTokensMode", + this.mixedTokensMode == null ? null : this.mixedTokensMode.toString()); jsonWriter.writeStringField("newTier", this.newTier == null ? null : this.newTier.toString()); jsonWriter.writeNumberField("maxJobCount", this.maxJobCount); jsonWriter.writeNumberField("maxDegreeOfParallelism", this.maxDegreeOfParallelism); @@ -627,6 +673,8 @@ public static DataLakeAnalyticsAccountProperties fromJson(JsonReader jsonReader) .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("endpoint".equals(fieldName)) { deserializedDataLakeAnalyticsAccountProperties.endpoint = reader.getString(); + } else if ("defaultDataLakeStoreAccountType".equals(fieldName)) { + deserializedDataLakeAnalyticsAccountProperties.defaultDataLakeStoreAccountType = reader.getString(); } else if ("defaultDataLakeStoreAccount".equals(fieldName)) { deserializedDataLakeAnalyticsAccountProperties.defaultDataLakeStoreAccount = reader.getString(); } else if ("dataLakeStoreAccounts".equals(fieldName)) { @@ -663,6 +711,9 @@ public static DataLakeAnalyticsAccountProperties fromJson(JsonReader jsonReader) } else if ("firewallAllowAzureIps".equals(fieldName)) { deserializedDataLakeAnalyticsAccountProperties.firewallAllowAzureIps = FirewallAllowAzureIpsState.fromString(reader.getString()); + } else if ("mixedTokensMode".equals(fieldName)) { + deserializedDataLakeAnalyticsAccountProperties.mixedTokensMode + = MixedTokensMode.fromString(reader.getString()); } else if ("newTier".equals(fieldName)) { deserializedDataLakeAnalyticsAccountProperties.newTier = TierType.fromString(reader.getString()); } else if ("currentTier".equals(fieldName)) { 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 index c79b76adf7eb..1408314e42f8 100644 --- 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 @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters; @@ -57,6 +58,12 @@ public final class UpdateDataLakeAnalyticsAccountProperties */ private FirewallAllowAzureIpsState firewallAllowAzureIps; + /* + * The current state of allowing or disallowing to use both Guarantee Analytics Unit and Eco Analytics Unit together + * during Job execution. + */ + private MixedTokensMode mixedTokensMode; + /* * The commitment tier to use for next month. */ @@ -222,6 +229,28 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.mixedTokensMode; + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withMixedTokensMode(MixedTokensMode mixedTokensMode) { + this.mixedTokensMode = mixedTokensMode; + return this; + } + /** * Get the newTier property: The commitment tier to use for next month. * @@ -381,6 +410,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("firewallState", this.firewallState == null ? null : this.firewallState.toString()); jsonWriter.writeStringField("firewallAllowAzureIps", this.firewallAllowAzureIps == null ? null : this.firewallAllowAzureIps.toString()); + jsonWriter.writeStringField("mixedTokensMode", + this.mixedTokensMode == null ? null : this.mixedTokensMode.toString()); jsonWriter.writeStringField("newTier", this.newTier == null ? null : this.newTier.toString()); jsonWriter.writeNumberField("maxJobCount", this.maxJobCount); jsonWriter.writeNumberField("maxDegreeOfParallelism", this.maxDegreeOfParallelism); @@ -428,6 +459,9 @@ public static UpdateDataLakeAnalyticsAccountProperties fromJson(JsonReader jsonR } else if ("firewallAllowAzureIps".equals(fieldName)) { deserializedUpdateDataLakeAnalyticsAccountProperties.firewallAllowAzureIps = FirewallAllowAzureIpsState.fromString(reader.getString()); + } else if ("mixedTokensMode".equals(fieldName)) { + deserializedUpdateDataLakeAnalyticsAccountProperties.mixedTokensMode + = MixedTokensMode.fromString(reader.getString()); } else if ("newTier".equals(fieldName)) { deserializedUpdateDataLakeAnalyticsAccountProperties.newTier = TierType.fromString(reader.getString()); 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 d4de26bd3f25..45802529a526 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 @@ -40,6 +40,7 @@ import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.datalakeanalytics.models.CreateDataLakeAnalyticsAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountListResult; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -147,6 +148,28 @@ Mono> checkNameAvailability(@HostPara @BodyParam("application/json") CheckNameAvailabilityParameters parameters, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/transferAnalyticsUnits") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> transferAnalyticsUnits(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") TransferAnalyticsUnitsParameters parameters, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/transferEcoAnalyticsUnits") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> transferEcoAnalyticsUnits(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") TransferAnalyticsUnitsParameters parameters, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1575,6 +1598,276 @@ public NameAvailabilityInformationInner checkNameAvailability(String location, return checkNameAvailabilityWithResponse(location, parameters, Context.NONE).getValue(); } + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> transferAnalyticsUnitsWithResponseAsync(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.transferAnalyticsUnits(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), parameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> transferAnalyticsUnitsWithResponseAsync(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.transferAnalyticsUnits(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), parameters, accept, context); + } + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @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 {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono transferAnalyticsUnitsAsync(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + return transferAnalyticsUnitsWithResponseAsync(resourceGroupName, accountName, parameters) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response transferAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context) { + return transferAnalyticsUnitsWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + } + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void transferAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + transferAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, Context.NONE); + } + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> transferEcoAnalyticsUnitsWithResponseAsync(String resourceGroupName, + String accountName, TransferAnalyticsUnitsParameters parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.transferEcoAnalyticsUnits(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), parameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> transferEcoAnalyticsUnitsWithResponseAsync(String resourceGroupName, + String accountName, TransferAnalyticsUnitsParameters parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.transferEcoAnalyticsUnits(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, accountName, this.client.getApiVersion(), parameters, accept, context); + } + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @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 {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono transferEcoAnalyticsUnitsAsync(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + return transferEcoAnalyticsUnitsWithResponseAsync(resourceGroupName, accountName, parameters) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response transferEcoAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context) { + return transferEcoAnalyticsUnitsWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + } + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void transferEcoAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + transferEcoAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, Context.NONE); + } + /** * Get the next page of items. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java index b40948848048..fad51043ecc9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsImpl.java @@ -18,6 +18,7 @@ import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount; import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountBasic; import com.azure.resourcemanager.datalakeanalytics.models.NameAvailabilityInformation; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; public final class AccountsImpl implements Accounts { private static final ClientLogger LOGGER = new ClientLogger(AccountsImpl.class); @@ -112,6 +113,28 @@ public NameAvailabilityInformation checkNameAvailability(String location, } } + public Response transferAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context) { + return this.serviceClient() + .transferAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, context); + } + + public void transferAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + this.serviceClient().transferAnalyticsUnits(resourceGroupName, accountName, parameters); + } + + public Response transferEcoAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context) { + return this.serviceClient() + .transferEcoAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, context); + } + + public void transferEcoAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters) { + this.serviceClient().transferEcoAnalyticsUnits(resourceGroupName, accountName, parameters); + } + public DataLakeAnalyticsAccount getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java index 7d88b4cd905c..beeeefc25a50 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.datalakeanalytics.implementation; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner; @@ -26,8 +27,10 @@ import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; import com.azure.resourcemanager.datalakeanalytics.models.HiveMetastore; +import com.azure.resourcemanager.datalakeanalytics.models.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.StorageAccountInformation; import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeAnalyticsAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters; @@ -72,6 +75,10 @@ public Map tags() { } } + public String defaultDataLakeStoreAccountType() { + return this.innerModel().defaultDataLakeStoreAccountType(); + } + public String defaultDataLakeStoreAccount() { return this.innerModel().defaultDataLakeStoreAccount(); } @@ -157,6 +164,10 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this.innerModel().firewallAllowAzureIps(); } + public MixedTokensMode mixedTokensMode() { + return this.innerModel().mixedTokensMode(); + } + public TierType newTier() { return this.innerModel().newTier(); } @@ -331,6 +342,26 @@ public DataLakeAnalyticsAccount refresh(Context context) { return this; } + public Response transferAnalyticsUnitsWithResponse(TransferAnalyticsUnitsParameters parameters, + Context context) { + return serviceManager.accounts() + .transferAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, context); + } + + public void transferAnalyticsUnits(TransferAnalyticsUnitsParameters parameters) { + serviceManager.accounts().transferAnalyticsUnits(resourceGroupName, accountName, parameters); + } + + public Response transferEcoAnalyticsUnitsWithResponse(TransferAnalyticsUnitsParameters parameters, + Context context) { + return serviceManager.accounts() + .transferEcoAnalyticsUnitsWithResponse(resourceGroupName, accountName, parameters, context); + } + + public void transferEcoAnalyticsUnits(TransferAnalyticsUnitsParameters parameters) { + serviceManager.accounts().transferEcoAnalyticsUnits(resourceGroupName, accountName, parameters); + } + public DataLakeAnalyticsAccountImpl withRegion(Region location) { this.createParameters.withLocation(location.toString()); return this; @@ -399,6 +430,16 @@ public DataLakeAnalyticsAccountImpl withFirewallAllowAzureIps(FirewallAllowAzure } } + public DataLakeAnalyticsAccountImpl withMixedTokensMode(MixedTokensMode mixedTokensMode) { + if (isInCreateMode()) { + this.createParameters.withMixedTokensMode(mixedTokensMode); + return this; + } else { + this.updateParameters.withMixedTokensMode(mixedTokensMode); + return this; + } + } + public DataLakeAnalyticsAccountImpl withNewTier(TierType newTier) { if (isInCreateMode()) { this.createParameters.withNewTier(newTier); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java index 55a719a040dd..61774be45f8a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java @@ -247,7 +247,7 @@ public LocationsClient getLocations() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2016-11-01"; + this.apiVersion = "2019-11-01-preview"; this.accounts = new AccountsClientImpl(this); this.dataLakeStoreAccounts = new DataLakeStoreAccountsClientImpl(this); this.storageAccounts = new StorageAccountsClientImpl(this); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Accounts.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Accounts.java index 883b1ed05888..8da2bfb22995 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Accounts.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Accounts.java @@ -158,6 +158,62 @@ Response checkNameAvailabilityWithResponse(String l */ NameAvailabilityInformation checkNameAvailability(String location, CheckNameAvailabilityParameters parameters); + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response transferAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @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. + */ + void transferAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response transferEcoAnalyticsUnitsWithResponse(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param resourceGroupName The name of the Azure resource group. + * @param accountName The name of the Data Lake Analytics account. + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @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. + */ + void transferEcoAnalyticsUnits(String resourceGroupName, String accountName, + TransferAnalyticsUnitsParameters parameters); + /** * Gets details of the specified Data Lake Analytics account. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AnalyticsUnitsParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AnalyticsUnitsParameters.java new file mode 100644 index 000000000000..fc93afc84dcf --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AnalyticsUnitsParameters.java @@ -0,0 +1,125 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Analytics Units. + */ +@Fluent +public final class AnalyticsUnitsParameters implements JsonSerializable { + /* + * The Account Id - Format: + * /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts + * /{accountName} + */ + private String id; + + /* + * The updated Analytics Units + */ + private Integer newSystemMax; + + /** + * Creates an instance of AnalyticsUnitsParameters class. + */ + public AnalyticsUnitsParameters() { + } + + /** + * Get the id property: The Account Id - Format: + * /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The Account Id - Format: + * /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}. + * + * @param id the id value to set. + * @return the AnalyticsUnitsParameters object itself. + */ + public AnalyticsUnitsParameters withId(String id) { + this.id = id; + return this; + } + + /** + * Get the newSystemMax property: The updated Analytics Units. + * + * @return the newSystemMax value. + */ + public Integer newSystemMax() { + return this.newSystemMax; + } + + /** + * Set the newSystemMax property: The updated Analytics Units. + * + * @param newSystemMax the newSystemMax value to set. + * @return the AnalyticsUnitsParameters object itself. + */ + public AnalyticsUnitsParameters withNewSystemMax(Integer newSystemMax) { + this.newSystemMax = newSystemMax; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeNumberField("newSystemMax", this.newSystemMax); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AnalyticsUnitsParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AnalyticsUnitsParameters if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AnalyticsUnitsParameters. + */ + public static AnalyticsUnitsParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AnalyticsUnitsParameters deserializedAnalyticsUnitsParameters = new AnalyticsUnitsParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedAnalyticsUnitsParameters.id = reader.getString(); + } else if ("newSystemMax".equals(fieldName)) { + deserializedAnalyticsUnitsParameters.newSystemMax = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedAnalyticsUnitsParameters; + }); + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateDataLakeAnalyticsAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateDataLakeAnalyticsAccountParameters.java index 7b2af398612b..5e8fb7263bcc 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateDataLakeAnalyticsAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateDataLakeAnalyticsAccountParameters.java @@ -260,6 +260,31 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.innerProperties() == null ? null : this.innerProperties().mixedTokensMode(); + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the CreateDataLakeAnalyticsAccountParameters object itself. + */ + public CreateDataLakeAnalyticsAccountParameters withMixedTokensMode(MixedTokensMode mixedTokensMode) { + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMixedTokensMode(mixedTokensMode); + return this; + } + /** * Get the newTier property: The commitment tier for the next month. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccount.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccount.java index 7326db283c5a..544c1f28b894 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccount.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccount.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.datalakeanalytics.models; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountInner; @@ -51,6 +52,14 @@ public interface DataLakeAnalyticsAccount { */ Map tags(); + /** + * Gets the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated + * with this account. + * + * @return the defaultDataLakeStoreAccountType value. + */ + String defaultDataLakeStoreAccountType(); + /** * Gets the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. * @@ -122,6 +131,14 @@ public interface DataLakeAnalyticsAccount { */ FirewallAllowAzureIpsState firewallAllowAzureIps(); + /** + * Gets the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + MixedTokensMode mixedTokensMode(); + /** * Gets the newTier property: The commitment tier for the next month. * @@ -373,9 +390,9 @@ interface WithDataLakeStoreAccounts { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithStorageAccounts, DefinitionStages.WithComputePolicies, DefinitionStages.WithFirewallRules, DefinitionStages.WithFirewallState, DefinitionStages.WithFirewallAllowAzureIps, - DefinitionStages.WithNewTier, DefinitionStages.WithMaxJobCount, DefinitionStages.WithMaxDegreeOfParallelism, - DefinitionStages.WithMaxDegreeOfParallelismPerJob, DefinitionStages.WithMinPriorityPerJob, - DefinitionStages.WithQueryStoreRetention { + DefinitionStages.WithMixedTokensMode, DefinitionStages.WithNewTier, DefinitionStages.WithMaxJobCount, + DefinitionStages.WithMaxDegreeOfParallelism, DefinitionStages.WithMaxDegreeOfParallelismPerJob, + DefinitionStages.WithMinPriorityPerJob, DefinitionStages.WithQueryStoreRetention { /** * Executes the create request. * @@ -473,6 +490,21 @@ interface WithFirewallAllowAzureIps { WithCreate withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps); } + /** + * The stage of the DataLakeAnalyticsAccount definition allowing to specify mixedTokensMode. + */ + interface WithMixedTokensMode { + /** + * Specifies the mixedTokensMode property: The current state of allowing or disallowing to use both + * Guarantee Analytics Unit and Eco Analytics Unit together during Job execution.. + * + * @param mixedTokensMode The current state of allowing or disallowing to use both Guarantee Analytics Unit + * and Eco Analytics Unit together during Job execution. + * @return the next definition stage. + */ + WithCreate withMixedTokensMode(MixedTokensMode mixedTokensMode); + } + /** * The stage of the DataLakeAnalyticsAccount definition allowing to specify newTier. */ @@ -565,12 +597,12 @@ interface WithQueryStoreRetention { /** * The template for DataLakeAnalyticsAccount update. */ - interface Update - extends UpdateStages.WithTags, UpdateStages.WithDataLakeStoreAccounts, UpdateStages.WithStorageAccounts, - UpdateStages.WithComputePolicies, UpdateStages.WithFirewallRules, UpdateStages.WithFirewallState, - UpdateStages.WithFirewallAllowAzureIps, UpdateStages.WithNewTier, UpdateStages.WithMaxJobCount, - UpdateStages.WithMaxDegreeOfParallelism, UpdateStages.WithMaxDegreeOfParallelismPerJob, - UpdateStages.WithMinPriorityPerJob, UpdateStages.WithQueryStoreRetention { + interface Update extends UpdateStages.WithTags, UpdateStages.WithDataLakeStoreAccounts, + UpdateStages.WithStorageAccounts, UpdateStages.WithComputePolicies, UpdateStages.WithFirewallRules, + UpdateStages.WithFirewallState, UpdateStages.WithFirewallAllowAzureIps, UpdateStages.WithMixedTokensMode, + UpdateStages.WithNewTier, UpdateStages.WithMaxJobCount, UpdateStages.WithMaxDegreeOfParallelism, + UpdateStages.WithMaxDegreeOfParallelismPerJob, UpdateStages.WithMinPriorityPerJob, + UpdateStages.WithQueryStoreRetention { /** * Executes the update request. * @@ -690,6 +722,21 @@ interface WithFirewallAllowAzureIps { Update withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps); } + /** + * The stage of the DataLakeAnalyticsAccount update allowing to specify mixedTokensMode. + */ + interface WithMixedTokensMode { + /** + * Specifies the mixedTokensMode property: The current state of allowing or disallowing to use both + * Guarantee Analytics Unit and Eco Analytics Unit together during Job execution.. + * + * @param mixedTokensMode The current state of allowing or disallowing to use both Guarantee Analytics Unit + * and Eco Analytics Unit together during Job execution. + * @return the next definition stage. + */ + Update withMixedTokensMode(MixedTokensMode mixedTokensMode); + } + /** * The stage of the DataLakeAnalyticsAccount update allowing to specify newTier. */ @@ -786,4 +833,48 @@ interface WithQueryStoreRetention { * @return the refreshed resource. */ DataLakeAnalyticsAccount refresh(Context context); + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response transferAnalyticsUnitsWithResponse(TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. + * + * @param parameters Parameters supplied to transfer Guarantee Analytics Units between allowed accounts. + * @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. + */ + void transferAnalyticsUnits(TransferAnalyticsUnitsParameters parameters); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response transferEcoAnalyticsUnitsWithResponse(TransferAnalyticsUnitsParameters parameters, Context context); + + /** + * Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. + * + * @param parameters Parameters supplied to transfer Eco-Analytics Units between allowed accounts. + * @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. + */ + void transferEcoAnalyticsUnits(TransferAnalyticsUnitsParameters parameters); } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/MixedTokensMode.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/MixedTokensMode.java new file mode 100644 index 000000000000..903af2438921 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/MixedTokensMode.java @@ -0,0 +1,57 @@ +// 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.models; + +/** + * The current state of allowing or disallowing to use both Guarantee Analytics Unit and Eco Analytics Unit together + * during Job execution. + */ +public enum MixedTokensMode { + /** + * Enum value Enabled. + */ + ENABLED("Enabled"), + + /** + * Enum value Disabled. + */ + DISABLED("Disabled"); + + /** + * The actual serialized value for a MixedTokensMode instance. + */ + private final String value; + + MixedTokensMode(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a MixedTokensMode instance. + * + * @param value the serialized value to parse. + * @return the parsed MixedTokensMode object, or null if unable to parse. + */ + public static MixedTokensMode fromString(String value) { + if (value == null) { + return null; + } + MixedTokensMode[] items = MixedTokensMode.values(); + for (MixedTokensMode item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/TransferAnalyticsUnitsParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/TransferAnalyticsUnitsParameters.java new file mode 100644 index 000000000000..61372f0b4dc2 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/TransferAnalyticsUnitsParameters.java @@ -0,0 +1,161 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The parameters used to transfer Analytics Units from one account to another. + */ +@Fluent +public final class TransferAnalyticsUnitsParameters implements JsonSerializable { + /* + * Current Account's updated Analytics Units + */ + private Integer newSystemMax; + + /* + * The list of Accounts provides its Analytics Units except the current Account + */ + private List participants; + + /* + * The list of Accounts to receive the Analytics Units except the current Account + */ + private List recipients; + + /** + * Creates an instance of TransferAnalyticsUnitsParameters class. + */ + public TransferAnalyticsUnitsParameters() { + } + + /** + * Get the newSystemMax property: Current Account's updated Analytics Units. + * + * @return the newSystemMax value. + */ + public Integer newSystemMax() { + return this.newSystemMax; + } + + /** + * Set the newSystemMax property: Current Account's updated Analytics Units. + * + * @param newSystemMax the newSystemMax value to set. + * @return the TransferAnalyticsUnitsParameters object itself. + */ + public TransferAnalyticsUnitsParameters withNewSystemMax(Integer newSystemMax) { + this.newSystemMax = newSystemMax; + return this; + } + + /** + * Get the participants property: The list of Accounts provides its Analytics Units except the current Account. + * + * @return the participants value. + */ + public List participants() { + return this.participants; + } + + /** + * Set the participants property: The list of Accounts provides its Analytics Units except the current Account. + * + * @param participants the participants value to set. + * @return the TransferAnalyticsUnitsParameters object itself. + */ + public TransferAnalyticsUnitsParameters withParticipants(List participants) { + this.participants = participants; + return this; + } + + /** + * Get the recipients property: The list of Accounts to receive the Analytics Units except the current Account. + * + * @return the recipients value. + */ + public List recipients() { + return this.recipients; + } + + /** + * Set the recipients property: The list of Accounts to receive the Analytics Units except the current Account. + * + * @param recipients the recipients value to set. + * @return the TransferAnalyticsUnitsParameters object itself. + */ + public TransferAnalyticsUnitsParameters withRecipients(List recipients) { + this.recipients = recipients; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (participants() != null) { + participants().forEach(e -> e.validate()); + } + if (recipients() != null) { + recipients().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("newSystemMax", this.newSystemMax); + jsonWriter.writeArrayField("participants", this.participants, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("recipients", this.recipients, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TransferAnalyticsUnitsParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TransferAnalyticsUnitsParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the TransferAnalyticsUnitsParameters. + */ + public static TransferAnalyticsUnitsParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TransferAnalyticsUnitsParameters deserializedTransferAnalyticsUnitsParameters + = new TransferAnalyticsUnitsParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("newSystemMax".equals(fieldName)) { + deserializedTransferAnalyticsUnitsParameters.newSystemMax = reader.getNullable(JsonReader::getInt); + } else if ("participants".equals(fieldName)) { + List participants + = reader.readArray(reader1 -> AnalyticsUnitsParameters.fromJson(reader1)); + deserializedTransferAnalyticsUnitsParameters.participants = participants; + } else if ("recipients".equals(fieldName)) { + List recipients + = reader.readArray(reader1 -> AnalyticsUnitsParameters.fromJson(reader1)); + deserializedTransferAnalyticsUnitsParameters.recipients = recipients; + } else { + reader.skipChildren(); + } + } + + return deserializedTransferAnalyticsUnitsParameters; + }); + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeAnalyticsAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeAnalyticsAccountParameters.java index 989830162015..5f8bbb121093 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeAnalyticsAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeAnalyticsAccountParameters.java @@ -212,6 +212,31 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { return this; } + /** + * Get the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @return the mixedTokensMode value. + */ + public MixedTokensMode mixedTokensMode() { + return this.innerProperties() == null ? null : this.innerProperties().mixedTokensMode(); + } + + /** + * Set the mixedTokensMode property: The current state of allowing or disallowing to use both Guarantee Analytics + * Unit and Eco Analytics Unit together during Job execution. + * + * @param mixedTokensMode the mixedTokensMode value to set. + * @return the UpdateDataLakeAnalyticsAccountParameters object itself. + */ + public UpdateDataLakeAnalyticsAccountParameters withMixedTokensMode(MixedTokensMode mixedTokensMode) { + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMixedTokensMode(mixedTokensMode); + return this; + } + /** * Get the newTier property: The commitment tier to use for next month. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/resources/azure-resourcemanager-datalakeanalytics.properties b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/resources/azure-resourcemanager-datalakeanalytics.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/resources/azure-resourcemanager-datalakeanalytics.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java index b2f9422f9a70..8749186ec03d 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java @@ -12,8 +12,8 @@ public final class AccountsCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_CheckNameAvailability.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java index 03a41d516d3e..50f1af73c1a5 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java @@ -11,6 +11,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import java.util.Arrays; import java.util.HashMap; @@ -23,8 +24,8 @@ public final class AccountsCreateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Create.json + * 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 @@ -56,6 +57,7 @@ public final class AccountsCreateSamples { .withEndIpAddress("2.2.2.2"))) .withFirewallState(FirewallState.ENABLED) .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withMixedTokensMode(MixedTokensMode.ENABLED) .withNewTier(TierType.CONSUMPTION) .withMaxJobCount(3) .withMaxDegreeOfParallelism(30) diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java index 44ac8c5020bb..397e3a76cc82 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java @@ -10,8 +10,8 @@ public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Delete.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java index 507580594661..e50e64bb563d 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java @@ -10,8 +10,8 @@ public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Get.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java index 9080c091dcfb..2792c0e91b47 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java @@ -10,8 +10,8 @@ public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_ListByResourceGroup.json + * 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 diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java index a782a20948b8..3b4f03bb582c 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java @@ -10,8 +10,8 @@ public final class AccountsListSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_List.json + * 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 diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferAnalyticsUnitsSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferAnalyticsUnitsSamples.java new file mode 100644 index 000000000000..2cdf3a8377ba --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferAnalyticsUnitsSamples.java @@ -0,0 +1,43 @@ +// 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.generated; + +import com.azure.resourcemanager.datalakeanalytics.models.AnalyticsUnitsParameters; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; +import java.util.Arrays; + +/** + * Samples for Accounts TransferAnalyticsUnits. + */ +public final class AccountsTransferAnalyticsUnitsSamples { + /* + * x-ms-original-file: + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /Accounts_TransferAnalyticsUnits.json + */ + /** + * Sample code: Transfer Guarantee Analytics Units between allowed Data Lake Analytics accounts. This supplies the + * user with computation services for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + transferGuaranteeAnalyticsUnitsBetweenAllowedDataLakeAnalyticsAccountsThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts() + .transferAnalyticsUnitsWithResponse("contosorg", "contosoadla", new TransferAnalyticsUnitsParameters() + .withNewSystemMax(17) + .withParticipants(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1") + .withNewSystemMax(26), + new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3") + .withNewSystemMax(12))) + .withRecipients(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2") + .withNewSystemMax(18))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferEcoAnalyticsUnitsSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferEcoAnalyticsUnitsSamples.java new file mode 100644 index 000000000000..9039f79e21e7 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsTransferEcoAnalyticsUnitsSamples.java @@ -0,0 +1,43 @@ +// 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.generated; + +import com.azure.resourcemanager.datalakeanalytics.models.AnalyticsUnitsParameters; +import com.azure.resourcemanager.datalakeanalytics.models.TransferAnalyticsUnitsParameters; +import java.util.Arrays; + +/** + * Samples for Accounts TransferEcoAnalyticsUnits. + */ +public final class AccountsTransferEcoAnalyticsUnitsSamples { + /* + * x-ms-original-file: + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /Accounts_TransferEcoAnalyticsUnits.json + */ + /** + * Sample code: Transfer Eco-Analytics Units between allowed Data Lake Analytics accounts. This supplies the user + * with computation services for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + transferEcoAnalyticsUnitsBetweenAllowedDataLakeAnalyticsAccountsThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts() + .transferEcoAnalyticsUnitsWithResponse("contosorg", "contosoadla", new TransferAnalyticsUnitsParameters() + .withNewSystemMax(17) + .withParticipants(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_1") + .withNewSystemMax(26), + new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_3") + .withNewSystemMax(12))) + .withRecipients(Arrays.asList(new AnalyticsUnitsParameters().withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla_2") + .withNewSystemMax(18))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java index 28a04a26e069..d6b7ce3c483a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java @@ -8,6 +8,7 @@ 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.MixedTokensMode; import com.azure.resourcemanager.datalakeanalytics.models.TierType; import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; @@ -22,8 +23,8 @@ public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Accounts_Update.json + * 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 @@ -51,6 +52,7 @@ public final class AccountsUpdateSamples { .withEndIpAddress("2.2.2.2"))) .withFirewallState(FirewallState.ENABLED) .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withMixedTokensMode(MixedTokensMode.ENABLED) .withNewTier(TierType.CONSUMPTION) .withMaxJobCount(1) .withMaxDegreeOfParallelism(1) diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java index 5ce9685b2400..959512294316 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java @@ -13,8 +13,8 @@ public final class ComputePoliciesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_CreateOrUpdate.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java index 074767c58914..ff44ad9ac7d9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java @@ -10,8 +10,8 @@ public final class ComputePoliciesDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Delete.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java index 21490a3174b5..17646a0ac079 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java @@ -10,8 +10,8 @@ public final class ComputePoliciesGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Get.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /ComputePolicies_Get.json */ /** * Sample code: Gets the specified compute policy. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java index 7717bddc182b..0ceb43edb35c 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java @@ -10,8 +10,8 @@ public final class ComputePoliciesListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_ListByAccount.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java index 41268c580481..d206ee62a601 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java @@ -12,8 +12,8 @@ public final class ComputePoliciesUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * ComputePolicies_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /ComputePolicies_Update.json */ /** * Sample code: Updates the specified compute policy. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java index 0e62808ca7aa..0244927b62ed 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java @@ -12,8 +12,8 @@ public final class DataLakeStoreAccountsAddSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Add.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /DataLakeStoreAccounts_Add.json */ /** * Sample code: Adds a Data Lake Store account. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java index 662647aa945e..dfc741ca9b8b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java @@ -10,8 +10,8 @@ public final class DataLakeStoreAccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Delete.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java index 9df07e5e6324..58421e93b878 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java @@ -10,8 +10,8 @@ public final class DataLakeStoreAccountsGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_Get.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java index fc0ed583ea8d..a291af516f82 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java @@ -10,8 +10,8 @@ public final class DataLakeStoreAccountsListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * DataLakeStoreAccounts_ListByAccount.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java index c33a1623f31e..9f33581ad725 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java @@ -10,8 +10,8 @@ public final class FirewallRulesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_CreateOrUpdate.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java index 08c1028656fc..99ddc0a4b4d0 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java @@ -10,8 +10,8 @@ public final class FirewallRulesDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Delete.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /FirewallRules_Delete.json */ /** * Sample code: Deletes the specified firewall rule. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java index 19b2cc22e677..b9e5a63eb59a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java @@ -10,8 +10,8 @@ public final class FirewallRulesGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Get.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java index 2eb7a2acd5be..e691902715cf 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java @@ -10,8 +10,8 @@ public final class FirewallRulesListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_ListByAccount.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java index 47a05244c113..3b38f06132af 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java @@ -12,8 +12,8 @@ public final class FirewallRulesUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * FirewallRules_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /FirewallRules_Update.json */ /** * Sample code: Updates the specified firewall rule. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java index 3e985da1daff..321991683277 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java @@ -10,8 +10,8 @@ public final class LocationsGetCapabilitySamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Locations_GetCapability.json + * 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 diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java index d2321aee5a1a..44d8f16d65e0 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java @@ -10,8 +10,8 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * Operations_List.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java index 36dfda71f710..b5f0c904a39f 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java @@ -12,8 +12,8 @@ public final class StorageAccountsAddSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Add.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Add.json */ /** * Sample code: Adds an Azure Storage account. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java index 9aefb5a158d4..996d2fb4c625 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsDeleteSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Delete.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Delete.json */ /** * Sample code: Removes an Azure Storage account. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java index c170a25865da..54bedf48f225 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsGetSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Get.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Get.json */ /** * Sample code: Gets the specified Azure Storage account. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java index ac981713b72f..348b4979f3fe 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsGetStorageContainerSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_GetStorageContainer.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_GetStorageContainer.json */ /** * Sample code: Gets the specified Azure Storage container. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java index 232d8d2ae577..86f2f867ec24 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsListByAccountSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListByAccount.json + * 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. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java index a432dea33e32..f1ddecc2618b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsListSasTokensSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListSasTokens.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_ListSasTokens.json */ /** * Sample code: Gets the SAS token. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java index 629322fc2f4b..74b4e08172d1 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java @@ -10,8 +10,8 @@ public final class StorageAccountsListStorageContainersSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_ListStorageContainers.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_ListStorageContainers.json */ /** * Sample code: Lists the Azure Storage containers. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java index 12efbce79fc6..a78cd8a14fcc 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java @@ -12,8 +12,8 @@ public final class StorageAccountsUpdateSamples { /* * x-ms-original-file: - * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/stable/2016-11-01/examples/ - * StorageAccounts_Update.json + * specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples + * /StorageAccounts_Update.json */ /** * Sample code: Replaces Azure Storage blob account details. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilityWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 85b49e648225..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; -import com.azure.resourcemanager.datalakeanalytics.models.NameAvailabilityInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"mbqfqvmk\",\"message\":\"oz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NameAvailabilityInformation response = manager.accounts() - .checkNameAvailabilityWithResponse("v", new CheckNameAvailabilityParameters().withName("ajqgxy"), - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteMockTests.java deleted file mode 100644 index 17b043e7debb..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.accounts().delete("xvy", "omgkopkwho", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupMockTests.java deleted file mode 100644 index 19bb7043c484..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountBasic; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"accountId\":\"cff1813b-b47c-4b29-87b1-30a183d6faf5\",\"provisioningState\":\"Canceled\",\"state\":\"Suspended\",\"creationTime\":\"2021-11-06T18:49:40Z\",\"lastModifiedTime\":\"2021-10-14T05:29:13Z\",\"endpoint\":\"znud\"},\"location\":\"od\",\"tags\":{\"rzdzucerscdnt\":\"bncblylpstdbhhx\"},\"id\":\"evfiwjmygt\",\"name\":\"sslswtmweriof\",\"type\":\"pyqs\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.accounts() - .listByResourceGroup("aolps", "lqlfm", 219002993, 57076299, "bbglzpswiydmc", "yhz", true, - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("od", response.iterator().next().location()); - Assertions.assertEquals("bncblylpstdbhhx", response.iterator().next().tags().get("rzdzucerscdnt")); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListMockTests.java deleted file mode 100644 index 175e7ab7bf72..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountBasic; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccountsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"accountId\":\"c6405ea3-44cb-4ab1-973c-418b2429d3ef\",\"provisioningState\":\"Failed\",\"state\":\"Suspended\",\"creationTime\":\"2021-01-23T23:11:07Z\",\"lastModifiedTime\":\"2021-07-15T05:15:39Z\",\"endpoint\":\"nfqqnvwp\"},\"location\":\"qtaruoujmkcjhwq\",\"tags\":{\"bnw\":\"r\",\"enq\":\"ewgdrjervn\",\"ndoygmifthnzdnd\":\"eh\",\"nayqi\":\"l\"},\"id\":\"ynduha\",\"name\":\"hqlkthumaqo\",\"type\":\"bgycduiertgccym\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.accounts() - .list("bhsqfsubcgjbirxb", 1282258802, 1394705984, "srfbjfdtwss", "t", true, - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qtaruoujmkcjhwq", response.iterator().next().location()); - Assertions.assertEquals("r", response.iterator().next().tags().get("bnw")); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreParametersTests.java deleted file mode 100644 index fedae8dbcd95..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreParametersTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters; -import org.junit.jupiter.api.Assertions; - -public final class AddDataLakeStoreParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataLakeStoreParameters model = BinaryData.fromString("{\"properties\":{\"suffix\":\"rvjx\"}}") - .toObject(AddDataLakeStoreParameters.class); - Assertions.assertEquals("rvjx", model.suffix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataLakeStoreParameters model = new AddDataLakeStoreParameters().withSuffix("rvjx"); - model = BinaryData.fromObject(model).toObject(AddDataLakeStoreParameters.class); - Assertions.assertEquals("rvjx", model.suffix()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStorePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStorePropertiesTests.java deleted file mode 100644 index 8bde64b20dbb..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStorePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.AddDataLakeStoreProperties; -import org.junit.jupiter.api.Assertions; - -public final class AddDataLakeStorePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataLakeStoreProperties model - = BinaryData.fromString("{\"suffix\":\"fxxypininmayhuy\"}").toObject(AddDataLakeStoreProperties.class); - Assertions.assertEquals("fxxypininmayhuy", model.suffix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataLakeStoreProperties model = new AddDataLakeStoreProperties().withSuffix("fxxypininmayhuy"); - model = BinaryData.fromObject(model).toObject(AddDataLakeStoreProperties.class); - Assertions.assertEquals("fxxypininmayhuy", model.suffix()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreWithAccountParametersTests.java deleted file mode 100644 index 406ec274e8f9..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/AddDataLakeStoreWithAccountParametersTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters; -import org.junit.jupiter.api.Assertions; - -public final class AddDataLakeStoreWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AddDataLakeStoreWithAccountParameters model - = BinaryData.fromString("{\"name\":\"np\",\"properties\":{\"suffix\":\"pjkjlxofpdv\"}}") - .toObject(AddDataLakeStoreWithAccountParameters.class); - Assertions.assertEquals("np", model.name()); - Assertions.assertEquals("pjkjlxofpdv", model.suffix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddDataLakeStoreWithAccountParameters model - = new AddDataLakeStoreWithAccountParameters().withName("np").withSuffix("pjkjlxofpdv"); - model = BinaryData.fromObject(model).toObject(AddDataLakeStoreWithAccountParameters.class); - Assertions.assertEquals("np", model.name()); - Assertions.assertEquals("pjkjlxofpdv", model.suffix()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CapabilityInformationInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CapabilityInformationInnerTests.java deleted file mode 100644 index e9684e45a52f..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CapabilityInformationInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.CapabilityInformationInner; - -public final class CapabilityInformationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CapabilityInformationInner model = BinaryData.fromString( - "{\"subscriptionId\":\"d1a4d262-28b8-42b6-b525-3050c57cf5c3\",\"state\":\"Unregistered\",\"maxAccountCount\":1577221415,\"accountCount\":1139203375,\"migrationState\":false}") - .toObject(CapabilityInformationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CapabilityInformationInner model = new CapabilityInformationInner(); - model = BinaryData.fromObject(model).toObject(CapabilityInformationInner.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CheckNameAvailabilityParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CheckNameAvailabilityParametersTests.java deleted file mode 100644 index 323b721247d8..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CheckNameAvailabilityParametersTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityParameters model - = BinaryData.fromString("{\"name\":\"svshqjohx\"}").toObject(CheckNameAvailabilityParameters.class); - Assertions.assertEquals("svshqjohx", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityParameters model = new CheckNameAvailabilityParameters().withName("svshqjohx"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityParameters.class); - Assertions.assertEquals("svshqjohx", model.name()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index f5146c0f4b54..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ComputePoliciesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"objectId\":\"cd7cdd38-7565-443e-9c33-4f9f976bb3b2\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":1236978734,\"minPriorityPerJob\":2111682042},\"name\":\"f\",\"type\":\"eyvpnqicvinvkj\",\"id\":\"dxrbuukzcle\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ComputePolicy response = manager.computePolicies() - .define("sjervti") - .withExistingAccount("ggkfpagaowpul", "qblylsyxkqj") - .withObjectId(UUID.fromString("1ecb9b59-4670-4d6f-a33e-da2c79814590")) - .withObjectType(AadObjectType.GROUP) - .withMaxDegreeOfParallelismPerJob(1353667842) - .withMinPriorityPerJob(424844999) - .create(); - - Assertions.assertEquals("dxrbuukzcle", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteWithResponseMockTests.java deleted file mode 100644 index 27c11b5ce634..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ComputePoliciesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.computePolicies() - .deleteWithResponse("ujhemmsbvdkcrodt", "infwjlfltkacjve", "kdlfoa", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetWithResponseMockTests.java deleted file mode 100644 index 93db3c8a08f1..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ComputePoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"objectId\":\"b72ef991-cc4a-492e-9444-6e9f0cb7f1b9\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":2099315083,\"minPriorityPerJob\":1402038644},\"name\":\"vydypatdoo\",\"type\":\"jkniodko\",\"id\":\"bw\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ComputePolicy response = manager.computePolicies() - .getWithResponse("oaxoruzfgsqu", "fxrxxle", "tramxjez", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("bw", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountMockTests.java deleted file mode 100644 index b52c48730967..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ComputePoliciesListByAccountMockTests { - @Test - public void testListByAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"objectId\":\"6b8e4639-12fc-46d8-9649-2772a919f5b4\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":470627882,\"minPriorityPerJob\":1769429451},\"name\":\"thzvaytdwkqbrqu\",\"type\":\"axhexiilivp\",\"id\":\"iirqtd\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.computePolicies().listByAccount("wmewzsyy", "euzsoi", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("iirqtd", response.iterator().next().id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyInnerTests.java deleted file mode 100644 index 8ead6ff2a285..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner; -import org.junit.jupiter.api.Assertions; - -public final class ComputePolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComputePolicyInner model = BinaryData.fromString( - "{\"properties\":{\"objectId\":\"231fe99d-e99c-4567-9d96-82468cd73094\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":792570944,\"minPriorityPerJob\":1370032032},\"name\":\"h\",\"type\":\"fbowskanyk\",\"id\":\"lcuiywgqywgndr\"}") - .toObject(ComputePolicyInner.class); - Assertions.assertEquals("lcuiywgqywgndr", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComputePolicyInner model = new ComputePolicyInner().withId("lcuiywgqywgndr"); - model = BinaryData.fromObject(model).toObject(ComputePolicyInner.class); - Assertions.assertEquals("lcuiywgqywgndr", model.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyListResultTests.java deleted file mode 100644 index aed6e9ba7d1c..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicyListResult; - -public final class ComputePolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComputePolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectId\":\"292c2cb8-f6f7-4b43-99c4-c328ff4d25a3\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1103023268,\"minPriorityPerJob\":1901169400},\"name\":\"nljky\",\"type\":\"j\",\"id\":\"ujqgidok\"},{\"properties\":{\"objectId\":\"64833640-0084-4119-b537-fc9e7cec7abc\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":1125977089,\"minPriorityPerJob\":649555961},\"name\":\"ltbgsncghkj\",\"type\":\"zz\",\"id\":\"ijhtxf\"},{\"properties\":{\"objectId\":\"b11eec8b-9008-4169-b44e-a01c553d5228\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1787736845,\"minPriorityPerJob\":215474399},\"name\":\"hmpvecx\",\"type\":\"debfqkkrbmpukgri\",\"id\":\"lzlfbxzpuz\"},{\"properties\":{\"objectId\":\"06d7085a-9b54-4b39-a426-26c267949844\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":315992042,\"minPriorityPerJob\":2071345899},\"name\":\"mgkbrpyydhibn\",\"type\":\"qkpikadrgvtqagnb\",\"id\":\"nhijggmebfsi\"}],\"nextLink\":\"butr\"}") - .toObject(ComputePolicyListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComputePolicyListResult model = new ComputePolicyListResult(); - model = BinaryData.fromObject(model).toObject(ComputePolicyListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyPropertiesTests.java deleted file mode 100644 index c74fcbea2f0c..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePolicyPropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyProperties; - -public final class ComputePolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ComputePolicyProperties model = BinaryData.fromString( - "{\"objectId\":\"8d9e154b-0e32-4c8d-a8f9-c4ccf6a04262\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":19075135,\"minPriorityPerJob\":523315995}") - .toObject(ComputePolicyProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ComputePolicyProperties model = new ComputePolicyProperties(); - model = BinaryData.fromObject(model).toObject(ComputePolicyProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateComputePolicyWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateComputePolicyWithAccountParametersTests.java deleted file mode 100644 index c71a9abc9ec6..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateComputePolicyWithAccountParametersTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class CreateComputePolicyWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateComputePolicyWithAccountParameters model = BinaryData.fromString( - "{\"name\":\"usivye\",\"properties\":{\"objectId\":\"5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1323562973,\"minPriorityPerJob\":1522291140}}") - .toObject(CreateComputePolicyWithAccountParameters.class); - Assertions.assertEquals("usivye", model.name()); - Assertions.assertEquals(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(1323562973, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1522291140, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateComputePolicyWithAccountParameters model - = new CreateComputePolicyWithAccountParameters().withName("usivye") - .withObjectId(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13")) - .withObjectType(AadObjectType.SERVICE_PRINCIPAL) - .withMaxDegreeOfParallelismPerJob(1323562973) - .withMinPriorityPerJob(1522291140); - model = BinaryData.fromObject(model).toObject(CreateComputePolicyWithAccountParameters.class); - Assertions.assertEquals("usivye", model.name()); - Assertions.assertEquals(UUID.fromString("5db3c7a4-c6f9-4cd8-8fdb-94a2ce82af13"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(1323562973, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1522291140, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateFirewallRuleWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateFirewallRuleWithAccountParametersTests.java deleted file mode 100644 index 2f7556d8afbd..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateFirewallRuleWithAccountParametersTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters; -import org.junit.jupiter.api.Assertions; - -public final class CreateFirewallRuleWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateFirewallRuleWithAccountParameters model = BinaryData - .fromString( - "{\"name\":\"gbwjzrnf\",\"properties\":{\"startIpAddress\":\"gxg\",\"endIpAddress\":\"spemvtzfk\"}}") - .toObject(CreateFirewallRuleWithAccountParameters.class); - Assertions.assertEquals("gbwjzrnf", model.name()); - Assertions.assertEquals("gxg", model.startIpAddress()); - Assertions.assertEquals("spemvtzfk", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateFirewallRuleWithAccountParameters model - = new CreateFirewallRuleWithAccountParameters().withName("gbwjzrnf") - .withStartIpAddress("gxg") - .withEndIpAddress("spemvtzfk"); - model = BinaryData.fromObject(model).toObject(CreateFirewallRuleWithAccountParameters.class); - Assertions.assertEquals("gbwjzrnf", model.name()); - Assertions.assertEquals("gxg", model.startIpAddress()); - Assertions.assertEquals("spemvtzfk", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyParametersTests.java deleted file mode 100644 index 598b0d902314..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyParametersTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class CreateOrUpdateComputePolicyParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateOrUpdateComputePolicyParameters model = BinaryData.fromString( - "{\"properties\":{\"objectId\":\"a5294833-3657-46cb-a0f8-dd860c35e26a\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":357365351,\"minPriorityPerJob\":1487439384}}") - .toObject(CreateOrUpdateComputePolicyParameters.class); - Assertions.assertEquals(UUID.fromString("a5294833-3657-46cb-a0f8-dd860c35e26a"), model.objectId()); - Assertions.assertEquals(AadObjectType.USER, model.objectType()); - Assertions.assertEquals(357365351, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1487439384, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateOrUpdateComputePolicyParameters model = new CreateOrUpdateComputePolicyParameters() - .withObjectId(UUID.fromString("a5294833-3657-46cb-a0f8-dd860c35e26a")) - .withObjectType(AadObjectType.USER) - .withMaxDegreeOfParallelismPerJob(357365351) - .withMinPriorityPerJob(1487439384); - model = BinaryData.fromObject(model).toObject(CreateOrUpdateComputePolicyParameters.class); - Assertions.assertEquals(UUID.fromString("a5294833-3657-46cb-a0f8-dd860c35e26a"), model.objectId()); - Assertions.assertEquals(AadObjectType.USER, model.objectType()); - Assertions.assertEquals(357365351, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1487439384, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyPropertiesTests.java deleted file mode 100644 index b55a8963acee..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateComputePolicyPropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateComputePolicyProperties; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class CreateOrUpdateComputePolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateOrUpdateComputePolicyProperties model = BinaryData.fromString( - "{\"objectId\":\"0a61cb3a-73b2-4e87-a9d5-b1ad1e22d2db\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":720964194,\"minPriorityPerJob\":1574404612}") - .toObject(CreateOrUpdateComputePolicyProperties.class); - Assertions.assertEquals(UUID.fromString("0a61cb3a-73b2-4e87-a9d5-b1ad1e22d2db"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(720964194, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1574404612, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateOrUpdateComputePolicyProperties model = new CreateOrUpdateComputePolicyProperties() - .withObjectId(UUID.fromString("0a61cb3a-73b2-4e87-a9d5-b1ad1e22d2db")) - .withObjectType(AadObjectType.SERVICE_PRINCIPAL) - .withMaxDegreeOfParallelismPerJob(720964194) - .withMinPriorityPerJob(1574404612); - model = BinaryData.fromObject(model).toObject(CreateOrUpdateComputePolicyProperties.class); - Assertions.assertEquals(UUID.fromString("0a61cb3a-73b2-4e87-a9d5-b1ad1e22d2db"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(720964194, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(1574404612, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRuleParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRuleParametersTests.java deleted file mode 100644 index 33018f4e7d8e..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRuleParametersTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateFirewallRuleParameters; -import org.junit.jupiter.api.Assertions; - -public final class CreateOrUpdateFirewallRuleParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateOrUpdateFirewallRuleParameters model = BinaryData - .fromString( - "{\"properties\":{\"startIpAddress\":\"rqlfktsthsucocmn\",\"endIpAddress\":\"yazttbtwwrqpue\"}}") - .toObject(CreateOrUpdateFirewallRuleParameters.class); - Assertions.assertEquals("rqlfktsthsucocmn", model.startIpAddress()); - Assertions.assertEquals("yazttbtwwrqpue", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateOrUpdateFirewallRuleParameters model - = new CreateOrUpdateFirewallRuleParameters().withStartIpAddress("rqlfktsthsucocmn") - .withEndIpAddress("yazttbtwwrqpue"); - model = BinaryData.fromObject(model).toObject(CreateOrUpdateFirewallRuleParameters.class); - Assertions.assertEquals("rqlfktsthsucocmn", model.startIpAddress()); - Assertions.assertEquals("yazttbtwwrqpue", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRulePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRulePropertiesTests.java deleted file mode 100644 index b3f9f99c7028..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/CreateOrUpdateFirewallRulePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateFirewallRuleProperties; -import org.junit.jupiter.api.Assertions; - -public final class CreateOrUpdateFirewallRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateOrUpdateFirewallRuleProperties model - = BinaryData.fromString("{\"startIpAddress\":\"fublj\",\"endIpAddress\":\"fxqeof\"}") - .toObject(CreateOrUpdateFirewallRuleProperties.class); - Assertions.assertEquals("fublj", model.startIpAddress()); - Assertions.assertEquals("fxqeof", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateOrUpdateFirewallRuleProperties model - = new CreateOrUpdateFirewallRuleProperties().withStartIpAddress("fublj").withEndIpAddress("fxqeof"); - model = BinaryData.fromObject(model).toObject(CreateOrUpdateFirewallRuleProperties.class); - Assertions.assertEquals("fublj", model.startIpAddress()); - Assertions.assertEquals("fxqeof", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountBasicInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountBasicInnerTests.java deleted file mode 100644 index 3ecc958bf56a..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountBasicInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountBasicInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeAnalyticsAccountBasicInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsAccountBasicInner model = BinaryData.fromString( - "{\"properties\":{\"accountId\":\"466c7186-3429-4985-8e7d-c7604c5a7a79\",\"provisioningState\":\"Patching\",\"state\":\"Active\",\"creationTime\":\"2021-04-18T20:42:54Z\",\"lastModifiedTime\":\"2021-01-26T06:35:32Z\",\"endpoint\":\"xqhabi\"},\"location\":\"pikxwczbyscnpqxu\",\"tags\":{\"n\":\"y\"},\"id\":\"wby\",\"name\":\"rkxvdum\",\"type\":\"grtfwvu\"}") - .toObject(DataLakeAnalyticsAccountBasicInner.class); - Assertions.assertEquals("pikxwczbyscnpqxu", model.location()); - Assertions.assertEquals("y", model.tags().get("n")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsAccountBasicInner model - = new DataLakeAnalyticsAccountBasicInner().withLocation("pikxwczbyscnpqxu").withTags(mapOf("n", "y")); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsAccountBasicInner.class); - Assertions.assertEquals("pikxwczbyscnpqxu", model.location()); - Assertions.assertEquals("y", model.tags().get("n")); - } - - // Use "Map.of" if available - @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; - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountListResultTests.java deleted file mode 100644 index e1fc312ccefd..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountListResult; - -public final class DataLakeAnalyticsAccountListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsAccountListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"accountId\":\"9b20e6e2-9ea2-4971-89f5-a038ec0b7bf9\",\"provisioningState\":\"Running\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-18T18:26:01Z\",\"lastModifiedTime\":\"2021-08-02T07:01:22Z\",\"endpoint\":\"zm\"},\"location\":\"hmtzopbsphrup\",\"tags\":{\"ycm\":\"sybbejhph\",\"htbmuf\":\"xaobhdxbmtqioqjz\",\"rxybqsoq\":\"ownoizhw\"},\"id\":\"jgkdmbpazlobcu\",\"name\":\"pdznrbtcqqjnqgl\",\"type\":\"qgn\"},{\"properties\":{\"accountId\":\"2879b568-f8c4-494b-9e6e-d6f3e3cdd9a0\",\"provisioningState\":\"Running\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-05T07:25:28Z\",\"lastModifiedTime\":\"2021-11-19T20:38:19Z\",\"endpoint\":\"esaagdfm\"},\"location\":\"lzl\",\"tags\":{\"vktsizntocipao\":\"rifkwm\",\"poyfdkfogkn\":\"ajpsquc\",\"eqsrdeupewnwreit\":\"gjofjd\"},\"id\":\"zyf\",\"name\":\"usarhmofc\",\"type\":\"hs\"},{\"properties\":{\"accountId\":\"863bf573-0aa8-4e84-bd0b-b7cdf730b56f\",\"provisioningState\":\"Undeleting\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-13T04:20:54Z\",\"lastModifiedTime\":\"2021-10-06T17:56:05Z\",\"endpoint\":\"kuksjtxukcdm\"},\"location\":\"arcryuanzwuxzdxt\",\"tags\":{\"u\":\"lhmwhfpmrqobm\"},\"id\":\"knryrtihfxtij\",\"name\":\"pzvgnwzsymglzufc\",\"type\":\"zk\"}],\"count\":1162765594,\"nextLink\":\"ihanuf\"}") - .toObject(DataLakeAnalyticsAccountListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsAccountListResult model = new DataLakeAnalyticsAccountListResult(); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsAccountListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountPropertiesBasicTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountPropertiesBasicTests.java deleted file mode 100644 index 3ad77527eef1..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeAnalyticsAccountPropertiesBasicTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeAnalyticsAccountPropertiesBasic; - -public final class DataLakeAnalyticsAccountPropertiesBasicTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeAnalyticsAccountPropertiesBasic model = BinaryData.fromString( - "{\"accountId\":\"5f4fb343-f48b-4cdf-a094-ed30e54cd138\",\"provisioningState\":\"Deleted\",\"state\":\"Active\",\"creationTime\":\"2021-10-29T03:26:02Z\",\"lastModifiedTime\":\"2021-06-07T10:34:36Z\",\"endpoint\":\"s\"}") - .toObject(DataLakeAnalyticsAccountPropertiesBasic.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeAnalyticsAccountPropertiesBasic model = new DataLakeAnalyticsAccountPropertiesBasic(); - model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsAccountPropertiesBasic.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationInnerTests.java deleted file mode 100644 index 92bbba4b2137..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationInner; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeStoreAccountInformationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeStoreAccountInformationInner model = BinaryData.fromString( - "{\"properties\":{\"suffix\":\"mjthjqkwp\"},\"name\":\"icxm\",\"type\":\"iwqvhkh\",\"id\":\"uigdtopbobjog\"}") - .toObject(DataLakeStoreAccountInformationInner.class); - Assertions.assertEquals("uigdtopbobjog", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeStoreAccountInformationInner model = new DataLakeStoreAccountInformationInner().withId("uigdtopbobjog"); - model = BinaryData.fromObject(model).toObject(DataLakeStoreAccountInformationInner.class); - Assertions.assertEquals("uigdtopbobjog", model.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationListResultTests.java deleted file mode 100644 index 5cace93ba3db..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeStoreAccountInformationListResult; - -public final class DataLakeStoreAccountInformationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeStoreAccountInformationListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"suffix\":\"xieduugidyjrr\"},\"name\":\"y\",\"type\":\"svexcsonpclhoco\",\"id\":\"lkevle\"},{\"properties\":{\"suffix\":\"fbuhfmvfaxkffe\"},\"name\":\"th\",\"type\":\"m\",\"id\":\"yvshxmz\"}],\"nextLink\":\"bzoggigrx\"}") - .toObject(DataLakeStoreAccountInformationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeStoreAccountInformationListResult model = new DataLakeStoreAccountInformationListResult(); - model = BinaryData.fromObject(model).toObject(DataLakeStoreAccountInformationListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationPropertiesTests.java deleted file mode 100644 index 2f12387e85f9..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountInformationPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationProperties; - -public final class DataLakeStoreAccountInformationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeStoreAccountInformationProperties model - = BinaryData.fromString("{\"suffix\":\"e\"}").toObject(DataLakeStoreAccountInformationProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeStoreAccountInformationProperties model = new DataLakeStoreAccountInformationProperties(); - model = BinaryData.fromObject(model).toObject(DataLakeStoreAccountInformationProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddWithResponseMockTests.java deleted file mode 100644 index 0663a9003a14..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddWithResponseMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataLakeStoreAccountsAddWithResponseMockTests { - @Test - public void testAddWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.dataLakeStoreAccounts() - .addWithResponse("iftohqkvpu", "ksgplsa", "nynfsynljphuo", - new AddDataLakeStoreParameters().withSuffix("dlqiyntorzih"), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteWithResponseMockTests.java deleted file mode 100644 index f13b903ac7cd..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataLakeStoreAccountsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.dataLakeStoreAccounts() - .deleteWithResponse("sorgj", "xbldtlwwrlkdmtn", "vokotllxdyh", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetWithResponseMockTests.java deleted file mode 100644 index 3a2899a5f7c2..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeStoreAccountInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataLakeStoreAccountsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"suffix\":\"iizynkedyatrwyh\"},\"name\":\"ibzyhwitsmyp\",\"type\":\"npcdpumnzgm\",\"id\":\"nmabik\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataLakeStoreAccountInformation response = manager.dataLakeStoreAccounts() - .getWithResponse("eosjswsr", "slyzrpzbchckqq", "qioxi", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("nmabik", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountMockTests.java deleted file mode 100644 index 5be11b901e32..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.DataLakeStoreAccountInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataLakeStoreAccountsListByAccountMockTests { - @Test - public void testListByAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"suffix\":\"e\"},\"name\":\"zar\",\"type\":\"lquuijfqkacewii\",\"id\":\"pubjibw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.dataLakeStoreAccounts() - .listByAccount("lpichk", "ymkcdyhb", "kkpwdreqnovvq", 188406178, 1985211204, "ljxywsu", "syrsndsytgadgvra", - true, com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pubjibw", response.iterator().next().id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleInnerTests.java deleted file mode 100644 index c9245b3e1076..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.FirewallRuleInner; -import org.junit.jupiter.api.Assertions; - -public final class FirewallRuleInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FirewallRuleInner model = BinaryData.fromString( - "{\"properties\":{\"startIpAddress\":\"lhbxxhejjzzvdud\",\"endIpAddress\":\"dslfhotwmcy\"},\"name\":\"wlbjnpgacftade\",\"type\":\"nltyfsoppusuesnz\",\"id\":\"ej\"}") - .toObject(FirewallRuleInner.class); - Assertions.assertEquals("ej", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FirewallRuleInner model = new FirewallRuleInner().withId("ej"); - model = BinaryData.fromObject(model).toObject(FirewallRuleInner.class); - Assertions.assertEquals("ej", model.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleListResultTests.java deleted file mode 100644 index f55c0ea3ead0..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRuleListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.FirewallRuleListResult; - -public final class FirewallRuleListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FirewallRuleListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"startIpAddress\":\"dbhrbnlankxm\",\"endIpAddress\":\"k\"},\"name\":\"henbtkcxywnytn\",\"type\":\"yn\",\"id\":\"idybyxczf\"}],\"nextLink\":\"haaxdbabphl\"}") - .toObject(FirewallRuleListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FirewallRuleListResult model = new FirewallRuleListResult(); - model = BinaryData.fromObject(model).toObject(FirewallRuleListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulePropertiesTests.java deleted file mode 100644 index cbf1542b8d0d..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.FirewallRuleProperties; - -public final class FirewallRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FirewallRuleProperties model - = BinaryData.fromString("{\"startIpAddress\":\"vorxzdmohct\",\"endIpAddress\":\"vudwx\"}") - .toObject(FirewallRuleProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FirewallRuleProperties model = new FirewallRuleProperties(); - model = BinaryData.fromObject(model).toObject(FirewallRuleProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 9a6cf4522572..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FirewallRulesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"startIpAddress\":\"oqouicybxarzgszu\",\"endIpAddress\":\"x\"},\"name\":\"q\",\"type\":\"idoamciodhkha\",\"id\":\"khnzbonlw\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - FirewallRule response = manager.firewallRules() - .define("jcntuj") - .withExistingAccount("tpuqujmq", "gkfbtndoaong") - .withStartIpAddress("tcje") - .withEndIpAddress("ftwwaezkojvdc") - .create(); - - Assertions.assertEquals("khnzbonlw", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteWithResponseMockTests.java deleted file mode 100644 index 7d0b5d5440c7..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FirewallRulesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.firewallRules() - .deleteWithResponse("uwjuetaeburuvdmo", "s", "zlxwabmqoefkifr", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetWithResponseMockTests.java deleted file mode 100644 index 7d9cad59f4f9..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FirewallRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"startIpAddress\":\"tvcof\",\"endIpAddress\":\"f\"},\"name\":\"kgjubgdknnqvsazn\",\"type\":\"tor\",\"id\":\"sgsahmkycgr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - FirewallRule response = manager.firewallRules() - .getWithResponse("lsbjjcanvxbv", "vudutncor", "r", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sgsahmkycgr", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountMockTests.java deleted file mode 100644 index 3a16026e961e..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FirewallRulesListByAccountMockTests { - @Test - public void testListByAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"startIpAddress\":\"wyfzqwhxxbuyqa\",\"endIpAddress\":\"feqztppriol\"},\"name\":\"rjaltolmncw\",\"type\":\"bqwcsdbnwdcf\",\"id\":\"cqdpfuv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.firewallRules().listByAccount("yhmlwpaztzp", "fn", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("cqdpfuv", response.iterator().next().id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilityWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilityWithResponseMockTests.java deleted file mode 100644 index bb080f61d5a3..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilityWithResponseMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.CapabilityInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LocationsGetCapabilityWithResponseMockTests { - @Test - public void testGetCapabilityWithResponse() throws Exception { - String responseStr - = "{\"subscriptionId\":\"2c924fc4-a01a-4dbf-a434-2c4e4f3f757a\",\"state\":\"Registered\",\"maxAccountCount\":1873384596,\"accountCount\":904154901,\"migrationState\":true}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CapabilityInformation response - = manager.locations().getCapabilityWithResponse("kaivwit", com.azure.core.util.Context.NONE).getValue(); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/NameAvailabilityInformationInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/NameAvailabilityInformationInnerTests.java deleted file mode 100644 index 8abcee36a1b2..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/NameAvailabilityInformationInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.NameAvailabilityInformationInner; - -public final class NameAvailabilityInformationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NameAvailabilityInformationInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"fovasr\",\"message\":\"v\"}") - .toObject(NameAvailabilityInformationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NameAvailabilityInformationInner model = new NameAvailabilityInformationInner(); - model = BinaryData.fromObject(model).toObject(NameAvailabilityInformationInner.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationDisplayTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationDisplayTests.java deleted file mode 100644 index fd77854b18c9..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationDisplayTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"tyfjfcnjbkcnxdhb\",\"resource\":\"kphywpnvjto\",\"operation\":\"ermclfplphoxuscr\",\"description\":\"bgyepsbj\"}") - .toObject(OperationDisplay.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationListResultInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationListResultInnerTests.java deleted file mode 100644 index 2b6e8e14752f..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationListResultInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.OperationListResultInner; - -public final class OperationListResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResultInner model = BinaryData.fromString( - "{\"value\":[{\"name\":\"lmuzy\",\"display\":{\"provider\":\"epdkzja\",\"resource\":\"ux\",\"operation\":\"d\",\"description\":\"avxbniwdjswztsdb\"},\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{}]}},\"origin\":\"system\"}],\"nextLink\":\"xbzpfzab\"}") - .toObject(OperationListResultInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResultInner model = new OperationListResultInner(); - model = BinaryData.fromObject(model).toObject(OperationListResultInner.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaLogSpecificationTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaLogSpecificationTests.java deleted file mode 100644 index 06708a9599e6..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaLogSpecificationTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaLogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaLogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaLogSpecification model - = BinaryData.fromString("{\"name\":\"vxysl\",\"displayName\":\"hsfxoblytkb\",\"blobDuration\":\"pe\"}") - .toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("vxysl", model.name()); - Assertions.assertEquals("hsfxoblytkb", model.displayName()); - Assertions.assertEquals("pe", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaLogSpecification model = new OperationMetaLogSpecification().withName("vxysl") - .withDisplayName("hsfxoblytkb") - .withBlobDuration("pe"); - model = BinaryData.fromObject(model).toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("vxysl", model.name()); - Assertions.assertEquals("hsfxoblytkb", model.displayName()); - Assertions.assertEquals("pe", model.blobDuration()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricAvailabilitiesSpecificationTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricAvailabilitiesSpecificationTests.java deleted file mode 100644 index 95e8aa827b1b..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricAvailabilitiesSpecificationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricAvailabilitiesSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaMetricAvailabilitiesSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaMetricAvailabilitiesSpecification model - = BinaryData.fromString("{\"timeGrain\":\"vetvt\",\"blobDuration\":\"aqtdoqmcbx\"}") - .toObject(OperationMetaMetricAvailabilitiesSpecification.class); - Assertions.assertEquals("vetvt", model.timeGrain()); - Assertions.assertEquals("aqtdoqmcbx", model.blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaMetricAvailabilitiesSpecification model - = new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("vetvt") - .withBlobDuration("aqtdoqmcbx"); - model = BinaryData.fromObject(model).toObject(OperationMetaMetricAvailabilitiesSpecification.class); - Assertions.assertEquals("vetvt", model.timeGrain()); - Assertions.assertEquals("aqtdoqmcbx", model.blobDuration()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricSpecificationTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricSpecificationTests.java deleted file mode 100644 index 2d9f663d424c..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaMetricSpecificationTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricAvailabilitiesSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaMetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaMetricSpecification model = BinaryData.fromString( - "{\"name\":\"gbkdmoizpos\",\"displayDescription\":\"grcfb\",\"displayName\":\"rmfqjhhkxbpvj\",\"unit\":\"jhxxjyn\",\"aggregationType\":\"divkrt\",\"availabilities\":[{\"timeGrain\":\"qzvszjf\",\"blobDuration\":\"vjfdx\"}]}") - .toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("gbkdmoizpos", model.name()); - Assertions.assertEquals("grcfb", model.displayDescription()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.displayName()); - Assertions.assertEquals("jhxxjyn", model.unit()); - Assertions.assertEquals("divkrt", model.aggregationType()); - Assertions.assertEquals("qzvszjf", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("vjfdx", model.availabilities().get(0).blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaMetricSpecification model = new OperationMetaMetricSpecification().withName("gbkdmoizpos") - .withDisplayDescription("grcfb") - .withDisplayName("rmfqjhhkxbpvj") - .withUnit("jhxxjyn") - .withAggregationType("divkrt") - .withAvailabilities( - Arrays.asList(new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("qzvszjf") - .withBlobDuration("vjfdx"))); - model = BinaryData.fromObject(model).toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("gbkdmoizpos", model.name()); - Assertions.assertEquals("grcfb", model.displayDescription()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.displayName()); - Assertions.assertEquals("jhxxjyn", model.unit()); - Assertions.assertEquals("divkrt", model.aggregationType()); - Assertions.assertEquals("qzvszjf", model.availabilities().get(0).timeGrain()); - Assertions.assertEquals("vjfdx", model.availabilities().get(0).blobDuration()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaPropertyInfoTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaPropertyInfoTests.java deleted file mode 100644 index 7e675274698d..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaPropertyInfoTests.java +++ /dev/null @@ -1,124 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaLogSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricAvailabilitiesSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaPropertyInfo; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaPropertyInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaPropertyInfo model = BinaryData.fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"gxywpmue\",\"displayDescription\":\"jzwf\",\"displayName\":\"q\",\"unit\":\"ids\",\"aggregationType\":\"onobglaocqx\",\"availabilities\":[{\"timeGrain\":\"g\",\"blobDuration\":\"dxyt\"},{\"timeGrain\":\"oyrxvwfudwpzntxh\",\"blobDuration\":\"hl\"}]},{\"name\":\"jbhckfrlhr\",\"displayDescription\":\"bkyvp\",\"displayName\":\"anuzbpzkafkuw\",\"unit\":\"rnwb\",\"aggregationType\":\"hhseyv\",\"availabilities\":[{\"timeGrain\":\"tslhspkdeem\",\"blobDuration\":\"fm\"},{\"timeGrain\":\"gkvtmelmqkrhah\",\"blobDuration\":\"juahaquhcdhmdual\"},{\"timeGrain\":\"xqpvfadmw\",\"blobDuration\":\"crgvxpvgom\"},{\"timeGrain\":\"fmisg\",\"blobDuration\":\"nbbelda\"}]},{\"name\":\"zbaliourqha\",\"displayDescription\":\"uhashsfwx\",\"displayName\":\"owzxcu\",\"unit\":\"cjooxdjebwpucwwf\",\"aggregationType\":\"vbvmeu\",\"availabilities\":[{\"timeGrain\":\"yhz\",\"blobDuration\":\"uojgj\"},{\"timeGrain\":\"jueiotwmcdytd\",\"blobDuration\":\"it\"},{\"timeGrain\":\"rjaw\",\"blobDuration\":\"wgxhn\"},{\"timeGrain\":\"kxfbkpycgklwndn\",\"blobDuration\":\"dauwhvylwzbtd\"}]},{\"name\":\"ujznb\",\"displayDescription\":\"ow\",\"displayName\":\"przqlveu\",\"unit\":\"upjm\",\"aggregationType\":\"fxobbcsws\",\"availabilities\":[{\"timeGrain\":\"iplrbpbewtghfgb\",\"blobDuration\":\"gw\"},{\"timeGrain\":\"vlvqhjkbegi\",\"blobDuration\":\"nmxiebwwaloayqc\"},{\"timeGrain\":\"rtzju\",\"blobDuration\":\"wyzmhtxon\"},{\"timeGrain\":\"ts\",\"blobDuration\":\"jcbpwxqpsrknft\"}]}],\"logSpecifications\":[{\"name\":\"iuhprwmdyvxqta\",\"displayName\":\"iwwroyqbexrmc\",\"blobDuration\":\"bycnojvkn\"},{\"name\":\"fqsgzvahapjy\",\"displayName\":\"pvgqzcjrvxdjzlm\",\"blobDuration\":\"xkvugfhzov\"},{\"name\":\"jvzunluthnnp\",\"displayName\":\"xipeilpjzuaejx\",\"blobDuration\":\"ltskzbbtd\"},{\"name\":\"mv\",\"displayName\":\"kgpwoz\",\"blobDuration\":\"kfpbs\"}]}}") - .toObject(OperationMetaPropertyInfo.class); - Assertions.assertEquals("gxywpmue", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("jzwf", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("q", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ids", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("onobglaocqx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("g", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("dxyt", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("iuhprwmdyvxqta", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("iwwroyqbexrmc", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("bycnojvkn", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaPropertyInfo model - = new OperationMetaPropertyInfo().withServiceSpecification(new OperationMetaServiceSpecification() - .withMetricSpecifications(Arrays.asList( - new OperationMetaMetricSpecification().withName("gxywpmue") - .withDisplayDescription("jzwf") - .withDisplayName("q") - .withUnit("ids") - .withAggregationType("onobglaocqx") - .withAvailabilities(Arrays.asList( - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("g") - .withBlobDuration("dxyt"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("oyrxvwfudwpzntxh") - .withBlobDuration("hl"))), - new OperationMetaMetricSpecification().withName("jbhckfrlhr") - .withDisplayDescription("bkyvp") - .withDisplayName("anuzbpzkafkuw") - .withUnit("rnwb") - .withAggregationType("hhseyv") - .withAvailabilities(Arrays.asList( - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("tslhspkdeem") - .withBlobDuration("fm"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("gkvtmelmqkrhah") - .withBlobDuration("juahaquhcdhmdual"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("xqpvfadmw") - .withBlobDuration("crgvxpvgom"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("fmisg") - .withBlobDuration("nbbelda"))), - new OperationMetaMetricSpecification().withName("zbaliourqha") - .withDisplayDescription("uhashsfwx") - .withDisplayName("owzxcu") - .withUnit("cjooxdjebwpucwwf") - .withAggregationType("vbvmeu") - .withAvailabilities(Arrays.asList( - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("yhz") - .withBlobDuration("uojgj"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("jueiotwmcdytd") - .withBlobDuration("it"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("rjaw") - .withBlobDuration("wgxhn"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("kxfbkpycgklwndn") - .withBlobDuration("dauwhvylwzbtd"))), - new OperationMetaMetricSpecification().withName("ujznb") - .withDisplayDescription("ow") - .withDisplayName("przqlveu") - .withUnit("upjm") - .withAggregationType("fxobbcsws") - .withAvailabilities(Arrays.asList( - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("iplrbpbewtghfgb") - .withBlobDuration("gw"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("vlvqhjkbegi") - .withBlobDuration("nmxiebwwaloayqc"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("rtzju") - .withBlobDuration("wyzmhtxon"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("ts") - .withBlobDuration("jcbpwxqpsrknft"))))) - .withLogSpecifications(Arrays.asList( - new OperationMetaLogSpecification().withName("iuhprwmdyvxqta") - .withDisplayName("iwwroyqbexrmc") - .withBlobDuration("bycnojvkn"), - new OperationMetaLogSpecification().withName("fqsgzvahapjy") - .withDisplayName("pvgqzcjrvxdjzlm") - .withBlobDuration("xkvugfhzov"), - new OperationMetaLogSpecification().withName("jvzunluthnnp") - .withDisplayName("xipeilpjzuaejx") - .withBlobDuration("ltskzbbtd"), - new OperationMetaLogSpecification().withName("mv") - .withDisplayName("kgpwoz") - .withBlobDuration("kfpbs")))); - model = BinaryData.fromObject(model).toObject(OperationMetaPropertyInfo.class); - Assertions.assertEquals("gxywpmue", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("jzwf", - model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("q", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("ids", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("onobglaocqx", - model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("g", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("dxyt", - model.serviceSpecification().metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("iuhprwmdyvxqta", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("iwwroyqbexrmc", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("bycnojvkn", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaServiceSpecificationTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaServiceSpecificationTests.java deleted file mode 100644 index 9a1ff020b6be..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationMetaServiceSpecificationTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaLogSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricAvailabilitiesSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaMetricSpecification; -import com.azure.resourcemanager.datalakeanalytics.models.OperationMetaServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaServiceSpecification model = BinaryData.fromString( - "{\"metricSpecifications\":[{\"name\":\"dxluu\",\"displayDescription\":\"ttouwaboekqvkel\",\"displayName\":\"mvb\",\"unit\":\"yjsflhhcaalnji\",\"aggregationType\":\"sxyawjoyaqcs\",\"availabilities\":[{\"timeGrain\":\"kiidzyex\",\"blobDuration\":\"eli\"},{\"timeGrain\":\"nr\",\"blobDuration\":\"folhbnxknal\"},{\"timeGrain\":\"lp\",\"blobDuration\":\"gdtpnapnyiro\"},{\"timeGrain\":\"hpigv\",\"blobDuration\":\"ylgqgitxmedjvcsl\"}]}],\"logSpecifications\":[{\"name\":\"wncwzzhxgktrmg\",\"displayName\":\"napkteoellw\",\"blobDuration\":\"fdygpfqbuaceopz\"},{\"name\":\"rhhuaopppcqeqx\",\"displayName\":\"z\",\"blobDuration\":\"hzxct\"}]}") - .toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("dxluu", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("ttouwaboekqvkel", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("mvb", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("yjsflhhcaalnji", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("sxyawjoyaqcs", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kiidzyex", model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("eli", model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("wncwzzhxgktrmg", model.logSpecifications().get(0).name()); - Assertions.assertEquals("napkteoellw", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("fdygpfqbuaceopz", model.logSpecifications().get(0).blobDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaServiceSpecification model = new OperationMetaServiceSpecification() - .withMetricSpecifications(Arrays.asList(new OperationMetaMetricSpecification().withName("dxluu") - .withDisplayDescription("ttouwaboekqvkel") - .withDisplayName("mvb") - .withUnit("yjsflhhcaalnji") - .withAggregationType("sxyawjoyaqcs") - .withAvailabilities(Arrays.asList( - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("kiidzyex") - .withBlobDuration("eli"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("nr") - .withBlobDuration("folhbnxknal"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("lp") - .withBlobDuration("gdtpnapnyiro"), - new OperationMetaMetricAvailabilitiesSpecification().withTimeGrain("hpigv") - .withBlobDuration("ylgqgitxmedjvcsl"))))) - .withLogSpecifications(Arrays.asList( - new OperationMetaLogSpecification().withName("wncwzzhxgktrmg") - .withDisplayName("napkteoellw") - .withBlobDuration("fdygpfqbuaceopz"), - new OperationMetaLogSpecification().withName("rhhuaopppcqeqx") - .withDisplayName("z") - .withBlobDuration("hzxct"))); - model = BinaryData.fromObject(model).toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("dxluu", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("ttouwaboekqvkel", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("mvb", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("yjsflhhcaalnji", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("sxyawjoyaqcs", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("kiidzyex", model.metricSpecifications().get(0).availabilities().get(0).timeGrain()); - Assertions.assertEquals("eli", model.metricSpecifications().get(0).availabilities().get(0).blobDuration()); - Assertions.assertEquals("wncwzzhxgktrmg", model.logSpecifications().get(0).name()); - Assertions.assertEquals("napkteoellw", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("fdygpfqbuaceopz", model.logSpecifications().get(0).blobDuration()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationTests.java deleted file mode 100644 index e093295eaeb4..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.Operation; - -public final class OperationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Operation model = BinaryData.fromString( - "{\"name\":\"cuh\",\"display\":{\"provider\":\"ctyqik\",\"resource\":\"bovpl\",\"operation\":\"bhvgy\",\"description\":\"uosvmkfssxqukk\"},\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"sxnkjzkdeslpvlo\",\"displayDescription\":\"i\",\"displayName\":\"ghxpkdw\",\"unit\":\"aiuebbaumnyqu\",\"aggregationType\":\"deoj\",\"availabilities\":[{},{},{}]}],\"logSpecifications\":[{\"name\":\"smtxpsieb\",\"displayName\":\"hvpesapskrdqm\",\"blobDuration\":\"jdhtldwkyzxu\"},{\"name\":\"kn\",\"displayName\":\"scwsv\",\"blobDuration\":\"otogtwrupqs\"},{\"name\":\"nmic\",\"displayName\":\"vce\",\"blobDuration\":\"eil\"}]}},\"origin\":\"system\"}") - .toObject(Operation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Operation model = new Operation(); - model = BinaryData.fromObject(model).toObject(Operation.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListWithResponseMockTests.java deleted file mode 100644 index 86784ceccb0a..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListWithResponseMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.OperationListResult; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListWithResponseMockTests { - @Test - public void testListWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"gokdwbwhks\",\"display\":{\"provider\":\"mrv\",\"resource\":\"ztvbtqgsfr\",\"operation\":\"yzkoowtlmngu\",\"description\":\"wqaldsyu\"},\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}},\"origin\":\"user\"},{\"name\":\"wyznkbyku\",\"display\":{\"provider\":\"fhpagmhrskdsnf\",\"resource\":\"doakgtdlmkkzevdl\",\"operation\":\"wpusdsttwvogv\",\"description\":\"ejdcngqqmoakuf\"},\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}},\"origin\":\"user,system\"},{\"name\":\"twaenuuzko\",\"display\":{\"provider\":\"inrfdwoyu\",\"resource\":\"ziuiefozbhdm\",\"operation\":\"l\",\"description\":\"qhoftrmaequiah\"},\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{},{}],\"logSpecifications\":[{},{},{},{}]}},\"origin\":\"user\"}],\"nextLink\":\"piyylhalnswhccsp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationListResult response - = manager.operations().listWithResponse(com.azure.core.util.Context.NONE).getValue(); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationInnerTests.java deleted file mode 100644 index 2fc0432683f3..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationInner; -import org.junit.jupiter.api.Assertions; - -public final class StorageAccountInformationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAccountInformationInner model = BinaryData.fromString( - "{\"properties\":{\"suffix\":\"m\"},\"name\":\"hrzayvvtpgvdf\",\"type\":\"otkftutqxlngx\",\"id\":\"fgugnxkrxdqmid\"}") - .toObject(StorageAccountInformationInner.class); - Assertions.assertEquals("fgugnxkrxdqmid", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAccountInformationInner model = new StorageAccountInformationInner().withId("fgugnxkrxdqmid"); - model = BinaryData.fromObject(model).toObject(StorageAccountInformationInner.class); - Assertions.assertEquals("fgugnxkrxdqmid", model.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationListResultTests.java deleted file mode 100644 index 985d722659b4..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.StorageAccountInformationListResult; - -public final class StorageAccountInformationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAccountInformationListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"suffix\":\"ydptkoen\"},\"name\":\"uknvudwti\",\"type\":\"bldngkpoc\",\"id\":\"azyxoegukg\"},{\"properties\":{\"suffix\":\"iucgygevqzn\"},\"name\":\"pmr\",\"type\":\"izcdrqjsd\",\"id\":\"dnfyhxdeoejzicwi\"},{\"properties\":{\"suffix\":\"ttgzfbis\"},\"name\":\"bkh\",\"type\":\"deyeamdphagalpbu\",\"id\":\"gipwhonowkg\"},{\"properties\":{\"suffix\":\"ankixzbinjeput\"},\"name\":\"rywn\",\"type\":\"oqftiyqzrnkcq\",\"id\":\"xlwhzlsicoh\"}],\"nextLink\":\"qnwvlrya\"}") - .toObject(StorageAccountInformationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAccountInformationListResult model = new StorageAccountInformationListResult(); - model = BinaryData.fromObject(model).toObject(StorageAccountInformationListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationPropertiesTests.java deleted file mode 100644 index b12998d064cd..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountInformationPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationProperties; - -public final class StorageAccountInformationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAccountInformationProperties model - = BinaryData.fromString("{\"suffix\":\"hzrvqd\"}").toObject(StorageAccountInformationProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAccountInformationProperties model = new StorageAccountInformationProperties(); - model = BinaryData.fromObject(model).toObject(StorageAccountInformationProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteWithResponseMockTests.java deleted file mode 100644 index 034c19712001..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageAccountsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.storageAccounts().deleteWithResponse("hyoulpjr", "xagl", "vimjwos", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerWithResponseMockTests.java deleted file mode 100644 index 28fd0f03a55d..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.StorageContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageAccountsGetStorageContainerWithResponseMockTests { - @Test - public void testGetStorageContainerWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"lastModifiedTime\":\"2021-02-04T08:50:40Z\"},\"name\":\"uhpkxkgymar\",\"type\":\"n\",\"id\":\"xqugjhkycubedd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageContainer response = manager.storageAccounts() - .getStorageContainerWithResponse("qidbqfatpxllrxcy", "moadsuvarmy", "dmjsjqb", "hhyxxrw", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xqugjhkycubedd", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetWithResponseMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetWithResponseMockTests.java deleted file mode 100644 index bf6a68562cef..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.StorageAccountInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageAccountsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"suffix\":\"zk\"},\"name\":\"oqreyfkzikfjawn\",\"type\":\"ivx\",\"id\":\"zel\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageAccountInformation response = manager.storageAccounts() - .getWithResponse("himdbl", "gwimfn", "hfjx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zel", response.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountMockTests.java deleted file mode 100644 index 848408640a46..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.StorageAccountInformation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageAccountsListByAccountMockTests { - @Test - public void testListByAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"suffix\":\"vvcnayr\"},\"name\":\"rnxxmueed\",\"type\":\"rdvstkwqqtch\",\"id\":\"lmfmtdaay\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.storageAccounts() - .listByAccount("syocogjltdtbnnha", "oocrkvcikhnv", "amqgxqquezikyw", 566556548, 1344310513, "kallatmel", - "uipiccjzk", false, com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lmfmtdaay", response.iterator().next().id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersMockTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersMockTests.java deleted file mode 100644 index 07441b8b75ea..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager; -import com.azure.resourcemanager.datalakeanalytics.models.StorageContainer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class StorageAccountsListStorageContainersMockTests { - @Test - public void testListStorageContainers() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"lastModifiedTime\":\"2021-05-09T01:43:12Z\"},\"name\":\"ly\",\"type\":\"hdgqggeb\",\"id\":\"nyga\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - DataLakeAnalyticsManager manager = DataLakeAnalyticsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.storageAccounts() - .listStorageContainers("tx", "tcs", "fcktqumiekke", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nyga", response.iterator().next().id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerInnerTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerInnerTests.java deleted file mode 100644 index 468324f51da7..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageContainerInner; -import org.junit.jupiter.api.Assertions; - -public final class StorageContainerInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageContainerInner model = BinaryData.fromString( - "{\"properties\":{\"lastModifiedTime\":\"2021-04-08T19:10:22Z\"},\"name\":\"wlrsffrzpwv\",\"type\":\"dqgbiqylihkaetc\",\"id\":\"vfcivfsnkymuc\"}") - .toObject(StorageContainerInner.class); - Assertions.assertEquals("vfcivfsnkymuc", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageContainerInner model = new StorageContainerInner().withId("vfcivfsnkymuc"); - model = BinaryData.fromObject(model).toObject(StorageContainerInner.class); - Assertions.assertEquals("vfcivfsnkymuc", model.id()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerListResultTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerListResultTests.java deleted file mode 100644 index 7a52e1992b66..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.StorageContainerListResult; - -public final class StorageContainerListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageContainerListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"lastModifiedTime\":\"2021-07-28T11:26:39Z\"},\"name\":\"noc\",\"type\":\"oklyaxuconuq\",\"id\":\"fkbey\"}],\"nextLink\":\"wrmjmwvvjektc\"}") - .toObject(StorageContainerListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageContainerListResult model = new StorageContainerListResult(); - model = BinaryData.fromObject(model).toObject(StorageContainerListResult.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerPropertiesTests.java deleted file mode 100644 index 7252ed37a231..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageContainerPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageContainerProperties; - -public final class StorageContainerPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageContainerProperties model = BinaryData.fromString("{\"lastModifiedTime\":\"2021-04-08T09:35Z\"}") - .toObject(StorageContainerProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageContainerProperties model = new StorageContainerProperties(); - model = BinaryData.fromObject(model).toObject(StorageContainerProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyParametersTests.java deleted file mode 100644 index 00f2c0001714..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyParametersTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyParameters; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class UpdateComputePolicyParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateComputePolicyParameters model = BinaryData.fromString( - "{\"properties\":{\"objectId\":\"15300d91-c4fb-4316-8194-dece72989a49\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":2024670267,\"minPriorityPerJob\":2047177811}}") - .toObject(UpdateComputePolicyParameters.class); - Assertions.assertEquals(UUID.fromString("15300d91-c4fb-4316-8194-dece72989a49"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(2024670267, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(2047177811, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateComputePolicyParameters model - = new UpdateComputePolicyParameters().withObjectId(UUID.fromString("15300d91-c4fb-4316-8194-dece72989a49")) - .withObjectType(AadObjectType.SERVICE_PRINCIPAL) - .withMaxDegreeOfParallelismPerJob(2024670267) - .withMinPriorityPerJob(2047177811); - model = BinaryData.fromObject(model).toObject(UpdateComputePolicyParameters.class); - Assertions.assertEquals(UUID.fromString("15300d91-c4fb-4316-8194-dece72989a49"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(2024670267, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(2047177811, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyPropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyPropertiesTests.java deleted file mode 100644 index 25b30e1b7073..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyPropertiesTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateComputePolicyProperties; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class UpdateComputePolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateComputePolicyProperties model = BinaryData.fromString( - "{\"objectId\":\"d161c37d-3409-4e04-871f-49c51e46ee9a\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":445329815,\"minPriorityPerJob\":668778225}") - .toObject(UpdateComputePolicyProperties.class); - Assertions.assertEquals(UUID.fromString("d161c37d-3409-4e04-871f-49c51e46ee9a"), model.objectId()); - Assertions.assertEquals(AadObjectType.GROUP, model.objectType()); - Assertions.assertEquals(445329815, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(668778225, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateComputePolicyProperties model - = new UpdateComputePolicyProperties().withObjectId(UUID.fromString("d161c37d-3409-4e04-871f-49c51e46ee9a")) - .withObjectType(AadObjectType.GROUP) - .withMaxDegreeOfParallelismPerJob(445329815) - .withMinPriorityPerJob(668778225); - model = BinaryData.fromObject(model).toObject(UpdateComputePolicyProperties.class); - Assertions.assertEquals(UUID.fromString("d161c37d-3409-4e04-871f-49c51e46ee9a"), model.objectId()); - Assertions.assertEquals(AadObjectType.GROUP, model.objectType()); - Assertions.assertEquals(445329815, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(668778225, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyWithAccountParametersTests.java deleted file mode 100644 index d8c6a0678d55..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateComputePolicyWithAccountParametersTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; -import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class UpdateComputePolicyWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateComputePolicyWithAccountParameters model = BinaryData.fromString( - "{\"name\":\"watkpnpulexxb\",\"properties\":{\"objectId\":\"22decaeb-de94-400d-84e5-5bcdfcd28ae5\",\"objectType\":\"ServicePrincipal\",\"maxDegreeOfParallelismPerJob\":1520989721,\"minPriorityPerJob\":223654021}}") - .toObject(UpdateComputePolicyWithAccountParameters.class); - Assertions.assertEquals("watkpnpulexxb", model.name()); - Assertions.assertEquals(UUID.fromString("22decaeb-de94-400d-84e5-5bcdfcd28ae5"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(1520989721, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(223654021, model.minPriorityPerJob()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateComputePolicyWithAccountParameters model - = new UpdateComputePolicyWithAccountParameters().withName("watkpnpulexxb") - .withObjectId(UUID.fromString("22decaeb-de94-400d-84e5-5bcdfcd28ae5")) - .withObjectType(AadObjectType.SERVICE_PRINCIPAL) - .withMaxDegreeOfParallelismPerJob(1520989721) - .withMinPriorityPerJob(223654021); - model = BinaryData.fromObject(model).toObject(UpdateComputePolicyWithAccountParameters.class); - Assertions.assertEquals("watkpnpulexxb", model.name()); - Assertions.assertEquals(UUID.fromString("22decaeb-de94-400d-84e5-5bcdfcd28ae5"), model.objectId()); - Assertions.assertEquals(AadObjectType.SERVICE_PRINCIPAL, model.objectType()); - Assertions.assertEquals(1520989721, model.maxDegreeOfParallelismPerJob()); - Assertions.assertEquals(223654021, model.minPriorityPerJob()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStorePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStorePropertiesTests.java deleted file mode 100644 index bed7fbe5adab..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStorePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateDataLakeStoreProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateDataLakeStorePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateDataLakeStoreProperties model - = BinaryData.fromString("{\"suffix\":\"tki\"}").toObject(UpdateDataLakeStoreProperties.class); - Assertions.assertEquals("tki", model.suffix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateDataLakeStoreProperties model = new UpdateDataLakeStoreProperties().withSuffix("tki"); - model = BinaryData.fromObject(model).toObject(UpdateDataLakeStoreProperties.class); - Assertions.assertEquals("tki", model.suffix()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStoreWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStoreWithAccountParametersTests.java deleted file mode 100644 index ca1c44ed68de..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateDataLakeStoreWithAccountParametersTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters; -import org.junit.jupiter.api.Assertions; - -public final class UpdateDataLakeStoreWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateDataLakeStoreWithAccountParameters model - = BinaryData.fromString("{\"name\":\"surex\",\"properties\":{\"suffix\":\"ryocfsfksymdd\"}}") - .toObject(UpdateDataLakeStoreWithAccountParameters.class); - Assertions.assertEquals("surex", model.name()); - Assertions.assertEquals("ryocfsfksymdd", model.suffix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateDataLakeStoreWithAccountParameters model - = new UpdateDataLakeStoreWithAccountParameters().withName("surex").withSuffix("ryocfsfksymdd"); - model = BinaryData.fromObject(model).toObject(UpdateDataLakeStoreWithAccountParameters.class); - Assertions.assertEquals("surex", model.name()); - Assertions.assertEquals("ryocfsfksymdd", model.suffix()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleParametersTests.java deleted file mode 100644 index c5190b9cc644..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleParametersTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleParameters; -import org.junit.jupiter.api.Assertions; - -public final class UpdateFirewallRuleParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateFirewallRuleParameters model = BinaryData - .fromString("{\"properties\":{\"startIpAddress\":\"zywbiex\",\"endIpAddress\":\"eyueaxibxujwb\"}}") - .toObject(UpdateFirewallRuleParameters.class); - Assertions.assertEquals("zywbiex", model.startIpAddress()); - Assertions.assertEquals("eyueaxibxujwb", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateFirewallRuleParameters model - = new UpdateFirewallRuleParameters().withStartIpAddress("zywbiex").withEndIpAddress("eyueaxibxujwb"); - model = BinaryData.fromObject(model).toObject(UpdateFirewallRuleParameters.class); - Assertions.assertEquals("zywbiex", model.startIpAddress()); - Assertions.assertEquals("eyueaxibxujwb", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRulePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRulePropertiesTests.java deleted file mode 100644 index 6b5db4277a77..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRulePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateFirewallRuleProperties; -import org.junit.jupiter.api.Assertions; - -public final class UpdateFirewallRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateFirewallRuleProperties model - = BinaryData.fromString("{\"startIpAddress\":\"sa\",\"endIpAddress\":\"wkuofoskghsauu\"}") - .toObject(UpdateFirewallRuleProperties.class); - Assertions.assertEquals("sa", model.startIpAddress()); - Assertions.assertEquals("wkuofoskghsauu", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateFirewallRuleProperties model - = new UpdateFirewallRuleProperties().withStartIpAddress("sa").withEndIpAddress("wkuofoskghsauu"); - model = BinaryData.fromObject(model).toObject(UpdateFirewallRuleProperties.class); - Assertions.assertEquals("sa", model.startIpAddress()); - Assertions.assertEquals("wkuofoskghsauu", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleWithAccountParametersTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleWithAccountParametersTests.java deleted file mode 100644 index c63fa92fa9a9..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/UpdateFirewallRuleWithAccountParametersTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; -import org.junit.jupiter.api.Assertions; - -public final class UpdateFirewallRuleWithAccountParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateFirewallRuleWithAccountParameters model = BinaryData.fromString( - "{\"name\":\"vmyokacspkwl\",\"properties\":{\"startIpAddress\":\"obpxjmflbvvn\",\"endIpAddress\":\"rkcciwwzjuqk\"}}") - .toObject(UpdateFirewallRuleWithAccountParameters.class); - Assertions.assertEquals("vmyokacspkwl", model.name()); - Assertions.assertEquals("obpxjmflbvvn", model.startIpAddress()); - Assertions.assertEquals("rkcciwwzjuqk", model.endIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateFirewallRuleWithAccountParameters model - = new UpdateFirewallRuleWithAccountParameters().withName("vmyokacspkwl") - .withStartIpAddress("obpxjmflbvvn") - .withEndIpAddress("rkcciwwzjuqk"); - model = BinaryData.fromObject(model).toObject(UpdateFirewallRuleWithAccountParameters.class); - Assertions.assertEquals("vmyokacspkwl", model.name()); - Assertions.assertEquals("obpxjmflbvvn", model.startIpAddress()); - Assertions.assertEquals("rkcciwwzjuqk", model.endIpAddress()); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRulePropertiesTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRulePropertiesTests.java deleted file mode 100644 index 3a6f107da92d..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRulePropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.VirtualNetworkRuleProperties; - -public final class VirtualNetworkRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkRuleProperties model - = BinaryData.fromString("{\"subnetId\":\"umasxazjpq\",\"virtualNetworkRuleState\":\"Active\"}") - .toObject(VirtualNetworkRuleProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkRuleProperties model = new VirtualNetworkRuleProperties(); - model = BinaryData.fromObject(model).toObject(VirtualNetworkRuleProperties.class); - } -} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRuleTests.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRuleTests.java deleted file mode 100644 index 12774d651a06..000000000000 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/test/java/com/azure/resourcemanager/datalakeanalytics/generated/VirtualNetworkRuleTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkRule model = BinaryData.fromString( - "{\"properties\":{\"subnetId\":\"bonqvpkvlrxnjeas\",\"virtualNetworkRuleState\":\"Active\"},\"name\":\"eo\",\"type\":\"okeyyienj\",\"id\":\"lwtgrhpdj\"}") - .toObject(VirtualNetworkRule.class); - Assertions.assertEquals("lwtgrhpdj", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkRule model = new VirtualNetworkRule().withId("lwtgrhpdj"); - model = BinaryData.fromObject(model).toObject(VirtualNetworkRule.class); - Assertions.assertEquals("lwtgrhpdj", model.id()); - } -}