From 76dc2c6049fb56d68a16de4fb3bde02333daa9f9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 16 Feb 2022 07:11:07 +0000 Subject: [PATCH] CodeGen from PR 17756 in Azure/azure-rest-api-specs Merge db7ccf87b17fe940fed90ef507fcfcee1756482b into a67988c1aaf3b020ef5217a37f4c169f21881d0b --- .../CHANGELOG.md | 3 +- .../README.md | 7 +- .../SAMPLE.md | 928 ++++++++++++++++++ .../pom.xml | 98 +- .../DataLakeAnalyticsManager.java | 37 +- .../fluent/AccountsClient.java | 48 +- .../fluent/ComputePoliciesClient.java | 12 +- .../fluent/DataLakeStoreAccountsClient.java | 13 +- .../fluent/FirewallRulesClient.java | 12 +- .../fluent/LocationsClient.java | 3 +- .../fluent/OperationsClient.java | 2 +- .../fluent/StorageAccountsClient.java | 25 +- .../models/AddDataLakeStoreProperties.java | 50 + .../models/AddStorageAccountProperties.java | 85 ++ .../fluent/models/ComputePolicyInner.java | 103 +- .../models/ComputePolicyProperties.java | 88 ++ ...ateDataLakeAnalyticsAccountProperties.java | 408 ++++++++ ...CreateOrUpdateComputePolicyProperties.java | 151 +++ .../CreateOrUpdateFirewallRuleProperties.java | 94 ++ .../DataLakeAnalyticsAccountBasicInner.java | 90 +- .../models/DataLakeAnalyticsAccountInner.java | 416 +++----- .../DataLakeAnalyticsAccountProperties.java | 74 +- ...taLakeAnalyticsAccountPropertiesBasic.java | 4 +- .../DataLakeStoreAccountInformationInner.java | 34 +- ...LakeStoreAccountInformationProperties.java | 39 + .../fluent/models/FirewallRuleInner.java | 64 +- .../fluent/models/FirewallRuleProperties.java | 58 ++ .../models/HiveMetastoreProperties.java | 115 +++ .../StorageAccountInformationInner.java | 34 +- .../StorageAccountInformationProperties.java | 39 + .../fluent/models/StorageContainerInner.java | 34 +- .../models/StorageContainerProperties.java | 40 + .../models/UpdateComputePolicyProperties.java | 138 +++ ...ateDataLakeAnalyticsAccountProperties.java | 372 +++++++ .../models/UpdateDataLakeStoreProperties.java | 50 + .../models/UpdateFirewallRuleProperties.java | 82 ++ .../UpdateStorageAccountProperties.java | 79 ++ .../models/VirtualNetworkRuleProperties.java | 55 ++ .../implementation/AccountsClientImpl.java | 172 ++-- .../ComputePoliciesClientImpl.java | 60 +- .../implementation/ComputePoliciesImpl.java | 2 +- .../implementation/ComputePolicyImpl.java | 16 +- .../DataLakeAnalyticsAccountImpl.java | 60 +- ...eAnalyticsAccountManagementClientImpl.java | 2 +- .../DataLakeStoreAccountInformationImpl.java | 8 +- .../DataLakeStoreAccountsClientImpl.java | 59 +- .../implementation/FirewallRuleImpl.java | 16 +- .../FirewallRulesClientImpl.java | 60 +- .../implementation/FirewallRulesImpl.java | 2 +- .../implementation/LocationsClientImpl.java | 12 +- .../implementation/OperationsClientImpl.java | 10 +- .../StorageAccountInformationImpl.java | 8 +- .../StorageAccountsClientImpl.java | 109 +- .../implementation/StorageContainerImpl.java | 8 +- .../datalakeanalytics/models/Accounts.java | 20 +- .../models/AddDataLakeStoreParameters.java | 32 +- ...AddDataLakeStoreWithAccountParameters.java | 32 +- .../models/AddStorageAccountParameters.java | 45 +- ...ddStorageAccountWithAccountParameters.java | 49 +- .../CheckNameAvailabilityParameters.java | 2 +- .../models/ComputePolicies.java | 14 +- .../models/ComputePolicy.java | 28 +- ...ateComputePolicyWithAccountParameters.java | 82 +- ...ateDataLakeAnalyticsAccountParameters.java | 210 ++-- ...eateFirewallRuleWithAccountParameters.java | 54 +- ...CreateOrUpdateComputePolicyParameters.java | 78 +- .../CreateOrUpdateFirewallRuleParameters.java | 50 +- .../models/DataLakeAnalyticsAccount.java | 105 +- .../DataLakeAnalyticsAccountListResult.java | 16 + .../DataLakeStoreAccountInformation.java | 14 +- .../models/DataLakeStoreAccounts.java | 13 +- .../models/FirewallRule.java | 28 +- .../models/FirewallRules.java | 14 +- .../models/HiveMetastore.java | 117 +-- .../datalakeanalytics/models/Locations.java | 3 +- .../datalakeanalytics/models/Operations.java | 2 +- .../models/StorageAccountInformation.java | 14 +- .../models/StorageAccounts.java | 25 +- .../models/StorageContainer.java | 14 +- .../models/UpdateComputePolicyParameters.java | 69 +- ...ateComputePolicyWithAccountParameters.java | 73 +- ...ateDataLakeAnalyticsAccountParameters.java | 190 ++-- ...ateDataLakeStoreWithAccountParameters.java | 32 +- .../models/UpdateFirewallRuleParameters.java | 41 +- ...dateFirewallRuleWithAccountParameters.java | 45 +- .../UpdateStorageAccountParameters.java | 42 +- ...teStorageAccountWithAccountParameters.java | 46 +- .../models/VirtualNetworkRule.java | 59 +- .../AccountsCheckNameAvailabilitySamples.java | 27 + .../generated/AccountsCreateSamples.java | 89 ++ .../generated/AccountsDeleteSamples.java | 23 + .../AccountsGetByResourceGroupSamples.java | 23 + .../AccountsListByResourceGroupSamples.java | 27 + .../generated/AccountsListSamples.java | 25 + .../generated/AccountsUpdateSamples.java | 76 ++ .../ComputePoliciesCreateOrUpdateSamples.java | 32 + .../ComputePoliciesDeleteSamples.java | 23 + .../generated/ComputePoliciesGetSamples.java | 23 + .../ComputePoliciesListByAccountSamples.java | 23 + .../ComputePoliciesUpdateSamples.java | 29 + .../DataLakeStoreAccountsAddSamples.java | 31 + .../DataLakeStoreAccountsDeleteSamples.java | 25 + .../DataLakeStoreAccountsGetSamples.java | 23 + ...LakeStoreAccountsListByAccountSamples.java | 26 + .../FirewallRulesCreateOrUpdateSamples.java | 27 + .../generated/FirewallRulesDeleteSamples.java | 23 + .../generated/FirewallRulesGetSamples.java | 23 + .../FirewallRulesListByAccountSamples.java | 23 + .../generated/FirewallRulesUpdateSamples.java | 26 + .../LocationsGetCapabilitySamples.java | 24 + .../generated/OperationsListSamples.java | 23 + .../generated/StorageAccountsAddSamples.java | 33 + .../StorageAccountsDeleteSamples.java | 23 + .../generated/StorageAccountsGetSamples.java | 23 + ...ageAccountsGetStorageContainerSamples.java | 26 + .../StorageAccountsListByAccountSamples.java | 26 + .../StorageAccountsListSasTokensSamples.java | 24 + ...eAccountsListStorageContainersSamples.java | 23 + .../StorageAccountsUpdateSamples.java | 33 + 119 files changed, 5551 insertions(+), 1600 deletions(-) create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java rename sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/{ => fluent}/models/DataLakeAnalyticsAccountProperties.java (85%) rename sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/{ => fluent}/models/DataLakeAnalyticsAccountPropertiesBasic.java (93%) create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java create mode 100644 sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md index c2c1cbf3924ff..eb0f04028c2ef 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-02-16) +- Azure Resource Manager DataLakeAnalytics client library for Java. This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-preview-2019-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.1 (2021-04-22) diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md index 69017d50e0cda..da5ca5d87934a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/README.md @@ -2,7 +2,7 @@ Azure Resource Manager DataLakeAnalytics client library for Java. -This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. Creates an Azure Data Lake Analytics account management client. Package tag package-preview-2019-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-datalakeanalytics - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on ## Examples +[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md) + + ## Troubleshooting ## Next steps diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md new file mode 100644 index 0000000000000..adc53e317d28e --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/SAMPLE.md @@ -0,0 +1,928 @@ +# Code snippets and samples + + +## Accounts + +- [CheckNameAvailability](#accounts_checknameavailability) +- [Create](#accounts_create) +- [Delete](#accounts_delete) +- [GetByResourceGroup](#accounts_getbyresourcegroup) +- [List](#accounts_list) +- [ListByResourceGroup](#accounts_listbyresourcegroup) +- [Update](#accounts_update) + +## ComputePolicies + +- [CreateOrUpdate](#computepolicies_createorupdate) +- [Delete](#computepolicies_delete) +- [Get](#computepolicies_get) +- [ListByAccount](#computepolicies_listbyaccount) +- [Update](#computepolicies_update) + +## DataLakeStoreAccounts + +- [Add](#datalakestoreaccounts_add) +- [Delete](#datalakestoreaccounts_delete) +- [Get](#datalakestoreaccounts_get) +- [ListByAccount](#datalakestoreaccounts_listbyaccount) + +## FirewallRules + +- [CreateOrUpdate](#firewallrules_createorupdate) +- [Delete](#firewallrules_delete) +- [Get](#firewallrules_get) +- [ListByAccount](#firewallrules_listbyaccount) +- [Update](#firewallrules_update) + +## Locations + +- [GetCapability](#locations_getcapability) + +## Operations + +- [List](#operations_list) + +## StorageAccounts + +- [Add](#storageaccounts_add) +- [Delete](#storageaccounts_delete) +- [Get](#storageaccounts_get) +- [GetStorageContainer](#storageaccounts_getstoragecontainer) +- [ListByAccount](#storageaccounts_listbyaccount) +- [ListSasTokens](#storageaccounts_listsastokens) +- [ListStorageContainers](#storageaccounts_liststoragecontainers) +- [Update](#storageaccounts_update) +### Accounts_CheckNameAvailability + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; + +/** Samples for Accounts CheckNameAvailability. */ +public final class AccountsCheckNameAvailabilitySamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_CheckNameAvailability.json + */ + /** + * Sample code: Checks whether the specified account name is available or taken. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void checksWhetherTheSpecifiedAccountNameIsAvailableOrTaken( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .checkNameAvailabilityWithResponse( + "EastUS2", new CheckNameAvailabilityParameters().withName("contosoadla"), Context.NONE); + } +} +``` + +### Accounts_Create + +```java +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +/** Samples for Accounts Create. */ +public final class AccountsCreateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Create.json + */ + /** + * Sample code: Creates the specified Data Lake Analytics account. This supplies the user with computation services + * for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + createsTheSpecifiedDataLakeAnalyticsAccountThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .define("contosoadla") + .withRegion("eastus2") + .withExistingResourceGroup("contosorg") + .withDefaultDataLakeStoreAccount("test_adls") + .withDataLakeStoreAccounts( + Arrays + .asList( + new AddDataLakeStoreWithAccountParameters().withName("test_adls").withSuffix("test_suffix"))) + .withTags(mapOf("test_key", "test_value")) + .withStorageAccounts( + Arrays + .asList( + new AddStorageAccountWithAccountParameters() + .withName("test_storage") + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"))) + .withComputePolicies( + Arrays + .asList( + new CreateComputePolicyWithAccountParameters() + .withName("test_policy") + .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1))) + .withFirewallRules( + Arrays + .asList( + new CreateFirewallRuleWithAccountParameters() + .withName("test_rule") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2"))) + .withFirewallState(FirewallState.ENABLED) + .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withNewTier(TierType.CONSUMPTION) + .withMaxJobCount(3) + .withMaxDegreeOfParallelism(30) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1) + .withQueryStoreRetention(30) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Accounts_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for Accounts Delete. */ +public final class AccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Delete.json + */ + /** + * Sample code: Begins the delete process for the Data Lake Analytics account object specified by the account name. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void beginsTheDeleteProcessForTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountName( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().delete("contosorg", "contosoadla", Context.NONE); + } +} +``` + +### Accounts_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Accounts GetByResourceGroup. */ +public final class AccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Get.json + */ + /** + * Sample code: Gets details of the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsDetailsOfTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE); + } +} +``` + +### Accounts_List + +```java +import com.azure.core.util.Context; + +/** Samples for Accounts List. */ +public final class AccountsListSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_List.json + */ + /** + * Sample code: Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This + * includes a link to the next page, if any. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().list("test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} +``` + +### Accounts_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Accounts ListByResourceGroup. */ +public final class AccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_ListByResourceGroup.json + */ + /** + * Sample code: Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This + * includes a link to the next page, if any. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinASpecificResourceGroupThisIncludesALinkToTheNextPageIfAny( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .listByResourceGroup("contosorg", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} +``` + +### Accounts_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +/** Samples for Accounts Update. */ +public final class AccountsUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Update.json + */ + /** + * Sample code: Updates the Data Lake Analytics account object specified by the accountName with the contents of the + * account object. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + DataLakeAnalyticsAccount resource = + manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE).getValue(); + resource + .update() + .withTags(mapOf("test_key", "test_value")) + .withComputePoliciesForUpdate( + Arrays + .asList( + new UpdateComputePolicyWithAccountParameters() + .withName("test_policy") + .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1))) + .withFirewallRulesForUpdate( + Arrays + .asList( + new UpdateFirewallRuleWithAccountParameters() + .withName("test_rule") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2"))) + .withFirewallState(FirewallState.ENABLED) + .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withNewTier(TierType.CONSUMPTION) + .withMaxJobCount(1) + .withMaxDegreeOfParallelism(1) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1) + .withQueryStoreRetention(1) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### ComputePolicies_CreateOrUpdate + +```java +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import java.util.UUID; + +/** Samples for ComputePolicies CreateOrUpdate. */ +public final class ComputePoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_CreateOrUpdate.json + */ + /** + * Sample code: Creates or updates the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void createsOrUpdatesTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .computePolicies() + .define("test_policy") + .withExistingAccount("contosorg", "contosoadla") + .withObjectId(UUID.fromString("776b9091-8916-4638-87f7-9c989a38da98")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(10) + .withMinPriorityPerJob(30) + .create(); + } +} +``` + +### ComputePolicies_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for ComputePolicies Delete. */ +public final class ComputePoliciesDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Delete.json + */ + /** + * Sample code: Deletes the specified compute policy from the adla account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void deletesTheSpecifiedComputePolicyFromTheAdlaAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().deleteWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE); + } +} +``` + +### ComputePolicies_Get + +```java +import com.azure.core.util.Context; + +/** Samples for ComputePolicies Get. */ +public final class ComputePoliciesGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Get.json + */ + /** + * Sample code: Gets the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE); + } +} +``` + +### ComputePolicies_ListByAccount + +```java +import com.azure.core.util.Context; + +/** Samples for ComputePolicies ListByAccount. */ +public final class ComputePoliciesListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_ListByAccount.json + */ + /** + * Sample code: Lists the compute policies within the adla account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheComputePoliciesWithinTheAdlaAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().listByAccount("contosorg", "contosoadla", Context.NONE); + } +} +``` + +### ComputePolicies_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; + +/** Samples for ComputePolicies Update. */ +public final class ComputePoliciesUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Update.json + */ + /** + * Sample code: Updates the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void updatesTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + ComputePolicy resource = + manager + .computePolicies() + .getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE) + .getValue(); + resource.update().withMaxDegreeOfParallelismPerJob(11).withMinPriorityPerJob(31).apply(); + } +} +``` + +### DataLakeStoreAccounts_Add + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters; + +/** Samples for DataLakeStoreAccounts Add. */ +public final class DataLakeStoreAccountsAddSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Add.json + */ + /** + * Sample code: Adds a Data Lake Store account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void addsADataLakeStoreAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .addWithResponse( + "contosorg", + "contosoadla", + "test_adls_account", + new AddDataLakeStoreParameters().withSuffix("test_suffix"), + Context.NONE); + } +} +``` + +### DataLakeStoreAccounts_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for DataLakeStoreAccounts Delete. */ +public final class DataLakeStoreAccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Delete.json + */ + /** + * Sample code: Removes the specified Data Lake Store account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void removesTheSpecifiedDataLakeStoreAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .deleteWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE); + } +} +``` + +### DataLakeStoreAccounts_Get + +```java +import com.azure.core.util.Context; + +/** Samples for DataLakeStoreAccounts Get. */ +public final class DataLakeStoreAccountsGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Get.json + */ + /** + * Sample code: Gets the specified Data Lake Store account details. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedDataLakeStoreAccountDetails( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.dataLakeStoreAccounts().getWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE); + } +} +``` + +### DataLakeStoreAccounts_ListByAccount + +```java +import com.azure.core.util.Context; + +/** Samples for DataLakeStoreAccounts ListByAccount. */ +public final class DataLakeStoreAccountsListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_ListByAccount.json + */ + /** + * Sample code: Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .listByAccount( + "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} +``` + +### FirewallRules_CreateOrUpdate + +```java +/** Samples for FirewallRules CreateOrUpdate. */ +public final class FirewallRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_CreateOrUpdate.json + */ + /** + * Sample code: Creates or updates the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void createsOrUpdatesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .firewallRules() + .define("test_rule") + .withExistingAccount("contosorg", "contosoadla") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2") + .create(); + } +} +``` + +### FirewallRules_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for FirewallRules Delete. */ +public final class FirewallRulesDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Delete.json + */ + /** + * Sample code: Deletes the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void deletesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().deleteWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE); + } +} +``` + +### FirewallRules_Get + +```java +import com.azure.core.util.Context; + +/** Samples for FirewallRules Get. */ +public final class FirewallRulesGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Get.json + */ + /** + * Sample code: Gets the specified Data Lake Analytics firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedDataLakeAnalyticsFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE); + } +} +``` + +### FirewallRules_ListByAccount + +```java +import com.azure.core.util.Context; + +/** Samples for FirewallRules ListByAccount. */ +public final class FirewallRulesListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_ListByAccount.json + */ + /** + * Sample code: Lists the Data Lake Analytics firewall rules. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheDataLakeAnalyticsFirewallRules( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().listByAccount("contosorg", "contosoadla", Context.NONE); + } +} +``` + +### FirewallRules_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; + +/** Samples for FirewallRules Update. */ +public final class FirewallRulesUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Update.json + */ + /** + * Sample code: Updates the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void updatesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + FirewallRule resource = + manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE).getValue(); + resource.update().withStartIpAddress("1.1.1.1").withEndIpAddress("2.2.2.2").apply(); + } +} +``` + +### Locations_GetCapability + +```java +import com.azure.core.util.Context; + +/** Samples for Locations GetCapability. */ +public final class LocationsGetCapabilitySamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Locations_GetCapability.json + */ + /** + * Sample code: Gets subscription-level properties and limits for Data Lake Analytics specified by resource + * location. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsSubscriptionLevelPropertiesAndLimitsForDataLakeAnalyticsSpecifiedByResourceLocation( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.locations().getCapabilityWithResponse("EastUS2", Context.NONE); + } +} +``` + +### Operations_List + +```java +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Operations_List.json + */ + /** + * Sample code: Lists all of the available Data Lake Analytics REST API operations. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsAllOfTheAvailableDataLakeAnalyticsRESTAPIOperations( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.operations().listWithResponse(Context.NONE); + } +} +``` + +### StorageAccounts_Add + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountParameters; + +/** Samples for StorageAccounts Add. */ +public final class StorageAccountsAddSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Add.json + */ + /** + * Sample code: Adds an Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void addsAnAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .addWithResponse( + "contosorg", + "contosoadla", + "test_storage", + new AddStorageAccountParameters() + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"), + Context.NONE); + } +} +``` + +### StorageAccounts_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts Delete. */ +public final class StorageAccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Delete.json + */ + /** + * Sample code: Removes an Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void removesAnAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().deleteWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} +``` + +### StorageAccounts_Get + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts Get. */ +public final class StorageAccountsGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Get.json + */ + /** + * Sample code: Gets the specified Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().getWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} +``` + +### StorageAccounts_GetStorageContainer + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts GetStorageContainer. */ +public final class StorageAccountsGetStorageContainerSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_GetStorageContainer.json + */ + /** + * Sample code: Gets the specified Azure Storage container. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedAzureStorageContainer( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .getStorageContainerWithResponse( + "contosorg", "contosoadla", "test_storage", "test_container", Context.NONE); + } +} +``` + +### StorageAccounts_ListByAccount + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts ListByAccount. */ +public final class StorageAccountsListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListByAccount.json + */ + /** + * Sample code: Gets the first page of Azure Storage accounts linked to the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheFirstPageOfAzureStorageAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .listByAccount( + "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} +``` + +### StorageAccounts_ListSasTokens + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts ListSasTokens. */ +public final class StorageAccountsListSasTokensSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListSasTokens.json + */ + /** + * Sample code: Gets the SAS token. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSASToken(com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .listSasTokens("contosorg", "contosoadla", "test_storage", "test_container", Context.NONE); + } +} +``` + +### StorageAccounts_ListStorageContainers + +```java +import com.azure.core.util.Context; + +/** Samples for StorageAccounts ListStorageContainers. */ +public final class StorageAccountsListStorageContainersSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListStorageContainers.json + */ + /** + * Sample code: Lists the Azure Storage containers. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheAzureStorageContainers( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().listStorageContainers("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} +``` + +### StorageAccounts_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountParameters; + +/** Samples for StorageAccounts Update. */ +public final class StorageAccountsUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Update.json + */ + /** + * Sample code: Replaces Azure Storage blob account details. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void replacesAzureStorageBlobAccountDetails( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .updateWithResponse( + "contosorg", + "contosoadla", + "test_storage", + new UpdateStorageAccountParameters() + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"), + Context.NONE); + } +} +``` + diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml index e81084e8ded21..fe56a7736a4d6 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/pom.xml @@ -1,55 +1,55 @@ - 4.0.0 - - com.azure - azure-client-sdk-parent - 1.7.0 - ../../parents/azure-client-sdk-parent - + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + - com.azure.resourcemanager - azure-resourcemanager-datalakeanalytics - 1.0.0-beta.2 - jar + com.azure.resourcemanager + azure-resourcemanager-datalakeanalytics + 1.0.0-beta.2 + jar - Microsoft Azure SDK for DataLakeAnalytics Management - This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Creates an Azure Data Lake Analytics account management client. Package tag package-2016-11. - https://github.com/Azure/azure-sdk-for-java + Microsoft Azure SDK for DataLakeAnalytics Management + This package contains Microsoft Azure SDK for DataLakeAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Creates an Azure Data Lake Analytics account management client. Package tag package-preview-2019-11. + https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + - - https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - - microsoft - Microsoft - - - - UTF-8 - true - - - - com.azure - azure-core - 1.25.0 - - - com.azure - azure-core-management - 1.5.2 - - + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + true + + + + com.azure + azure-core + 1.25.0 + + + com.azure + azure-core-management + 1.5.2 + + diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java index a1342ce293e4a..1c6741439a287 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java @@ -8,8 +8,8 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; -import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -17,6 +17,7 @@ import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -41,6 +42,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to DataLakeAnalyticsManager. Creates an Azure Data Lake Analytics account management client. */ public final class DataLakeAnalyticsManager { @@ -101,6 +103,7 @@ public static final class Configurable { private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); + private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; private Duration defaultPollInterval; @@ -140,6 +143,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) { return this; } + /** + * Adds the scope to permission sets. + * + * @param scope the scope. + * @return the configurable object itself. + */ + public Configurable withScope(String scope) { + this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); + return this; + } + /** * Sets the retry policy to the HTTP pipeline. * @@ -196,20 +210,33 @@ public DataLakeAnalyticsManager authenticate(TokenCredential credential, AzurePr userAgentBuilder.append(" (auto-generated)"); } + if (scopes.isEmpty()) { + scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); + } if (retryPolicy == null) { retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); + policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies - .add( - new BearerTokenAuthenticationPolicy( - credential, profile.getEnvironment().getManagementEndpoint() + "/.default")); - policies.addAll(this.policies); + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java index cd23fbc6154ba..92856103142a7 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/AccountsClient.java @@ -26,7 +26,8 @@ public interface AccountsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -49,7 +50,8 @@ public interface AccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -63,7 +65,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -87,7 +90,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup( @@ -110,10 +114,10 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataLakeAnalyticsAccountInner> beginCreate( String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters); @@ -128,10 +132,10 @@ SyncPoller, DataLakeAnalyticsAccountIn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataLakeAnalyticsAccountInner> beginCreate( String resourceGroupName, String accountName, @@ -198,7 +202,7 @@ DataLakeAnalyticsAccountInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -214,10 +218,10 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate( String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters); @@ -232,10 +236,10 @@ SyncPoller, DataLakeAnalyticsAccountIn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate( String resourceGroupName, String accountName, @@ -303,9 +307,9 @@ DataLakeAnalyticsAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); /** @@ -317,9 +321,9 @@ DataLakeAnalyticsAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); /** @@ -369,7 +373,7 @@ DataLakeAnalyticsAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java index eefc03eda57b2..a4f575fbff9cb 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/ComputePoliciesClient.java @@ -24,7 +24,7 @@ public interface ComputePoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -39,7 +39,7 @@ public interface ComputePoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName, Context context); @@ -78,7 +78,7 @@ ComputePolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -112,7 +112,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -143,7 +143,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -176,7 +176,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java index bd8c5cffa5b39..f1e53f9d3352a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/DataLakeStoreAccountsClient.java @@ -23,7 +23,8 @@ public interface DataLakeStoreAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -48,7 +49,8 @@ public interface DataLakeStoreAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount( @@ -86,7 +88,7 @@ PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response addWithResponse( @@ -121,7 +123,8 @@ DataLakeStoreAccountInformationInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -150,7 +153,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java index 6d51824b9901d..23feaaf998c36 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/FirewallRulesClient.java @@ -23,7 +23,7 @@ public interface FirewallRulesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -37,7 +37,7 @@ public interface FirewallRulesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName, Context context); @@ -74,7 +74,7 @@ FirewallRuleInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -108,7 +108,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -139,7 +139,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -172,7 +172,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java index 5a3bd9ba1e02a..00e1de86c7e1b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/LocationsClient.java @@ -32,7 +32,8 @@ public interface LocationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getCapabilityWithResponse(String location, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java index 1e94ae172304e..a529f77a24cdd 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/OperationsClient.java @@ -29,7 +29,7 @@ public interface OperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listWithResponse(Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java index 26952fd73e871..1ed4725ecebf9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/StorageAccountsClient.java @@ -26,7 +26,8 @@ public interface StorageAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -51,7 +52,8 @@ public interface StorageAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByAccount( @@ -94,7 +96,7 @@ void add( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response addWithResponse( @@ -128,7 +130,8 @@ Response addWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -161,7 +164,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -194,7 +197,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -211,7 +214,7 @@ Response deleteWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listStorageContainers( @@ -229,7 +232,7 @@ PagedIterable listStorageContainers( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listStorageContainers( @@ -266,7 +269,7 @@ StorageContainerInner getStorageContainer( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getStorageContainerWithResponse( @@ -284,7 +287,7 @@ Response getStorageContainerWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSasTokens( @@ -303,7 +306,7 @@ PagedIterable listSasTokens( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSasTokens( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java new file mode 100644 index 0000000000000..6289523d859cd --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddDataLakeStoreProperties.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Data Lake Store account properties to use when adding a new Data Lake Store account. */ +@Fluent +public final class AddDataLakeStoreProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AddDataLakeStoreProperties.class); + + /* + * The optional suffix for the Data Lake Store account. + */ + @JsonProperty(value = "suffix") + private String suffix; + + /** + * Get the suffix property: The optional suffix for the Data Lake Store account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Set the suffix property: The optional suffix for the Data Lake Store account. + * + * @param suffix the suffix value to set. + * @return the AddDataLakeStoreProperties object itself. + */ + public AddDataLakeStoreProperties withSuffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java new file mode 100644 index 0000000000000..6fe384da7e3d1 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/AddStorageAccountProperties.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Azure Storage account properties to use when adding a new Azure Storage account. */ +@Fluent +public final class AddStorageAccountProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AddStorageAccountProperties.class); + + /* + * The access key associated with this Azure Storage account that will be + * used to connect to it. + */ + @JsonProperty(value = "accessKey", required = true) + private String accessKey; + + /* + * The optional suffix for the storage account. + */ + @JsonProperty(value = "suffix") + private String suffix; + + /** + * Get the accessKey property: The access key associated with this Azure Storage account that will be used to + * connect to it. + * + * @return the accessKey value. + */ + public String accessKey() { + return this.accessKey; + } + + /** + * Set the accessKey property: The access key associated with this Azure Storage account that will be used to + * connect to it. + * + * @param accessKey the accessKey value to set. + * @return the AddStorageAccountProperties object itself. + */ + public AddStorageAccountProperties withAccessKey(String accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get the suffix property: The optional suffix for the storage account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Set the suffix property: The optional suffix for the storage account. + * + * @param suffix the suffix value to set. + * @return the AddStorageAccountProperties object itself. + */ + public AddStorageAccountProperties withSuffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (accessKey() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property accessKey in model AddStorageAccountProperties")); + } + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java index 7964d5f972b5a..f3f93f67b5ad9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyInner.java @@ -4,8 +4,7 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; @@ -14,35 +13,15 @@ import java.util.UUID; /** Data Lake Analytics compute policy information. */ -@JsonFlatten -@Immutable -public class ComputePolicyInner extends SubResource { +@Fluent +public final class ComputePolicyInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputePolicyInner.class); /* - * The AAD object identifier for the entity to create a policy for. + * The compute policy properties. */ - @JsonProperty(value = "properties.objectId", access = JsonProperty.Access.WRITE_ONLY) - private UUID objectId; - - /* - * The type of AAD object the object identifier refers to. - */ - @JsonProperty(value = "properties.objectType", access = JsonProperty.Access.WRITE_ONLY) - private AadObjectType objectType; - - /* - * The maximum degree of parallelism per job this user can use to submit - * jobs. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob", access = JsonProperty.Access.WRITE_ONLY) - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum priority per job this user can use to submit jobs. - */ - @JsonProperty(value = "properties.minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY) - private Integer minPriorityPerJob; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private ComputePolicyProperties innerProperties; /* * The resource name. @@ -56,13 +35,47 @@ public class ComputePolicyInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; + /** + * Get the innerProperties property: The compute policy properties. + * + * @return the innerProperties value. + */ + private ComputePolicyProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the name property: The resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the type property: The resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** {@inheritDoc} */ + @Override + public ComputePolicyInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the objectId property: The AAD object identifier for the entity to create a policy for. * * @return the objectId value. */ public UUID objectId() { - return this.objectId; + return this.innerProperties() == null ? null : this.innerProperties().objectId(); } /** @@ -71,7 +84,7 @@ public UUID objectId() { * @return the objectType value. */ public AadObjectType objectType() { - return this.objectType; + return this.innerProperties() == null ? null : this.innerProperties().objectType(); } /** @@ -81,7 +94,7 @@ public AadObjectType objectType() { * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -90,32 +103,7 @@ public Integer maxDegreeOfParallelismPerJob() { * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** {@inheritDoc} */ - @Override - public ComputePolicyInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -124,5 +112,8 @@ public ComputePolicyInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java new file mode 100644 index 0000000000000..87ca2b34aac1b --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/ComputePolicyProperties.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.UUID; + +/** The compute policy properties. */ +@Immutable +public final class ComputePolicyProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ComputePolicyProperties.class); + + /* + * The AAD object identifier for the entity to create a policy for. + */ + @JsonProperty(value = "objectId", access = JsonProperty.Access.WRITE_ONLY) + private UUID objectId; + + /* + * The type of AAD object the object identifier refers to. + */ + @JsonProperty(value = "objectType", access = JsonProperty.Access.WRITE_ONLY) + private AadObjectType objectType; + + /* + * The maximum degree of parallelism per job this user can use to submit + * jobs. + */ + @JsonProperty(value = "maxDegreeOfParallelismPerJob", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxDegreeOfParallelismPerJob; + + /* + * The minimum priority per job this user can use to submit jobs. + */ + @JsonProperty(value = "minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY) + private Integer minPriorityPerJob; + + /** + * Get the objectId property: The AAD object identifier for the entity to create a policy for. + * + * @return the objectId value. + */ + public UUID objectId() { + return this.objectId; + } + + /** + * Get the objectType property: The type of AAD object the object identifier refers to. + * + * @return the objectType value. + */ + public AadObjectType objectType() { + return this.objectType; + } + + /** + * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to + * submit jobs. + * + * @return the maxDegreeOfParallelismPerJob value. + */ + public Integer maxDegreeOfParallelismPerJob() { + return this.maxDegreeOfParallelismPerJob; + } + + /** + * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. + * + * @return the minPriorityPerJob value. + */ + public Integer minPriorityPerJob() { + return this.minPriorityPerJob; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java new file mode 100644 index 0000000000000..c3fe428083a47 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateDataLakeAnalyticsAccountProperties.java @@ -0,0 +1,408 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The CreateDataLakeAnalyticsAccountProperties model. */ +@Fluent +public final class CreateDataLakeAnalyticsAccountProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateDataLakeAnalyticsAccountProperties.class); + + /* + * The default Data Lake Store account associated with this account. + */ + @JsonProperty(value = "defaultDataLakeStoreAccount", required = true) + private String defaultDataLakeStoreAccount; + + /* + * The list of Data Lake Store accounts associated with this account. + */ + @JsonProperty(value = "dataLakeStoreAccounts", required = true) + private List dataLakeStoreAccounts; + + /* + * The list of Azure Blob Storage accounts associated with this account. + */ + @JsonProperty(value = "storageAccounts") + private List storageAccounts; + + /* + * The list of compute policies associated with this account. + */ + @JsonProperty(value = "computePolicies") + private List computePolicies; + + /* + * The list of firewall rules associated with this account. + */ + @JsonProperty(value = "firewallRules") + private List firewallRules; + + /* + * The current state of the IP address firewall for this account. + */ + @JsonProperty(value = "firewallState") + private FirewallState firewallState; + + /* + * The current state of allowing or disallowing IPs originating within + * Azure through the firewall. If the firewall is disabled, this is not + * enforced. + */ + @JsonProperty(value = "firewallAllowAzureIps") + private FirewallAllowAzureIpsState firewallAllowAzureIps; + + /* + * The commitment tier for the next month. + */ + @JsonProperty(value = "newTier") + private TierType newTier; + + /* + * The maximum supported jobs running under the account at the same time. + */ + @JsonProperty(value = "maxJobCount") + private Integer maxJobCount; + + /* + * The maximum supported degree of parallelism for this account. + */ + @JsonProperty(value = "maxDegreeOfParallelism") + private Integer maxDegreeOfParallelism; + + /* + * The maximum supported degree of parallelism per job for this account. + */ + @JsonProperty(value = "maxDegreeOfParallelismPerJob") + private Integer maxDegreeOfParallelismPerJob; + + /* + * The minimum supported priority per job for this account. + */ + @JsonProperty(value = "minPriorityPerJob") + private Integer minPriorityPerJob; + + /* + * The number of days that job metadata is retained. + */ + @JsonProperty(value = "queryStoreRetention") + private Integer queryStoreRetention; + + /** + * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. + * + * @return the defaultDataLakeStoreAccount value. + */ + public String defaultDataLakeStoreAccount() { + return this.defaultDataLakeStoreAccount; + } + + /** + * Set the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. + * + * @param defaultDataLakeStoreAccount the defaultDataLakeStoreAccount value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withDefaultDataLakeStoreAccount( + String defaultDataLakeStoreAccount) { + this.defaultDataLakeStoreAccount = defaultDataLakeStoreAccount; + return this; + } + + /** + * Get the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account. + * + * @return the dataLakeStoreAccounts value. + */ + public List dataLakeStoreAccounts() { + return this.dataLakeStoreAccounts; + } + + /** + * Set the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account. + * + * @param dataLakeStoreAccounts the dataLakeStoreAccounts value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withDataLakeStoreAccounts( + List dataLakeStoreAccounts) { + this.dataLakeStoreAccounts = dataLakeStoreAccounts; + return this; + } + + /** + * Get the storageAccounts property: The list of Azure Blob Storage accounts associated with this account. + * + * @return the storageAccounts value. + */ + public List storageAccounts() { + return this.storageAccounts; + } + + /** + * Set the storageAccounts property: The list of Azure Blob Storage accounts associated with this account. + * + * @param storageAccounts the storageAccounts value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withStorageAccounts( + List storageAccounts) { + this.storageAccounts = storageAccounts; + return this; + } + + /** + * Get the computePolicies property: The list of compute policies associated with this account. + * + * @return the computePolicies value. + */ + public List computePolicies() { + return this.computePolicies; + } + + /** + * Set the computePolicies property: The list of compute policies associated with this account. + * + * @param computePolicies the computePolicies value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withComputePolicies( + List computePolicies) { + this.computePolicies = computePolicies; + return this; + } + + /** + * Get the firewallRules property: The list of firewall rules associated with this account. + * + * @return the firewallRules value. + */ + public List firewallRules() { + return this.firewallRules; + } + + /** + * Set the firewallRules property: The list of firewall rules associated with this account. + * + * @param firewallRules the firewallRules value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withFirewallRules( + List firewallRules) { + this.firewallRules = firewallRules; + return this; + } + + /** + * Get the firewallState property: The current state of the IP address firewall for this account. + * + * @return the firewallState value. + */ + public FirewallState firewallState() { + return this.firewallState; + } + + /** + * Set the firewallState property: The current state of the IP address firewall for this account. + * + * @param firewallState the firewallState value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withFirewallState(FirewallState firewallState) { + this.firewallState = firewallState; + return this; + } + + /** + * Get the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure + * through the firewall. If the firewall is disabled, this is not enforced. + * + * @return the firewallAllowAzureIps value. + */ + public FirewallAllowAzureIpsState firewallAllowAzureIps() { + return this.firewallAllowAzureIps; + } + + /** + * Set the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure + * through the firewall. If the firewall is disabled, this is not enforced. + * + * @param firewallAllowAzureIps the firewallAllowAzureIps value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withFirewallAllowAzureIps( + FirewallAllowAzureIpsState firewallAllowAzureIps) { + this.firewallAllowAzureIps = firewallAllowAzureIps; + return this; + } + + /** + * Get the newTier property: The commitment tier for the next month. + * + * @return the newTier value. + */ + public TierType newTier() { + return this.newTier; + } + + /** + * Set the newTier property: The commitment tier for the next month. + * + * @param newTier the newTier value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withNewTier(TierType newTier) { + this.newTier = newTier; + return this; + } + + /** + * Get the maxJobCount property: The maximum supported jobs running under the account at the same time. + * + * @return the maxJobCount value. + */ + public Integer maxJobCount() { + return this.maxJobCount; + } + + /** + * Set the maxJobCount property: The maximum supported jobs running under the account at the same time. + * + * @param maxJobCount the maxJobCount value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) { + this.maxJobCount = maxJobCount; + return this; + } + + /** + * Get the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account. + * + * @return the maxDegreeOfParallelism value. + */ + public Integer maxDegreeOfParallelism() { + return this.maxDegreeOfParallelism; + } + + /** + * Set the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account. + * + * @param maxDegreeOfParallelism the maxDegreeOfParallelism value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) { + this.maxDegreeOfParallelism = maxDegreeOfParallelism; + return this; + } + + /** + * Get the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this + * account. + * + * @return the maxDegreeOfParallelismPerJob value. + */ + public Integer maxDegreeOfParallelismPerJob() { + return this.maxDegreeOfParallelismPerJob; + } + + /** + * Set the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this + * account. + * + * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelismPerJob( + Integer maxDegreeOfParallelismPerJob) { + this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + return this; + } + + /** + * Get the minPriorityPerJob property: The minimum supported priority per job for this account. + * + * @return the minPriorityPerJob value. + */ + public Integer minPriorityPerJob() { + return this.minPriorityPerJob; + } + + /** + * Set the minPriorityPerJob property: The minimum supported priority per job for this account. + * + * @param minPriorityPerJob the minPriorityPerJob value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withMinPriorityPerJob(Integer minPriorityPerJob) { + this.minPriorityPerJob = minPriorityPerJob; + return this; + } + + /** + * Get the queryStoreRetention property: The number of days that job metadata is retained. + * + * @return the queryStoreRetention value. + */ + public Integer queryStoreRetention() { + return this.queryStoreRetention; + } + + /** + * Set the queryStoreRetention property: The number of days that job metadata is retained. + * + * @param queryStoreRetention the queryStoreRetention value to set. + * @return the CreateDataLakeAnalyticsAccountProperties object itself. + */ + public CreateDataLakeAnalyticsAccountProperties withQueryStoreRetention(Integer queryStoreRetention) { + this.queryStoreRetention = queryStoreRetention; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (defaultDataLakeStoreAccount() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property defaultDataLakeStoreAccount in model" + + " CreateDataLakeAnalyticsAccountProperties")); + } + if (dataLakeStoreAccounts() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property dataLakeStoreAccounts in model" + + " CreateDataLakeAnalyticsAccountProperties")); + } else { + dataLakeStoreAccounts().forEach(e -> e.validate()); + } + if (storageAccounts() != null) { + storageAccounts().forEach(e -> e.validate()); + } + if (computePolicies() != null) { + computePolicies().forEach(e -> e.validate()); + } + if (firewallRules() != null) { + firewallRules().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java new file mode 100644 index 0000000000000..5efdf07972a4d --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateComputePolicyProperties.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.UUID; + +/** The compute policy properties to use when creating a new compute policy. */ +@Fluent +public final class CreateOrUpdateComputePolicyProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateComputePolicyProperties.class); + + /* + * The AAD object identifier for the entity to create a policy for. + */ + @JsonProperty(value = "objectId", required = true) + private UUID objectId; + + /* + * The type of AAD object the object identifier refers to. + */ + @JsonProperty(value = "objectType", required = true) + private AadObjectType objectType; + + /* + * The maximum degree of parallelism per job this user can use to submit + * jobs. This property, the min priority per job property, or both must be + * passed. + */ + @JsonProperty(value = "maxDegreeOfParallelismPerJob") + private Integer maxDegreeOfParallelismPerJob; + + /* + * The minimum priority per job this user can use to submit jobs. This + * property, the max degree of parallelism per job property, or both must + * be passed. + */ + @JsonProperty(value = "minPriorityPerJob") + private Integer minPriorityPerJob; + + /** + * Get the objectId property: The AAD object identifier for the entity to create a policy for. + * + * @return the objectId value. + */ + public UUID objectId() { + return this.objectId; + } + + /** + * Set the objectId property: The AAD object identifier for the entity to create a policy for. + * + * @param objectId the objectId value to set. + * @return the CreateOrUpdateComputePolicyProperties object itself. + */ + public CreateOrUpdateComputePolicyProperties withObjectId(UUID objectId) { + this.objectId = objectId; + return this; + } + + /** + * Get the objectType property: The type of AAD object the object identifier refers to. + * + * @return the objectType value. + */ + public AadObjectType objectType() { + return this.objectType; + } + + /** + * Set the objectType property: The type of AAD object the object identifier refers to. + * + * @param objectType the objectType value to set. + * @return the CreateOrUpdateComputePolicyProperties object itself. + */ + public CreateOrUpdateComputePolicyProperties withObjectType(AadObjectType objectType) { + this.objectType = objectType; + return this; + } + + /** + * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to + * submit jobs. This property, the min priority per job property, or both must be passed. + * + * @return the maxDegreeOfParallelismPerJob value. + */ + public Integer maxDegreeOfParallelismPerJob() { + return this.maxDegreeOfParallelismPerJob; + } + + /** + * Set the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to + * submit jobs. This property, the min priority per job property, or both must be passed. + * + * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set. + * @return the CreateOrUpdateComputePolicyProperties object itself. + */ + public CreateOrUpdateComputePolicyProperties withMaxDegreeOfParallelismPerJob( + Integer maxDegreeOfParallelismPerJob) { + this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + return this; + } + + /** + * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property, + * the max degree of parallelism per job property, or both must be passed. + * + * @return the minPriorityPerJob value. + */ + public Integer minPriorityPerJob() { + return this.minPriorityPerJob; + } + + /** + * Set the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property, + * the max degree of parallelism per job property, or both must be passed. + * + * @param minPriorityPerJob the minPriorityPerJob value to set. + * @return the CreateOrUpdateComputePolicyProperties object itself. + */ + public CreateOrUpdateComputePolicyProperties withMinPriorityPerJob(Integer minPriorityPerJob) { + this.minPriorityPerJob = minPriorityPerJob; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (objectId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property objectId in model CreateOrUpdateComputePolicyProperties")); + } + if (objectType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property objectType in model CreateOrUpdateComputePolicyProperties")); + } + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java new file mode 100644 index 0000000000000..45f8e3bc3e6ef --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/CreateOrUpdateFirewallRuleProperties.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The firewall rule properties to use when creating a new firewall rule. */ +@Fluent +public final class CreateOrUpdateFirewallRuleProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateFirewallRuleProperties.class); + + /* + * The start IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "startIpAddress", required = true) + private String startIpAddress; + + /* + * The end IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "endIpAddress", required = true) + private String endIpAddress; + + /** + * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @return the startIpAddress value. + */ + public String startIpAddress() { + return this.startIpAddress; + } + + /** + * Set the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @param startIpAddress the startIpAddress value to set. + * @return the CreateOrUpdateFirewallRuleProperties object itself. + */ + public CreateOrUpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) { + this.startIpAddress = startIpAddress; + return this; + } + + /** + * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @return the endIpAddress value. + */ + public String endIpAddress() { + return this.endIpAddress; + } + + /** + * Set the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @param endIpAddress the endIpAddress value to set. + * @return the CreateOrUpdateFirewallRuleProperties object itself. + */ + public CreateOrUpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) { + this.endIpAddress = endIpAddress; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (startIpAddress() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property startIpAddress in model CreateOrUpdateFirewallRuleProperties")); + } + if (endIpAddress() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property endIpAddress in model CreateOrUpdateFirewallRuleProperties")); + } + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java index 9d3b0ae184385..c7feb0984053f 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountBasicInner.java @@ -4,8 +4,7 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState; @@ -20,46 +19,40 @@ * A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics * account. */ -@JsonFlatten -@Immutable -public class DataLakeAnalyticsAccountBasicInner extends Resource { +@Fluent +public final class DataLakeAnalyticsAccountBasicInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountBasicInner.class); /* - * The unique identifier associated with this Data Lake Analytics account. + * The properties defined by Data Lake Analytics all properties are + * specific to each resource provider. */ - @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY) - private UUID accountId; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private DataLakeAnalyticsAccountPropertiesBasic innerProperties; - /* - * The provisioning status of the Data Lake Analytics account. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private DataLakeAnalyticsAccountStatus provisioningState; - - /* - * The state of the Data Lake Analytics account. - */ - @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) - private DataLakeAnalyticsAccountState state; - - /* - * The account creation time. + /** + * Get the innerProperties property: The properties defined by Data Lake Analytics all properties are specific to + * each resource provider. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime creationTime; + private DataLakeAnalyticsAccountPropertiesBasic innerProperties() { + return this.innerProperties; + } - /* - * The account last modified time. - */ - @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastModifiedTime; + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsAccountBasicInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The full CName endpoint for this account. - */ - @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY) - private String endpoint; + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsAccountBasicInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the accountId property: The unique identifier associated with this Data Lake Analytics account. @@ -67,7 +60,7 @@ public class DataLakeAnalyticsAccountBasicInner extends Resource { * @return the accountId value. */ public UUID accountId() { - return this.accountId; + return this.innerProperties() == null ? null : this.innerProperties().accountId(); } /** @@ -76,7 +69,7 @@ public UUID accountId() { * @return the provisioningState value. */ public DataLakeAnalyticsAccountStatus provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -85,7 +78,7 @@ public DataLakeAnalyticsAccountStatus provisioningState() { * @return the state value. */ public DataLakeAnalyticsAccountState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -94,7 +87,7 @@ public DataLakeAnalyticsAccountState state() { * @return the creationTime value. */ public OffsetDateTime creationTime() { - return this.creationTime; + return this.innerProperties() == null ? null : this.innerProperties().creationTime(); } /** @@ -103,7 +96,7 @@ public OffsetDateTime creationTime() { * @return the lastModifiedTime value. */ public OffsetDateTime lastModifiedTime() { - return this.lastModifiedTime; + return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime(); } /** @@ -112,21 +105,7 @@ public OffsetDateTime lastModifiedTime() { * @return the endpoint value. */ public String endpoint() { - return this.endpoint; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsAccountBasicInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsAccountBasicInner withTags(Map tags) { - super.withTags(tags); - return this; + return this.innerProperties() == null ? null : this.innerProperties().endpoint(); } /** @@ -135,5 +114,8 @@ public DataLakeAnalyticsAccountBasicInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java index 639eb629a0684..19253e86e8bf3 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState; @@ -27,225 +26,49 @@ * A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics * account. */ -@JsonFlatten @Fluent -public class DataLakeAnalyticsAccountInner extends Resource { +public final class DataLakeAnalyticsAccountInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountInner.class); /* - * The unique identifier associated with this Data Lake Analytics account. + * The properties defined by Data Lake Analytics all properties are + * specific to each resource provider. */ - @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY) - private UUID accountId; - - /* - * The provisioning status of the Data Lake Analytics account. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private DataLakeAnalyticsAccountStatus provisioningState; - - /* - * The state of the Data Lake Analytics account. - */ - @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) - private DataLakeAnalyticsAccountState state; - - /* - * The account creation time. - */ - @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime creationTime; - - /* - * The account last modified time. - */ - @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastModifiedTime; - - /* - * The full CName endpoint for this account. - */ - @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY) - private String endpoint; - - /* - * The default Data Lake Store account associated with this account. - */ - @JsonProperty(value = "properties.defaultDataLakeStoreAccount", access = JsonProperty.Access.WRITE_ONLY) - private String defaultDataLakeStoreAccount; - - /* - * The list of Data Lake Store accounts associated with this account. - */ - @JsonProperty(value = "properties.dataLakeStoreAccounts", access = JsonProperty.Access.WRITE_ONLY) - private List dataLakeStoreAccounts; - - /* - * The list of Data Lake Store accounts associated with this account. - */ - @JsonProperty(value = "properties.publicDataLakeStoreAccounts") - private List publicDataLakeStoreAccounts; - - /* - * The list of Azure Blob Storage accounts associated with this account. - */ - @JsonProperty(value = "properties.storageAccounts", access = JsonProperty.Access.WRITE_ONLY) - private List storageAccounts; - - /* - * The list of compute policies associated with this account. - */ - @JsonProperty(value = "properties.computePolicies", access = JsonProperty.Access.WRITE_ONLY) - private List computePolicies; - - /* - * The list of hiveMetastores associated with this account. - */ - @JsonProperty(value = "properties.hiveMetastores", access = JsonProperty.Access.WRITE_ONLY) - private List hiveMetastores; - - /* - * The list of virtualNetwork rules associated with this account. - */ - @JsonProperty(value = "properties.virtualNetworkRules", access = JsonProperty.Access.WRITE_ONLY) - private List virtualNetworkRules; - - /* - * The list of firewall rules associated with this account. - */ - @JsonProperty(value = "properties.firewallRules", access = JsonProperty.Access.WRITE_ONLY) - private List firewallRules; - - /* - * The current state of the IP address firewall for this account. - */ - @JsonProperty(value = "properties.firewallState") - private FirewallState firewallState; - - /* - * The current state of allowing or disallowing IPs originating within - * Azure through the firewall. If the firewall is disabled, this is not - * enforced. - */ - @JsonProperty(value = "properties.firewallAllowAzureIps") - private FirewallAllowAzureIpsState firewallAllowAzureIps; - - /* - * The commitment tier for the next month. - */ - @JsonProperty(value = "properties.newTier") - private TierType newTier; - - /* - * The commitment tier in use for the current month. - */ - @JsonProperty(value = "properties.currentTier", access = JsonProperty.Access.WRITE_ONLY) - private TierType currentTier; - - /* - * The maximum supported jobs running under the account at the same time. - */ - @JsonProperty(value = "properties.maxJobCount") - private Integer maxJobCount; - - /* - * The system defined maximum supported jobs running under the account at - * the same time, which restricts the maximum number of running jobs the - * user can set for the account. - */ - @JsonProperty(value = "properties.systemMaxJobCount", access = JsonProperty.Access.WRITE_ONLY) - private Integer systemMaxJobCount; - - /* - * The maximum supported degree of parallelism for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelism") - private Integer maxDegreeOfParallelism; - - /* - * The system defined maximum supported degree of parallelism for this - * account, which restricts the maximum value of parallelism the user can - * set for the account. - */ - @JsonProperty(value = "properties.systemMaxDegreeOfParallelism", access = JsonProperty.Access.WRITE_ONLY) - private Integer systemMaxDegreeOfParallelism; - - /* - * The maximum supported degree of parallelism per job for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum supported priority per job for this account. - */ - @JsonProperty(value = "properties.minPriorityPerJob", access = JsonProperty.Access.WRITE_ONLY) - private Integer minPriorityPerJob; - - /* - * The number of days that job metadata is retained. - */ - @JsonProperty(value = "properties.queryStoreRetention") - private Integer queryStoreRetention; - - /* - * The current state of the DebugDataAccessLevel for this account. - */ - @JsonProperty(value = "properties.debugDataAccessLevel", access = JsonProperty.Access.WRITE_ONLY) - private DebugDataAccessLevel debugDataAccessLevel; - - /** - * Get the accountId property: The unique identifier associated with this Data Lake Analytics account. - * - * @return the accountId value. - */ - public UUID accountId() { - return this.accountId; - } + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private DataLakeAnalyticsAccountProperties innerProperties; /** - * Get the provisioningState property: The provisioning status of the Data Lake Analytics account. + * Get the innerProperties property: The properties defined by Data Lake Analytics all properties are specific to + * each resource provider. * - * @return the provisioningState value. + * @return the innerProperties value. */ - public DataLakeAnalyticsAccountStatus provisioningState() { - return this.provisioningState; + private DataLakeAnalyticsAccountProperties innerProperties() { + return this.innerProperties; } - /** - * Get the state property: The state of the Data Lake Analytics account. - * - * @return the state value. - */ - public DataLakeAnalyticsAccountState state() { - return this.state; - } - - /** - * Get the creationTime property: The account creation time. - * - * @return the creationTime value. - */ - public OffsetDateTime creationTime() { - return this.creationTime; + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsAccountInner withLocation(String location) { + super.withLocation(location); + return this; } - /** - * Get the lastModifiedTime property: The account last modified time. - * - * @return the lastModifiedTime value. - */ - public OffsetDateTime lastModifiedTime() { - return this.lastModifiedTime; + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsAccountInner withTags(Map tags) { + super.withTags(tags); + return this; } /** - * Get the endpoint property: The full CName endpoint for this account. + * Get the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated with + * this account. * - * @return the endpoint value. + * @return the defaultDataLakeStoreAccountType value. */ - public String endpoint() { - return this.endpoint; + public String defaultDataLakeStoreAccountType() { + return this.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccountType(); } /** @@ -254,7 +77,7 @@ public String endpoint() { * @return the defaultDataLakeStoreAccount value. */ public String defaultDataLakeStoreAccount() { - return this.defaultDataLakeStoreAccount; + return this.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccount(); } /** @@ -263,7 +86,7 @@ public String defaultDataLakeStoreAccount() { * @return the dataLakeStoreAccounts value. */ public List dataLakeStoreAccounts() { - return this.dataLakeStoreAccounts; + return this.innerProperties() == null ? null : this.innerProperties().dataLakeStoreAccounts(); } /** @@ -272,7 +95,7 @@ public List dataLakeStoreAccounts() { * @return the publicDataLakeStoreAccounts value. */ public List publicDataLakeStoreAccounts() { - return this.publicDataLakeStoreAccounts; + return this.innerProperties() == null ? null : this.innerProperties().publicDataLakeStoreAccounts(); } /** @@ -283,7 +106,10 @@ public List publicDataLakeStoreAccounts() */ public DataLakeAnalyticsAccountInner withPublicDataLakeStoreAccounts( List publicDataLakeStoreAccounts) { - this.publicDataLakeStoreAccounts = publicDataLakeStoreAccounts; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withPublicDataLakeStoreAccounts(publicDataLakeStoreAccounts); return this; } @@ -293,7 +119,7 @@ public DataLakeAnalyticsAccountInner withPublicDataLakeStoreAccounts( * @return the storageAccounts value. */ public List storageAccounts() { - return this.storageAccounts; + return this.innerProperties() == null ? null : this.innerProperties().storageAccounts(); } /** @@ -302,7 +128,7 @@ public List storageAccounts() { * @return the computePolicies value. */ public List computePolicies() { - return this.computePolicies; + return this.innerProperties() == null ? null : this.innerProperties().computePolicies(); } /** @@ -311,7 +137,7 @@ public List computePolicies() { * @return the hiveMetastores value. */ public List hiveMetastores() { - return this.hiveMetastores; + return this.innerProperties() == null ? null : this.innerProperties().hiveMetastores(); } /** @@ -320,7 +146,7 @@ public List hiveMetastores() { * @return the virtualNetworkRules value. */ public List virtualNetworkRules() { - return this.virtualNetworkRules; + return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRules(); } /** @@ -329,7 +155,7 @@ public List virtualNetworkRules() { * @return the firewallRules value. */ public List firewallRules() { - return this.firewallRules; + return this.innerProperties() == null ? null : this.innerProperties().firewallRules(); } /** @@ -338,7 +164,7 @@ public List firewallRules() { * @return the firewallState value. */ public FirewallState firewallState() { - return this.firewallState; + return this.innerProperties() == null ? null : this.innerProperties().firewallState(); } /** @@ -348,7 +174,10 @@ public FirewallState firewallState() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withFirewallState(FirewallState firewallState) { - this.firewallState = firewallState; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallState(firewallState); return this; } @@ -359,7 +188,7 @@ public DataLakeAnalyticsAccountInner withFirewallState(FirewallState firewallSta * @return the firewallAllowAzureIps value. */ public FirewallAllowAzureIpsState firewallAllowAzureIps() { - return this.firewallAllowAzureIps; + return this.innerProperties() == null ? null : this.innerProperties().firewallAllowAzureIps(); } /** @@ -370,7 +199,10 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzureIpsState firewallAllowAzureIps) { - this.firewallAllowAzureIps = firewallAllowAzureIps; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallAllowAzureIps(firewallAllowAzureIps); return this; } @@ -380,7 +212,7 @@ public DataLakeAnalyticsAccountInner withFirewallAllowAzureIps(FirewallAllowAzur * @return the newTier value. */ public TierType newTier() { - return this.newTier; + return this.innerProperties() == null ? null : this.innerProperties().newTier(); } /** @@ -390,7 +222,10 @@ public TierType newTier() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withNewTier(TierType newTier) { - this.newTier = newTier; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withNewTier(newTier); return this; } @@ -400,7 +235,7 @@ public DataLakeAnalyticsAccountInner withNewTier(TierType newTier) { * @return the currentTier value. */ public TierType currentTier() { - return this.currentTier; + return this.innerProperties() == null ? null : this.innerProperties().currentTier(); } /** @@ -409,7 +244,7 @@ public TierType currentTier() { * @return the maxJobCount value. */ public Integer maxJobCount() { - return this.maxJobCount; + return this.innerProperties() == null ? null : this.innerProperties().maxJobCount(); } /** @@ -419,10 +254,40 @@ public Integer maxJobCount() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withMaxJobCount(Integer maxJobCount) { - this.maxJobCount = maxJobCount; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxJobCount(maxJobCount); return this; } + /** + * Get the maxActiveJobCountPerUser property: The maximum supported active jobs under the account at the same time. + * + * @return the maxActiveJobCountPerUser value. + */ + public Integer maxActiveJobCountPerUser() { + return this.innerProperties() == null ? null : this.innerProperties().maxActiveJobCountPerUser(); + } + + /** + * Get the maxQueuedJobCountPerUser property: The maximum supported jobs queued under the account at the same time. + * + * @return the maxQueuedJobCountPerUser value. + */ + public Integer maxQueuedJobCountPerUser() { + return this.innerProperties() == null ? null : this.innerProperties().maxQueuedJobCountPerUser(); + } + + /** + * Get the maxJobRunningTimeInMin property: The maximum supported active jobs under the account at the same time. + * + * @return the maxJobRunningTimeInMin value. + */ + public Integer maxJobRunningTimeInMin() { + return this.innerProperties() == null ? null : this.innerProperties().maxJobRunningTimeInMin(); + } + /** * Get the systemMaxJobCount property: The system defined maximum supported jobs running under the account at the * same time, which restricts the maximum number of running jobs the user can set for the account. @@ -430,7 +295,7 @@ public DataLakeAnalyticsAccountInner withMaxJobCount(Integer maxJobCount) { * @return the systemMaxJobCount value. */ public Integer systemMaxJobCount() { - return this.systemMaxJobCount; + return this.innerProperties() == null ? null : this.innerProperties().systemMaxJobCount(); } /** @@ -439,7 +304,7 @@ public Integer systemMaxJobCount() { * @return the maxDegreeOfParallelism value. */ public Integer maxDegreeOfParallelism() { - return this.maxDegreeOfParallelism; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelism(); } /** @@ -449,7 +314,10 @@ public Integer maxDegreeOfParallelism() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) { - this.maxDegreeOfParallelism = maxDegreeOfParallelism; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelism(maxDegreeOfParallelism); return this; } @@ -460,7 +328,7 @@ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelism(Integer maxDegre * @return the systemMaxDegreeOfParallelism value. */ public Integer systemMaxDegreeOfParallelism() { - return this.systemMaxDegreeOfParallelism; + return this.innerProperties() == null ? null : this.innerProperties().systemMaxDegreeOfParallelism(); } /** @@ -470,7 +338,7 @@ public Integer systemMaxDegreeOfParallelism() { * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -481,7 +349,10 @@ public Integer maxDegreeOfParallelismPerJob() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -491,7 +362,7 @@ public DataLakeAnalyticsAccountInner withMaxDegreeOfParallelismPerJob(Integer ma * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -500,7 +371,7 @@ public Integer minPriorityPerJob() { * @return the queryStoreRetention value. */ public Integer queryStoreRetention() { - return this.queryStoreRetention; + return this.innerProperties() == null ? null : this.innerProperties().queryStoreRetention(); } /** @@ -510,7 +381,10 @@ public Integer queryStoreRetention() { * @return the DataLakeAnalyticsAccountInner object itself. */ public DataLakeAnalyticsAccountInner withQueryStoreRetention(Integer queryStoreRetention) { - this.queryStoreRetention = queryStoreRetention; + if (this.innerProperties() == null) { + this.innerProperties = new DataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withQueryStoreRetention(queryStoreRetention); return this; } @@ -520,21 +394,61 @@ public DataLakeAnalyticsAccountInner withQueryStoreRetention(Integer queryStoreR * @return the debugDataAccessLevel value. */ public DebugDataAccessLevel debugDataAccessLevel() { - return this.debugDataAccessLevel; + return this.innerProperties() == null ? null : this.innerProperties().debugDataAccessLevel(); } - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsAccountInner withLocation(String location) { - super.withLocation(location); - return this; + /** + * Get the accountId property: The unique identifier associated with this Data Lake Analytics account. + * + * @return the accountId value. + */ + public UUID accountId() { + return this.innerProperties() == null ? null : this.innerProperties().accountId(); } - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsAccountInner withTags(Map tags) { - super.withTags(tags); - return this; + /** + * Get the provisioningState property: The provisioning status of the Data Lake Analytics account. + * + * @return the provisioningState value. + */ + public DataLakeAnalyticsAccountStatus provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the state property: The state of the Data Lake Analytics account. + * + * @return the state value. + */ + public DataLakeAnalyticsAccountState state() { + return this.innerProperties() == null ? null : this.innerProperties().state(); + } + + /** + * Get the creationTime property: The account creation time. + * + * @return the creationTime value. + */ + public OffsetDateTime creationTime() { + return this.innerProperties() == null ? null : this.innerProperties().creationTime(); + } + + /** + * Get the lastModifiedTime property: The account last modified time. + * + * @return the lastModifiedTime value. + */ + public OffsetDateTime lastModifiedTime() { + return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime(); + } + + /** + * Get the endpoint property: The full CName endpoint for this account. + * + * @return the endpoint value. + */ + public String endpoint() { + return this.innerProperties() == null ? null : this.innerProperties().endpoint(); } /** @@ -543,26 +457,8 @@ public DataLakeAnalyticsAccountInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (dataLakeStoreAccounts() != null) { - dataLakeStoreAccounts().forEach(e -> e.validate()); - } - if (publicDataLakeStoreAccounts() != null) { - publicDataLakeStoreAccounts().forEach(e -> e.validate()); - } - if (storageAccounts() != null) { - storageAccounts().forEach(e -> e.validate()); - } - if (computePolicies() != null) { - computePolicies().forEach(e -> e.validate()); - } - if (hiveMetastores() != null) { - hiveMetastores().forEach(e -> e.validate()); - } - if (virtualNetworkRules() != null) { - virtualNetworkRules().forEach(e -> e.validate()); - } - if (firewallRules() != null) { - firewallRules().forEach(e -> e.validate()); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java similarity index 85% rename from sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java rename to sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java index f490682a1ca56..bfbc03e32f43d 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountProperties.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountProperties.java @@ -2,14 +2,16 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.datalakeanalytics.models; +package com.azure.resourcemanager.datalakeanalytics.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationInner; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.FirewallRuleInner; -import com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationInner; +import com.azure.resourcemanager.datalakeanalytics.models.DebugDataAccessLevel; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.HiveMetastore; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRule; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -22,6 +24,13 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsAccountPropertiesBasic { @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsAccountProperties.class); + /* + * The type of the default Data Lake Store account associated with this + * account. + */ + @JsonProperty(value = "defaultDataLakeStoreAccountType", access = JsonProperty.Access.WRITE_ONLY) + private String defaultDataLakeStoreAccountType; + /* * The default Data Lake Store account associated with this account. */ @@ -102,6 +111,24 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA @JsonProperty(value = "maxJobCount") private Integer maxJobCount; + /* + * The maximum supported active jobs under the account at the same time. + */ + @JsonProperty(value = "maxActiveJobCountPerUser", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxActiveJobCountPerUser; + + /* + * The maximum supported jobs queued under the account at the same time. + */ + @JsonProperty(value = "maxQueuedJobCountPerUser", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxQueuedJobCountPerUser; + + /* + * The maximum supported active jobs under the account at the same time. + */ + @JsonProperty(value = "maxJobRunningTimeInMin", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxJobRunningTimeInMin; + /* * The system defined maximum supported jobs running under the account at * the same time, which restricts the maximum number of running jobs the @@ -148,6 +175,16 @@ public final class DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsA @JsonProperty(value = "debugDataAccessLevel", access = JsonProperty.Access.WRITE_ONLY) private DebugDataAccessLevel debugDataAccessLevel; + /** + * Get the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated with + * this account. + * + * @return the defaultDataLakeStoreAccountType value. + */ + public String defaultDataLakeStoreAccountType() { + return this.defaultDataLakeStoreAccountType; + } + /** * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. * @@ -324,6 +361,33 @@ public DataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) { return this; } + /** + * Get the maxActiveJobCountPerUser property: The maximum supported active jobs under the account at the same time. + * + * @return the maxActiveJobCountPerUser value. + */ + public Integer maxActiveJobCountPerUser() { + return this.maxActiveJobCountPerUser; + } + + /** + * Get the maxQueuedJobCountPerUser property: The maximum supported jobs queued under the account at the same time. + * + * @return the maxQueuedJobCountPerUser value. + */ + public Integer maxQueuedJobCountPerUser() { + return this.maxQueuedJobCountPerUser; + } + + /** + * Get the maxJobRunningTimeInMin property: The maximum supported active jobs under the account at the same time. + * + * @return the maxJobRunningTimeInMin value. + */ + public Integer maxJobRunningTimeInMin() { + return this.maxJobRunningTimeInMin; + } + /** * Get the systemMaxJobCount property: The system defined maximum supported jobs running under the account at the * same time, which restricts the maximum number of running jobs the user can set for the account. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java similarity index 93% rename from sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java rename to sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java index 1ff5e9e415a2a..c89ca09354fa3 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountPropertiesBasic.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeAnalyticsAccountPropertiesBasic.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.datalakeanalytics.models; +package com.azure.resourcemanager.datalakeanalytics.fluent.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountState; +import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountStatus; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java index 130f01f6bb9a1..1556b592db40a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationInner.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Data Lake Store account information. */ -@JsonFlatten -@Immutable -public class DataLakeStoreAccountInformationInner extends SubResource { +@Fluent +public final class DataLakeStoreAccountInformationInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInformationInner.class); /* - * The optional suffix for the Data Lake Store account. + * The Data Lake Store account properties. */ - @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY) - private String suffix; + @JsonProperty(value = "properties") + private DataLakeStoreAccountInformationProperties innerProperties; /* * The resource name. @@ -36,12 +34,12 @@ public class DataLakeStoreAccountInformationInner extends SubResource { private String type; /** - * Get the suffix property: The optional suffix for the Data Lake Store account. + * Get the innerProperties property: The Data Lake Store account properties. * - * @return the suffix value. + * @return the innerProperties value. */ - public String suffix() { - return this.suffix; + private DataLakeStoreAccountInformationProperties innerProperties() { + return this.innerProperties; } /** @@ -69,11 +67,23 @@ public DataLakeStoreAccountInformationInner withId(String id) { return this; } + /** + * Get the suffix property: The optional suffix for the Data Lake Store account. + * + * @return the suffix value. + */ + public String suffix() { + return this.innerProperties() == null ? null : this.innerProperties().suffix(); + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java new file mode 100644 index 0000000000000..7b68ba33a45d9 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/DataLakeStoreAccountInformationProperties.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Data Lake Store account properties. */ +@Immutable +public final class DataLakeStoreAccountInformationProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInformationProperties.class); + + /* + * The optional suffix for the Data Lake Store account. + */ + @JsonProperty(value = "suffix", access = JsonProperty.Access.WRITE_ONLY) + private String suffix; + + /** + * Get the suffix property: The optional suffix for the Data Lake Store account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java index 128e8ddbcae3d..7df3b045a6bfe 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleInner.java @@ -4,32 +4,22 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Data Lake Analytics firewall rule information. */ -@JsonFlatten -@Immutable -public class FirewallRuleInner extends SubResource { +@Fluent +public final class FirewallRuleInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleInner.class); /* - * The start IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + * The firewall rule properties. */ - @JsonProperty(value = "properties.startIpAddress", access = JsonProperty.Access.WRITE_ONLY) - private String startIpAddress; - - /* - * The end IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. - */ - @JsonProperty(value = "properties.endIpAddress", access = JsonProperty.Access.WRITE_ONLY) - private String endIpAddress; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private FirewallRuleProperties innerProperties; /* * The resource name. @@ -44,23 +34,12 @@ public class FirewallRuleInner extends SubResource { private String type; /** - * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. - * Start and End should be in the same protocol. + * Get the innerProperties property: The firewall rule properties. * - * @return the startIpAddress value. + * @return the innerProperties value. */ - public String startIpAddress() { - return this.startIpAddress; - } - - /** - * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start - * and End should be in the same protocol. - * - * @return the endIpAddress value. - */ - public String endIpAddress() { - return this.endIpAddress; + private FirewallRuleProperties innerProperties() { + return this.innerProperties; } /** @@ -88,11 +67,34 @@ public FirewallRuleInner withId(String id) { return this; } + /** + * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @return the startIpAddress value. + */ + public String startIpAddress() { + return this.innerProperties() == null ? null : this.innerProperties().startIpAddress(); + } + + /** + * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @return the endIpAddress value. + */ + public String endIpAddress() { + return this.innerProperties() == null ? null : this.innerProperties().endIpAddress(); + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java new file mode 100644 index 0000000000000..13f6f4d81a520 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/FirewallRuleProperties.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The firewall rule properties. */ +@Immutable +public final class FirewallRuleProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleProperties.class); + + /* + * The start IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "startIpAddress", access = JsonProperty.Access.WRITE_ONLY) + private String startIpAddress; + + /* + * The end IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "endIpAddress", access = JsonProperty.Access.WRITE_ONLY) + private String endIpAddress; + + /** + * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @return the startIpAddress value. + */ + public String startIpAddress() { + return this.startIpAddress; + } + + /** + * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @return the endIpAddress value. + */ + public String endIpAddress() { + return this.endIpAddress; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java new file mode 100644 index 0000000000000..b45c00df90b05 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/HiveMetastoreProperties.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.NestedResourceProvisioningState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The HiveMetastore properties. */ +@Immutable +public final class HiveMetastoreProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveMetastoreProperties.class); + + /* + * The serverUri for the Hive MetaStore + */ + @JsonProperty(value = "serverUri", access = JsonProperty.Access.WRITE_ONLY) + private String serverUri; + + /* + * The databaseName for the Hive MetaStore + */ + @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY) + private String databaseName; + + /* + * The runtimeVersion for the Hive MetaStore + */ + @JsonProperty(value = "runtimeVersion", access = JsonProperty.Access.WRITE_ONLY) + private String runtimeVersion; + + /* + * The userName for the Hive MetaStore + */ + @JsonProperty(value = "userName", access = JsonProperty.Access.WRITE_ONLY) + private String username; + + /* + * The password for the Hive MetaStore + */ + @JsonProperty(value = "password", access = JsonProperty.Access.WRITE_ONLY) + private String password; + + /* + * The current state of the NestedResource + */ + @JsonProperty(value = "nestedResourceProvisioningState", access = JsonProperty.Access.WRITE_ONLY) + private NestedResourceProvisioningState nestedResourceProvisioningState; + + /** + * Get the serverUri property: The serverUri for the Hive MetaStore. + * + * @return the serverUri value. + */ + public String serverUri() { + return this.serverUri; + } + + /** + * Get the databaseName property: The databaseName for the Hive MetaStore. + * + * @return the databaseName value. + */ + public String databaseName() { + return this.databaseName; + } + + /** + * Get the runtimeVersion property: The runtimeVersion for the Hive MetaStore. + * + * @return the runtimeVersion value. + */ + public String runtimeVersion() { + return this.runtimeVersion; + } + + /** + * Get the username property: The userName for the Hive MetaStore. + * + * @return the username value. + */ + public String username() { + return this.username; + } + + /** + * Get the password property: The password for the Hive MetaStore. + * + * @return the password value. + */ + public String password() { + return this.password; + } + + /** + * Get the nestedResourceProvisioningState property: The current state of the NestedResource. + * + * @return the nestedResourceProvisioningState value. + */ + public NestedResourceProvisioningState nestedResourceProvisioningState() { + return this.nestedResourceProvisioningState; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java index c53ae5a034de0..c7cbb19c9034b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationInner.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Azure Storage account information. */ -@JsonFlatten -@Immutable -public class StorageAccountInformationInner extends SubResource { +@Fluent +public final class StorageAccountInformationInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInformationInner.class); /* - * The optional suffix for the storage account. + * The Azure Storage account properties. */ - @JsonProperty(value = "properties.suffix", access = JsonProperty.Access.WRITE_ONLY) - private String suffix; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private StorageAccountInformationProperties innerProperties; /* * The resource name. @@ -36,12 +34,12 @@ public class StorageAccountInformationInner extends SubResource { private String type; /** - * Get the suffix property: The optional suffix for the storage account. + * Get the innerProperties property: The Azure Storage account properties. * - * @return the suffix value. + * @return the innerProperties value. */ - public String suffix() { - return this.suffix; + private StorageAccountInformationProperties innerProperties() { + return this.innerProperties; } /** @@ -69,11 +67,23 @@ public StorageAccountInformationInner withId(String id) { return this; } + /** + * Get the suffix property: The optional suffix for the storage account. + * + * @return the suffix value. + */ + public String suffix() { + return this.innerProperties() == null ? null : this.innerProperties().suffix(); + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java new file mode 100644 index 0000000000000..b345e5dd736f7 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageAccountInformationProperties.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Azure Storage account properties. */ +@Immutable +public final class StorageAccountInformationProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInformationProperties.class); + + /* + * The optional suffix for the storage account. + */ + @JsonProperty(value = "suffix", access = JsonProperty.Access.WRITE_ONLY) + private String suffix; + + /** + * Get the suffix property: The optional suffix for the storage account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java index 596ac1b6a4b1b..136a7f0179ba4 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerInner.java @@ -4,8 +4,7 @@ package com.azure.resourcemanager.datalakeanalytics.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -13,16 +12,15 @@ import java.time.OffsetDateTime; /** Azure Storage blob container information. */ -@JsonFlatten -@Immutable -public class StorageContainerInner extends SubResource { +@Fluent +public final class StorageContainerInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageContainerInner.class); /* - * The last modified time of the blob container. + * The properties of the blob container. */ - @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastModifiedTime; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private StorageContainerProperties innerProperties; /* * The resource name. @@ -37,12 +35,12 @@ public class StorageContainerInner extends SubResource { private String type; /** - * Get the lastModifiedTime property: The last modified time of the blob container. + * Get the innerProperties property: The properties of the blob container. * - * @return the lastModifiedTime value. + * @return the innerProperties value. */ - public OffsetDateTime lastModifiedTime() { - return this.lastModifiedTime; + private StorageContainerProperties innerProperties() { + return this.innerProperties; } /** @@ -70,11 +68,23 @@ public StorageContainerInner withId(String id) { return this; } + /** + * Get the lastModifiedTime property: The last modified time of the blob container. + * + * @return the lastModifiedTime value. + */ + public OffsetDateTime lastModifiedTime() { + return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime(); + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java new file mode 100644 index 0000000000000..5a1f80a5b2993 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/StorageContainerProperties.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** Azure Storage blob container properties information. */ +@Immutable +public final class StorageContainerProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageContainerProperties.class); + + /* + * The last modified time of the blob container. + */ + @JsonProperty(value = "lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime lastModifiedTime; + + /** + * Get the lastModifiedTime property: The last modified time of the blob container. + * + * @return the lastModifiedTime value. + */ + public OffsetDateTime lastModifiedTime() { + return this.lastModifiedTime; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java new file mode 100644 index 0000000000000..6c368e0d3f4e7 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateComputePolicyProperties.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.UUID; + +/** The compute policy properties to use when updating a compute policy. */ +@Fluent +public final class UpdateComputePolicyProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateComputePolicyProperties.class); + + /* + * The AAD object identifier for the entity to create a policy for. + */ + @JsonProperty(value = "objectId") + private UUID objectId; + + /* + * The type of AAD object the object identifier refers to. + */ + @JsonProperty(value = "objectType") + private AadObjectType objectType; + + /* + * The maximum degree of parallelism per job this user can use to submit + * jobs. This property, the min priority per job property, or both must be + * passed. + */ + @JsonProperty(value = "maxDegreeOfParallelismPerJob") + private Integer maxDegreeOfParallelismPerJob; + + /* + * The minimum priority per job this user can use to submit jobs. This + * property, the max degree of parallelism per job property, or both must + * be passed. + */ + @JsonProperty(value = "minPriorityPerJob") + private Integer minPriorityPerJob; + + /** + * Get the objectId property: The AAD object identifier for the entity to create a policy for. + * + * @return the objectId value. + */ + public UUID objectId() { + return this.objectId; + } + + /** + * Set the objectId property: The AAD object identifier for the entity to create a policy for. + * + * @param objectId the objectId value to set. + * @return the UpdateComputePolicyProperties object itself. + */ + public UpdateComputePolicyProperties withObjectId(UUID objectId) { + this.objectId = objectId; + return this; + } + + /** + * Get the objectType property: The type of AAD object the object identifier refers to. + * + * @return the objectType value. + */ + public AadObjectType objectType() { + return this.objectType; + } + + /** + * Set the objectType property: The type of AAD object the object identifier refers to. + * + * @param objectType the objectType value to set. + * @return the UpdateComputePolicyProperties object itself. + */ + public UpdateComputePolicyProperties withObjectType(AadObjectType objectType) { + this.objectType = objectType; + return this; + } + + /** + * Get the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to + * submit jobs. This property, the min priority per job property, or both must be passed. + * + * @return the maxDegreeOfParallelismPerJob value. + */ + public Integer maxDegreeOfParallelismPerJob() { + return this.maxDegreeOfParallelismPerJob; + } + + /** + * Set the maxDegreeOfParallelismPerJob property: The maximum degree of parallelism per job this user can use to + * submit jobs. This property, the min priority per job property, or both must be passed. + * + * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set. + * @return the UpdateComputePolicyProperties object itself. + */ + public UpdateComputePolicyProperties withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) { + this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + return this; + } + + /** + * Get the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property, + * the max degree of parallelism per job property, or both must be passed. + * + * @return the minPriorityPerJob value. + */ + public Integer minPriorityPerJob() { + return this.minPriorityPerJob; + } + + /** + * Set the minPriorityPerJob property: The minimum priority per job this user can use to submit jobs. This property, + * the max degree of parallelism per job property, or both must be passed. + * + * @param minPriorityPerJob the minPriorityPerJob value to set. + * @return the UpdateComputePolicyProperties object itself. + */ + public UpdateComputePolicyProperties withMinPriorityPerJob(Integer minPriorityPerJob) { + this.minPriorityPerJob = minPriorityPerJob; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java new file mode 100644 index 0000000000000..1194995453483 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeAnalyticsAccountProperties.java @@ -0,0 +1,372 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateDataLakeStoreWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountWithAccountParameters; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The properties to update that are associated with an underlying Data Lake Analytics account. */ +@Fluent +public final class UpdateDataLakeAnalyticsAccountProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeAnalyticsAccountProperties.class); + + /* + * The list of Data Lake Store accounts associated with this account. + */ + @JsonProperty(value = "dataLakeStoreAccounts") + private List dataLakeStoreAccounts; + + /* + * The list of Azure Blob storage accounts associated with this account. + */ + @JsonProperty(value = "storageAccounts") + private List storageAccounts; + + /* + * The list of compute policies associated with this account. + */ + @JsonProperty(value = "computePolicies") + private List computePolicies; + + /* + * The list of firewall rules associated with this account. + */ + @JsonProperty(value = "firewallRules") + private List firewallRules; + + /* + * The current state of the IP address firewall for this account. Disabling + * the firewall does not remove existing rules, they will just be ignored + * until the firewall is re-enabled. + */ + @JsonProperty(value = "firewallState") + private FirewallState firewallState; + + /* + * The current state of allowing or disallowing IPs originating within + * Azure through the firewall. If the firewall is disabled, this is not + * enforced. + */ + @JsonProperty(value = "firewallAllowAzureIps") + private FirewallAllowAzureIpsState firewallAllowAzureIps; + + /* + * The commitment tier to use for next month. + */ + @JsonProperty(value = "newTier") + private TierType newTier; + + /* + * The maximum supported jobs running under the account at the same time. + */ + @JsonProperty(value = "maxJobCount") + private Integer maxJobCount; + + /* + * The maximum supported degree of parallelism for this account. + */ + @JsonProperty(value = "maxDegreeOfParallelism") + private Integer maxDegreeOfParallelism; + + /* + * The maximum supported degree of parallelism per job for this account. + */ + @JsonProperty(value = "maxDegreeOfParallelismPerJob") + private Integer maxDegreeOfParallelismPerJob; + + /* + * The minimum supported priority per job for this account. + */ + @JsonProperty(value = "minPriorityPerJob") + private Integer minPriorityPerJob; + + /* + * The number of days that job metadata is retained. + */ + @JsonProperty(value = "queryStoreRetention") + private Integer queryStoreRetention; + + /** + * Get the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account. + * + * @return the dataLakeStoreAccounts value. + */ + public List dataLakeStoreAccounts() { + return this.dataLakeStoreAccounts; + } + + /** + * Set the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account. + * + * @param dataLakeStoreAccounts the dataLakeStoreAccounts value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withDataLakeStoreAccounts( + List dataLakeStoreAccounts) { + this.dataLakeStoreAccounts = dataLakeStoreAccounts; + return this; + } + + /** + * Get the storageAccounts property: The list of Azure Blob storage accounts associated with this account. + * + * @return the storageAccounts value. + */ + public List storageAccounts() { + return this.storageAccounts; + } + + /** + * Set the storageAccounts property: The list of Azure Blob storage accounts associated with this account. + * + * @param storageAccounts the storageAccounts value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withStorageAccounts( + List storageAccounts) { + this.storageAccounts = storageAccounts; + return this; + } + + /** + * Get the computePolicies property: The list of compute policies associated with this account. + * + * @return the computePolicies value. + */ + public List computePolicies() { + return this.computePolicies; + } + + /** + * Set the computePolicies property: The list of compute policies associated with this account. + * + * @param computePolicies the computePolicies value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withComputePolicies( + List computePolicies) { + this.computePolicies = computePolicies; + return this; + } + + /** + * Get the firewallRules property: The list of firewall rules associated with this account. + * + * @return the firewallRules value. + */ + public List firewallRules() { + return this.firewallRules; + } + + /** + * Set the firewallRules property: The list of firewall rules associated with this account. + * + * @param firewallRules the firewallRules value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withFirewallRules( + List firewallRules) { + this.firewallRules = firewallRules; + return this; + } + + /** + * Get the firewallState property: The current state of the IP address firewall for this account. Disabling the + * firewall does not remove existing rules, they will just be ignored until the firewall is re-enabled. + * + * @return the firewallState value. + */ + public FirewallState firewallState() { + return this.firewallState; + } + + /** + * Set the firewallState property: The current state of the IP address firewall for this account. Disabling the + * firewall does not remove existing rules, they will just be ignored until the firewall is re-enabled. + * + * @param firewallState the firewallState value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withFirewallState(FirewallState firewallState) { + this.firewallState = firewallState; + return this; + } + + /** + * Get the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure + * through the firewall. If the firewall is disabled, this is not enforced. + * + * @return the firewallAllowAzureIps value. + */ + public FirewallAllowAzureIpsState firewallAllowAzureIps() { + return this.firewallAllowAzureIps; + } + + /** + * Set the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure + * through the firewall. If the firewall is disabled, this is not enforced. + * + * @param firewallAllowAzureIps the firewallAllowAzureIps value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withFirewallAllowAzureIps( + FirewallAllowAzureIpsState firewallAllowAzureIps) { + this.firewallAllowAzureIps = firewallAllowAzureIps; + return this; + } + + /** + * Get the newTier property: The commitment tier to use for next month. + * + * @return the newTier value. + */ + public TierType newTier() { + return this.newTier; + } + + /** + * Set the newTier property: The commitment tier to use for next month. + * + * @param newTier the newTier value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withNewTier(TierType newTier) { + this.newTier = newTier; + return this; + } + + /** + * Get the maxJobCount property: The maximum supported jobs running under the account at the same time. + * + * @return the maxJobCount value. + */ + public Integer maxJobCount() { + return this.maxJobCount; + } + + /** + * Set the maxJobCount property: The maximum supported jobs running under the account at the same time. + * + * @param maxJobCount the maxJobCount value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) { + this.maxJobCount = maxJobCount; + return this; + } + + /** + * Get the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account. + * + * @return the maxDegreeOfParallelism value. + */ + public Integer maxDegreeOfParallelism() { + return this.maxDegreeOfParallelism; + } + + /** + * Set the maxDegreeOfParallelism property: The maximum supported degree of parallelism for this account. + * + * @param maxDegreeOfParallelism the maxDegreeOfParallelism value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) { + this.maxDegreeOfParallelism = maxDegreeOfParallelism; + return this; + } + + /** + * Get the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this + * account. + * + * @return the maxDegreeOfParallelismPerJob value. + */ + public Integer maxDegreeOfParallelismPerJob() { + return this.maxDegreeOfParallelismPerJob; + } + + /** + * Set the maxDegreeOfParallelismPerJob property: The maximum supported degree of parallelism per job for this + * account. + * + * @param maxDegreeOfParallelismPerJob the maxDegreeOfParallelismPerJob value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withMaxDegreeOfParallelismPerJob( + Integer maxDegreeOfParallelismPerJob) { + this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + return this; + } + + /** + * Get the minPriorityPerJob property: The minimum supported priority per job for this account. + * + * @return the minPriorityPerJob value. + */ + public Integer minPriorityPerJob() { + return this.minPriorityPerJob; + } + + /** + * Set the minPriorityPerJob property: The minimum supported priority per job for this account. + * + * @param minPriorityPerJob the minPriorityPerJob value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withMinPriorityPerJob(Integer minPriorityPerJob) { + this.minPriorityPerJob = minPriorityPerJob; + return this; + } + + /** + * Get the queryStoreRetention property: The number of days that job metadata is retained. + * + * @return the queryStoreRetention value. + */ + public Integer queryStoreRetention() { + return this.queryStoreRetention; + } + + /** + * Set the queryStoreRetention property: The number of days that job metadata is retained. + * + * @param queryStoreRetention the queryStoreRetention value to set. + * @return the UpdateDataLakeAnalyticsAccountProperties object itself. + */ + public UpdateDataLakeAnalyticsAccountProperties withQueryStoreRetention(Integer queryStoreRetention) { + this.queryStoreRetention = queryStoreRetention; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (dataLakeStoreAccounts() != null) { + dataLakeStoreAccounts().forEach(e -> e.validate()); + } + if (storageAccounts() != null) { + storageAccounts().forEach(e -> e.validate()); + } + if (computePolicies() != null) { + computePolicies().forEach(e -> e.validate()); + } + if (firewallRules() != null) { + firewallRules().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.java new file mode 100644 index 0000000000000..b638d95f8d4a5 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateDataLakeStoreProperties.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Data Lake Store account properties to use when updating a Data Lake Store account. */ +@Fluent +public final class UpdateDataLakeStoreProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeStoreProperties.class); + + /* + * The optional suffix for the Data Lake Store account. + */ + @JsonProperty(value = "suffix") + private String suffix; + + /** + * Get the suffix property: The optional suffix for the Data Lake Store account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Set the suffix property: The optional suffix for the Data Lake Store account. + * + * @param suffix the suffix value to set. + * @return the UpdateDataLakeStoreProperties object itself. + */ + public UpdateDataLakeStoreProperties withSuffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java new file mode 100644 index 0000000000000..e00003c32c287 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateFirewallRuleProperties.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The firewall rule properties to use when updating a firewall rule. */ +@Fluent +public final class UpdateFirewallRuleProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateFirewallRuleProperties.class); + + /* + * The start IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "startIpAddress") + private String startIpAddress; + + /* + * The end IP address for the firewall rule. This can be either ipv4 or + * ipv6. Start and End should be in the same protocol. + */ + @JsonProperty(value = "endIpAddress") + private String endIpAddress; + + /** + * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @return the startIpAddress value. + */ + public String startIpAddress() { + return this.startIpAddress; + } + + /** + * Set the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. + * + * @param startIpAddress the startIpAddress value to set. + * @return the UpdateFirewallRuleProperties object itself. + */ + public UpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) { + this.startIpAddress = startIpAddress; + return this; + } + + /** + * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @return the endIpAddress value. + */ + public String endIpAddress() { + return this.endIpAddress; + } + + /** + * Set the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. + * + * @param endIpAddress the endIpAddress value to set. + * @return the UpdateFirewallRuleProperties object itself. + */ + public UpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) { + this.endIpAddress = endIpAddress; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.java new file mode 100644 index 0000000000000..c9f81551719f7 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/UpdateStorageAccountProperties.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Azure Storage account properties to use when updating an Azure Storage account. */ +@Fluent +public final class UpdateStorageAccountProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateStorageAccountProperties.class); + + /* + * The updated access key associated with this Azure Storage account that + * will be used to connect to it. + */ + @JsonProperty(value = "accessKey") + private String accessKey; + + /* + * The optional suffix for the storage account. + */ + @JsonProperty(value = "suffix") + private String suffix; + + /** + * Get the accessKey property: The updated access key associated with this Azure Storage account that will be used + * to connect to it. + * + * @return the accessKey value. + */ + public String accessKey() { + return this.accessKey; + } + + /** + * Set the accessKey property: The updated access key associated with this Azure Storage account that will be used + * to connect to it. + * + * @param accessKey the accessKey value to set. + * @return the UpdateStorageAccountProperties object itself. + */ + public UpdateStorageAccountProperties withAccessKey(String accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get the suffix property: The optional suffix for the storage account. + * + * @return the suffix value. + */ + public String suffix() { + return this.suffix; + } + + /** + * Set the suffix property: The optional suffix for the storage account. + * + * @param suffix the suffix value to set. + * @return the UpdateStorageAccountProperties object itself. + */ + public UpdateStorageAccountProperties withSuffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java new file mode 100644 index 0000000000000..64c926c95621b --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/fluent/models/VirtualNetworkRuleProperties.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datalakeanalytics.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.models.VirtualNetworkRuleState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The VirtualNetwork Rule properties. */ +@Immutable +public final class VirtualNetworkRuleProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRuleProperties.class); + + /* + * The resource identifier for the subnet + */ + @JsonProperty(value = "subnetId", access = JsonProperty.Access.WRITE_ONLY) + private String subnetId; + + /* + * The current state of the VirtualNetwork Rule + */ + @JsonProperty(value = "virtualNetworkRuleState", access = JsonProperty.Access.WRITE_ONLY) + private VirtualNetworkRuleState virtualNetworkRuleState; + + /** + * Get the subnetId property: The resource identifier for the subnet. + * + * @return the subnetId value. + */ + public String subnetId() { + return this.subnetId; + } + + /** + * Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule. + * + * @return the virtualNetworkRuleState value. + */ + public VirtualNetworkRuleState virtualNetworkRuleState() { + return this.virtualNetworkRuleState; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java index 098474575c2bb..22600db544a6d 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/AccountsClientImpl.java @@ -225,7 +225,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -289,7 +290,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -349,7 +351,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -365,7 +368,8 @@ private PagedFlux listAsync( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -398,7 +402,8 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -414,7 +419,8 @@ private PagedFlux listAsync( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -445,7 +451,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -471,7 +478,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -547,7 +555,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -620,7 +629,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -644,7 +654,8 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -678,7 +689,8 @@ private PagedFlux listByResourceGroupAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -705,7 +717,8 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -738,7 +751,8 @@ public PagedIterable listByResourceGroup(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -765,7 +779,7 @@ public PagedIterable listByResourceGroup( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -823,7 +837,7 @@ private Mono>> createWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync( @@ -879,10 +893,10 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync( String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) { Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters); @@ -893,7 +907,7 @@ private PollerFlux, DataLakeAnalyticsA this.client.getHttpPipeline(), DataLakeAnalyticsAccountInner.class, DataLakeAnalyticsAccountInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -907,10 +921,10 @@ private PollerFlux, DataLakeAnalyticsA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataLakeAnalyticsAccountInner> beginCreateAsync( String resourceGroupName, String accountName, @@ -939,10 +953,10 @@ private PollerFlux, DataLakeAnalyticsA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate( String resourceGroupName, String accountName, CreateDataLakeAnalyticsAccountParameters parameters) { return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); @@ -959,10 +973,10 @@ public SyncPoller, DataLakeAnalyticsAc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataLakeAnalyticsAccountInner> beginCreate( String resourceGroupName, String accountName, @@ -982,7 +996,7 @@ public SyncPoller, DataLakeAnalyticsAc * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -1004,7 +1018,7 @@ private Mono createAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync( @@ -1067,7 +1081,8 @@ public DataLakeAnalyticsAccountInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -1116,7 +1131,8 @@ private Mono> getByResourceGroupWithResp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -1161,7 +1177,7 @@ private Mono> getByResourceGroupWithResp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { @@ -1200,7 +1216,7 @@ public DataLakeAnalyticsAccountInner getByResourceGroup(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -1219,7 +1235,7 @@ public Response getByResourceGroupWithResponse( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1275,7 +1291,7 @@ private Mono>> updateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1329,10 +1345,10 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) { Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, parameters); @@ -1343,7 +1359,7 @@ private PollerFlux, DataLakeAnalyticsA this.client.getHttpPipeline(), DataLakeAnalyticsAccountInner.class, DataLakeAnalyticsAccountInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1357,10 +1373,10 @@ private PollerFlux, DataLakeAnalyticsA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link PollerFlux} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataLakeAnalyticsAccountInner> beginUpdateAsync( String resourceGroupName, String accountName, @@ -1389,10 +1405,10 @@ private PollerFlux, DataLakeAnalyticsA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate( String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) { return beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); @@ -1409,10 +1425,10 @@ public SyncPoller, DataLakeAnalyticsAc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * @return the {@link SyncPoller} for polling of a Data Lake Analytics account object, containing all information + * associated with the named Data Lake Analytics account. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataLakeAnalyticsAccountInner> beginUpdate( String resourceGroupName, String accountName, @@ -1432,7 +1448,7 @@ public SyncPoller, DataLakeAnalyticsAc * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1452,7 +1468,7 @@ private Mono updateAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String accountName) { @@ -1474,7 +1490,7 @@ private Mono updateAsync(String resourceGroupName * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Data Lake Analytics account object, containing all information associated with the named Data Lake - * Analytics account. + * Analytics account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1555,7 +1571,7 @@ public DataLakeAnalyticsAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) { @@ -1603,7 +1619,7 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1648,14 +1664,15 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1667,9 +1684,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String accountName, Context context) { context = this.client.mergeContext(context); @@ -1687,9 +1704,9 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) { return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller(); } @@ -1703,9 +1720,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, Context context) { return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller(); @@ -1719,7 +1736,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName) { @@ -1735,7 +1752,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, Context context) { @@ -1781,7 +1798,8 @@ public void delete(String resourceGroupName, String accountName, Context context * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -1831,7 +1849,8 @@ private Mono> checkNameAvailabilityWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -1877,7 +1896,8 @@ private Mono> checkNameAvailabilityWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -1918,7 +1938,7 @@ public NameAvailabilityInformationInner checkNameAvailability( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -1933,7 +1953,8 @@ public Response checkNameAvailabilityWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account list information. + * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1969,7 +1990,8 @@ private Mono> listNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account list information. + * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( @@ -2005,7 +2027,8 @@ private Mono> listNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account list information. + * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( @@ -2043,7 +2066,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account list information. + * @return data Lake Analytics account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java index 267f8c1122fb2..4673354d311aa 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java @@ -166,7 +166,8 @@ Mono> listByAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -225,7 +226,8 @@ private Mono> listByAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -280,7 +282,7 @@ private Mono> listByAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync(String resourceGroupName, String accountName) { @@ -299,7 +301,7 @@ private PagedFlux listByAccountAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -318,7 +320,7 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount(String resourceGroupName, String accountName) { @@ -335,7 +337,7 @@ public PagedIterable listByAccount(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount( @@ -355,7 +357,8 @@ public PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -422,7 +425,8 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -486,7 +490,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -541,7 +545,7 @@ public ComputePolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -563,7 +567,8 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -618,7 +623,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -669,7 +675,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String computePolicyName) { @@ -710,7 +716,7 @@ public ComputePolicyInner get(String resourceGroupName, String accountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -728,7 +734,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -791,7 +798,8 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -851,7 +859,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -879,7 +887,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -924,7 +932,7 @@ public ComputePolicyInner update(String resourceGroupName, String accountName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics compute policy information. + * @return data Lake Analytics compute policy information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( @@ -945,7 +953,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1000,7 +1008,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1051,7 +1059,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String computePolicyName) { @@ -1084,7 +1092,7 @@ public void delete(String resourceGroupName, String accountName, String computeP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1099,7 +1107,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync(String nextLink) { @@ -1135,7 +1144,8 @@ private Mono> listByAccountNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java index 3d94ced7c7a47..920a3f261e49f 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesImpl.java @@ -151,7 +151,7 @@ public void deleteById(String id) { String .format("The resource ID '%s' is not valid. Missing path segment 'computePolicies'.", id))); } - this.deleteWithResponse(resourceGroupName, accountName, computePolicyName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, accountName, computePolicyName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java index 44630f610d4da..768c5a96675d3 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePolicyImpl.java @@ -21,6 +21,14 @@ public String id() { return this.innerModel().id(); } + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + public UUID objectId() { return this.innerModel().objectId(); } @@ -37,14 +45,6 @@ public Integer minPriorityPerJob() { return this.innerModel().minPriorityPerJob(); } - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - public ComputePolicyInner innerModel() { return this.innerObject; } 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 6a6a3d371102c..386183c140cbd 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 @@ -72,28 +72,8 @@ public Map tags() { } } - public UUID accountId() { - return this.innerModel().accountId(); - } - - public DataLakeAnalyticsAccountStatus provisioningState() { - return this.innerModel().provisioningState(); - } - - public DataLakeAnalyticsAccountState state() { - return this.innerModel().state(); - } - - public OffsetDateTime creationTime() { - return this.innerModel().creationTime(); - } - - public OffsetDateTime lastModifiedTime() { - return this.innerModel().lastModifiedTime(); - } - - public String endpoint() { - return this.innerModel().endpoint(); + public String defaultDataLakeStoreAccountType() { + return this.innerModel().defaultDataLakeStoreAccountType(); } public String defaultDataLakeStoreAccount() { @@ -208,6 +188,18 @@ public Integer maxJobCount() { return this.innerModel().maxJobCount(); } + public Integer maxActiveJobCountPerUser() { + return this.innerModel().maxActiveJobCountPerUser(); + } + + public Integer maxQueuedJobCountPerUser() { + return this.innerModel().maxQueuedJobCountPerUser(); + } + + public Integer maxJobRunningTimeInMin() { + return this.innerModel().maxJobRunningTimeInMin(); + } + public Integer systemMaxJobCount() { return this.innerModel().systemMaxJobCount(); } @@ -236,6 +228,30 @@ public DebugDataAccessLevel debugDataAccessLevel() { return this.innerModel().debugDataAccessLevel(); } + public UUID accountId() { + return this.innerModel().accountId(); + } + + public DataLakeAnalyticsAccountStatus provisioningState() { + return this.innerModel().provisioningState(); + } + + public DataLakeAnalyticsAccountState state() { + return this.innerModel().state(); + } + + public OffsetDateTime creationTime() { + return this.innerModel().creationTime(); + } + + public OffsetDateTime lastModifiedTime() { + return this.innerModel().lastModifiedTime(); + } + + public String endpoint() { + return this.innerModel().endpoint(); + } + public Region region() { return Region.fromName(this.regionName()); } 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 21b7c8b1b8156..685ad46cbf376 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 @@ -227,7 +227,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/implementation/DataLakeStoreAccountInformationImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountInformationImpl.java index 3c7afad2bb6e7..42c784fd01258 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountInformationImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountInformationImpl.java @@ -23,10 +23,6 @@ public String id() { return this.innerModel().id(); } - public String suffix() { - return this.innerModel().suffix(); - } - public String name() { return this.innerModel().name(); } @@ -35,6 +31,10 @@ public String type() { return this.innerModel().type(); } + public String suffix() { + return this.innerModel().suffix(); + } + public DataLakeStoreAccountInformationInner innerModel() { return this.innerObject; } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountsClientImpl.java index 3661f5dc0163b..f0cbf350fbd8a 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountsClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/DataLakeStoreAccountsClientImpl.java @@ -122,7 +122,7 @@ Mono> get( @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics" + "/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}") - @ExpectedResponses({200}) + @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( @HostParam("$host") String endpoint, @@ -164,7 +164,8 @@ Mono> listByAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -246,7 +247,8 @@ private Mono> listByAccountS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -325,7 +327,8 @@ private Mono> listByAccountS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -352,7 +355,8 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -389,7 +393,8 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -418,7 +423,8 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount( @@ -453,7 +459,8 @@ public PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount( @@ -480,7 +487,7 @@ public PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addWithResponseAsync( @@ -544,7 +551,7 @@ private Mono> addWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addWithResponseAsync( @@ -605,7 +612,7 @@ private Mono> addWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addAsync( @@ -626,7 +633,7 @@ private Mono addAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName) { @@ -662,7 +669,7 @@ public void add(String resourceGroupName, String accountName, String dataLakeSto * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response addWithResponse( @@ -684,7 +691,8 @@ public Response addWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -740,7 +748,8 @@ private Mono> getWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -792,7 +801,8 @@ private Mono> getWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -835,7 +845,8 @@ public DataLakeStoreAccountInformationInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -852,7 +863,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -908,7 +919,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -960,7 +971,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName) { @@ -993,7 +1004,7 @@ public void delete(String resourceGroupName, String accountName, String dataLake * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1008,7 +1019,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Store account list information. + * @return data Lake Store account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync( @@ -1045,7 +1057,8 @@ private Mono> listByAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Store account list information. + * @return data Lake Store account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRuleImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRuleImpl.java index dff77e4d734a9..005d829846a7d 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRuleImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRuleImpl.java @@ -19,14 +19,6 @@ public String id() { return this.innerModel().id(); } - public String startIpAddress() { - return this.innerModel().startIpAddress(); - } - - public String endIpAddress() { - return this.innerModel().endIpAddress(); - } - public String name() { return this.innerModel().name(); } @@ -35,6 +27,14 @@ public String type() { return this.innerModel().type(); } + public String startIpAddress() { + return this.innerModel().startIpAddress(); + } + + public String endIpAddress() { + return this.innerModel().endIpAddress(); + } + public FirewallRuleInner innerModel() { return this.innerObject; } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesClientImpl.java index 8ced137eb9b5b..f4b0138905abb 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesClientImpl.java @@ -165,7 +165,8 @@ Mono> listByAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -223,7 +224,8 @@ private Mono> listByAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -277,7 +279,7 @@ private Mono> listByAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync(String resourceGroupName, String accountName) { @@ -295,7 +297,7 @@ private PagedFlux listByAccountAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -313,7 +315,7 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount(String resourceGroupName, String accountName) { @@ -329,7 +331,7 @@ public PagedIterable listByAccount(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount( @@ -348,7 +350,8 @@ public PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -414,7 +417,8 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -477,7 +481,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -530,7 +534,7 @@ public FirewallRuleInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -552,7 +556,8 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -607,7 +612,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -658,7 +664,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String firewallRuleName) { @@ -699,7 +705,7 @@ public FirewallRuleInner get(String resourceGroupName, String accountName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -717,7 +723,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -780,7 +787,8 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -840,7 +848,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -868,7 +876,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String accountName, String firewallRuleName) { @@ -912,7 +920,7 @@ public FirewallRuleInner update(String resourceGroupName, String accountName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule information. + * @return data Lake Analytics firewall rule information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( @@ -933,7 +941,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -988,7 +996,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1039,7 +1047,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String firewallRuleName) { @@ -1072,7 +1080,7 @@ public void delete(String resourceGroupName, String accountName, String firewall * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1087,7 +1095,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync(String nextLink) { @@ -1123,7 +1132,8 @@ private Mono> listByAccountNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesImpl.java index 85aa1c7dff650..20db845349ce7 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/FirewallRulesImpl.java @@ -148,7 +148,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); } - this.deleteWithResponse(resourceGroupName, accountName, firewallRuleName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, accountName, firewallRuleName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/LocationsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/LocationsClientImpl.java index c70a8a1ffe1fa..4321721a1c157 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/LocationsClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/LocationsClientImpl.java @@ -74,7 +74,8 @@ Mono> getCapability( * @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 subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getCapabilityWithResponseAsync(String location) { @@ -116,7 +117,8 @@ private Mono> getCapabilityWithResponseAsyn * @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 subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getCapabilityWithResponseAsync( @@ -155,7 +157,8 @@ private Mono> getCapabilityWithResponseAsyn * @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 subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getCapabilityAsync(String location) { @@ -192,7 +195,8 @@ public CapabilityInformationInner getCapability(String location) { * @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 subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getCapabilityWithResponse(String location, Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/OperationsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/OperationsClientImpl.java index e8bd5bd7838b8..2b60d6f1ee304 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/OperationsClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/OperationsClientImpl.java @@ -69,7 +69,8 @@ Mono> list( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync() { @@ -93,7 +94,8 @@ private Mono> listWithResponseAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listWithResponseAsync(Context context) { @@ -113,7 +115,7 @@ private Mono> listWithResponseAsync(Context c * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listAsync() { @@ -147,7 +149,7 @@ public OperationListResultInner list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(Context context) { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountInformationImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountInformationImpl.java index f757d2d097826..363c9860e50a5 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountInformationImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountInformationImpl.java @@ -23,10 +23,6 @@ public String id() { return this.innerModel().id(); } - public String suffix() { - return this.innerModel().suffix(); - } - public String name() { return this.innerModel().name(); } @@ -35,6 +31,10 @@ public String type() { return this.innerModel().type(); } + public String suffix() { + return this.innerModel().suffix(); + } + public StorageAccountInformationInner innerModel() { return this.innerObject; } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountsClientImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountsClientImpl.java index edb53c5acce8a..bacb4e2d61f4f 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountsClientImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageAccountsClientImpl.java @@ -258,7 +258,8 @@ Mono> listSasTokensNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account + * along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -340,7 +341,8 @@ private Mono> listByAccountSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account + * along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountSinglePageAsync( @@ -419,7 +421,8 @@ private Mono> listByAccountSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -446,7 +449,8 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync(String resourceGroupName, String accountName) { @@ -482,7 +486,8 @@ private PagedFlux listByAccountAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByAccountAsync( @@ -511,7 +516,8 @@ private PagedFlux listByAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount(String resourceGroupName, String accountName) { @@ -545,7 +551,8 @@ public PagedIterable listByAccount(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByAccount( @@ -572,7 +579,7 @@ public PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addWithResponseAsync( @@ -637,7 +644,7 @@ private Mono> addWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addWithResponseAsync( @@ -699,7 +706,7 @@ private Mono> addWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addAsync( @@ -742,7 +749,7 @@ public void add( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response addWithResponse( @@ -763,7 +770,8 @@ public Response addWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link + * Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -818,7 +826,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link + * Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -869,7 +878,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -911,7 +921,8 @@ public StorageAccountInformationInner get(String resourceGroupName, String accou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -931,7 +942,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -996,7 +1007,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1058,7 +1069,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1080,7 +1091,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String accountName, String storageAccountName) { @@ -1119,7 +1130,7 @@ public void update(String resourceGroupName, String accountName, String storageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( @@ -1140,7 +1151,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1195,7 +1206,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1246,7 +1257,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String storageAccountName) { @@ -1279,7 +1290,7 @@ public void delete(String resourceGroupName, String accountName, String storageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1298,7 +1309,7 @@ public Response deleteWithResponse( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listStorageContainersSinglePageAsync( @@ -1364,7 +1375,7 @@ private Mono> listStorageContainersSinglePa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listStorageContainersSinglePageAsync( @@ -1426,7 +1437,7 @@ private Mono> listStorageContainersSinglePa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listStorageContainersAsync( @@ -1448,7 +1459,7 @@ private PagedFlux listStorageContainersAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listStorageContainersAsync( @@ -1469,7 +1480,7 @@ private PagedFlux listStorageContainersAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listStorageContainers( @@ -1489,7 +1500,7 @@ public PagedIterable listStorageContainers( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listStorageContainers( @@ -1510,7 +1521,7 @@ public PagedIterable listStorageContainers( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getStorageContainerWithResponseAsync( @@ -1572,7 +1583,7 @@ private Mono> getStorageContainerWithResponseAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getStorageContainerWithResponseAsync( @@ -1634,7 +1645,7 @@ private Mono> getStorageContainerWithResponseAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getStorageContainerAsync( @@ -1683,7 +1694,7 @@ public StorageContainerInner getStorageContainer( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getStorageContainerWithResponse( @@ -1709,7 +1720,7 @@ public Response getStorageContainerWithResponse( * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSasTokensSinglePageAsync( @@ -1780,7 +1791,7 @@ private Mono> listSasTokensSinglePageAsy * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSasTokensSinglePageAsync( @@ -1851,7 +1862,7 @@ private Mono> listSasTokensSinglePageAsy * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSasTokensAsync( @@ -1874,7 +1885,7 @@ private PagedFlux listSasTokensAsync( * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSasTokensAsync( @@ -1902,7 +1913,7 @@ private PagedFlux listSasTokensAsync( * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSasTokens( @@ -1924,7 +1935,7 @@ public PagedIterable listSasTokens( * @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 SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSasTokens( @@ -1944,7 +1955,8 @@ public PagedIterable listSasTokens( * @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 azure Storage account list information. + * @return azure Storage account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync(String nextLink) { @@ -1980,7 +1992,8 @@ private Mono> listByAccountNextSin * @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 azure Storage account list information. + * @return azure Storage account list information along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByAccountNextSinglePageAsync( @@ -2017,7 +2030,7 @@ private Mono> listByAccountNextSin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listStorageContainersNextSinglePageAsync(String nextLink) { @@ -2055,7 +2068,7 @@ private Mono> listStorageContainersNextSing * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listStorageContainersNextSinglePageAsync( @@ -2091,8 +2104,8 @@ private Mono> listStorageContainersNextSing * @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 SAS response that contains the storage account, container and associated SAS token for connection - * use. + * @return the SAS response that contains the storage account, container and associated SAS token for connection use + * along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSasTokensNextSinglePageAsync(String nextLink) { @@ -2128,8 +2141,8 @@ private Mono> listSasTokensNextSinglePag * @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 SAS response that contains the storage account, container and associated SAS token for connection - * use. + * @return the SAS response that contains the storage account, container and associated SAS token for connection use + * along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSasTokensNextSinglePageAsync( diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageContainerImpl.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageContainerImpl.java index 0e63d31bbfb36..0041f71def562 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageContainerImpl.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/StorageContainerImpl.java @@ -24,10 +24,6 @@ public String id() { return this.innerModel().id(); } - public OffsetDateTime lastModifiedTime() { - return this.innerModel().lastModifiedTime(); - } - public String name() { return this.innerModel().name(); } @@ -36,6 +32,10 @@ public String type() { return this.innerModel().type(); } + public OffsetDateTime lastModifiedTime() { + return this.innerModel().lastModifiedTime(); + } + public StorageContainerInner innerModel() { return this.innerObject; } 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 bb75f013b2cf3..3f3e6b412f008 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 @@ -16,7 +16,8 @@ public interface Accounts { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ PagedIterable list(); @@ -38,7 +39,8 @@ public interface 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. - * @return the first page of Data Lake Analytics accounts, if any, within the current subscription. + * @return the first page of Data Lake Analytics accounts, if any, within the current subscription as paginated + * response with {@link PagedIterable}. */ PagedIterable list( String filter, Integer top, Integer skip, String select, String orderby, Boolean count, Context context); @@ -51,7 +53,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -74,7 +77,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group. + * @return the first page of Data Lake Analytics accounts, if any, within a specific resource group as paginated + * response with {@link PagedIterable}. */ PagedIterable listByResourceGroup( String resourceGroupName, @@ -107,7 +111,7 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context); @@ -156,7 +160,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics account name availability result information. + * @return data Lake Analytics account name availability result information along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String location, CheckNameAvailabilityParameters parameters, Context context); @@ -168,7 +172,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response}. */ DataLakeAnalyticsAccount getById(String id); @@ -180,7 +184,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of the specified Data Lake Analytics account. + * @return details of the specified Data Lake Analytics account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreParameters.java index d63855cb59cfc..f5dfc245d0ab6 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreParameters.java @@ -5,22 +5,32 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.AddDataLakeStoreProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to add a new Data Lake Store account. */ -@JsonFlatten @Fluent -public class AddDataLakeStoreParameters { +public final class AddDataLakeStoreParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(AddDataLakeStoreParameters.class); /* - * The optional suffix for the Data Lake Store account. + * The Data Lake Store account properties to use when adding a new Data + * Lake Store account. */ - @JsonProperty(value = "properties.suffix") - private String suffix; + @JsonProperty(value = "properties") + private AddDataLakeStoreProperties innerProperties; + + /** + * Get the innerProperties property: The Data Lake Store account properties to use when adding a new Data Lake Store + * account. + * + * @return the innerProperties value. + */ + private AddDataLakeStoreProperties innerProperties() { + return this.innerProperties; + } /** * Get the suffix property: The optional suffix for the Data Lake Store account. @@ -28,7 +38,7 @@ public class AddDataLakeStoreParameters { * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -38,7 +48,10 @@ public String suffix() { * @return the AddDataLakeStoreParameters object itself. */ public AddDataLakeStoreParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new AddDataLakeStoreProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -48,5 +61,8 @@ public AddDataLakeStoreParameters withSuffix(String suffix) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreWithAccountParameters.java index e71436d1bcb34..90cab6ea3c306 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddDataLakeStoreWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.AddDataLakeStoreProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to add a new Data Lake Store account while creating a new Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class AddDataLakeStoreWithAccountParameters { +public final class AddDataLakeStoreWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(AddDataLakeStoreWithAccountParameters.class); /* @@ -23,10 +22,11 @@ public class AddDataLakeStoreWithAccountParameters { private String name; /* - * The optional suffix for the Data Lake Store account. + * The Data Lake Store account properties to use when adding a new Data + * Lake Store account. */ - @JsonProperty(value = "properties.suffix") - private String suffix; + @JsonProperty(value = "properties") + private AddDataLakeStoreProperties innerProperties; /** * Get the name property: The unique name of the Data Lake Store account to add. @@ -48,13 +48,23 @@ public AddDataLakeStoreWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The Data Lake Store account properties to use when adding a new Data Lake Store + * account. + * + * @return the innerProperties value. + */ + private AddDataLakeStoreProperties innerProperties() { + return this.innerProperties; + } + /** * Get the suffix property: The optional suffix for the Data Lake Store account. * * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -64,7 +74,10 @@ public String suffix() { * @return the AddDataLakeStoreWithAccountParameters object itself. */ public AddDataLakeStoreWithAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new AddDataLakeStoreProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -80,5 +93,8 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model AddDataLakeStoreWithAccountParameters")); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountParameters.java index f8bcf890ed48f..6fa007315d889 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountParameters.java @@ -5,29 +5,32 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.AddStorageAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to add a new Azure Storage account. */ -@JsonFlatten @Fluent -public class AddStorageAccountParameters { +public final class AddStorageAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(AddStorageAccountParameters.class); /* - * The access key associated with this Azure Storage account that will be - * used to connect to it. + * The Azure Storage account properties to use when adding a new Azure + * Storage account. */ - @JsonProperty(value = "properties.accessKey", required = true) - private String accessKey; + @JsonProperty(value = "properties", required = true) + private AddStorageAccountProperties innerProperties = new AddStorageAccountProperties(); - /* - * The optional suffix for the storage account. + /** + * Get the innerProperties property: The Azure Storage account properties to use when adding a new Azure Storage + * account. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.suffix") - private String suffix; + private AddStorageAccountProperties innerProperties() { + return this.innerProperties; + } /** * Get the accessKey property: The access key associated with this Azure Storage account that will be used to @@ -36,7 +39,7 @@ public class AddStorageAccountParameters { * @return the accessKey value. */ public String accessKey() { - return this.accessKey; + return this.innerProperties() == null ? null : this.innerProperties().accessKey(); } /** @@ -47,7 +50,10 @@ public String accessKey() { * @return the AddStorageAccountParameters object itself. */ public AddStorageAccountParameters withAccessKey(String accessKey) { - this.accessKey = accessKey; + if (this.innerProperties() == null) { + this.innerProperties = new AddStorageAccountProperties(); + } + this.innerProperties().withAccessKey(accessKey); return this; } @@ -57,7 +63,7 @@ public AddStorageAccountParameters withAccessKey(String accessKey) { * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -67,7 +73,10 @@ public String suffix() { * @return the AddStorageAccountParameters object itself. */ public AddStorageAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new AddStorageAccountProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -77,11 +86,13 @@ public AddStorageAccountParameters withSuffix(String suffix) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (accessKey() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property accessKey in model AddStorageAccountParameters")); + "Missing required property innerProperties in model AddStorageAccountParameters")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountWithAccountParameters.java index 891c618132908..89a167e365178 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/AddStorageAccountWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.AddStorageAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to add a new Azure Storage account while creating a new Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class AddStorageAccountWithAccountParameters { +public final class AddStorageAccountWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(AddStorageAccountWithAccountParameters.class); /* @@ -23,17 +22,11 @@ public class AddStorageAccountWithAccountParameters { private String name; /* - * The access key associated with this Azure Storage account that will be - * used to connect to it. + * The Azure Storage account properties to use when adding a new Azure + * Storage account. */ - @JsonProperty(value = "properties.accessKey", required = true) - private String accessKey; - - /* - * The optional suffix for the storage account. - */ - @JsonProperty(value = "properties.suffix") - private String suffix; + @JsonProperty(value = "properties", required = true) + private AddStorageAccountProperties innerProperties = new AddStorageAccountProperties(); /** * Get the name property: The unique name of the Azure Storage account to add. @@ -55,6 +48,16 @@ public AddStorageAccountWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The Azure Storage account properties to use when adding a new Azure Storage + * account. + * + * @return the innerProperties value. + */ + private AddStorageAccountProperties innerProperties() { + return this.innerProperties; + } + /** * Get the accessKey property: The access key associated with this Azure Storage account that will be used to * connect to it. @@ -62,7 +65,7 @@ public AddStorageAccountWithAccountParameters withName(String name) { * @return the accessKey value. */ public String accessKey() { - return this.accessKey; + return this.innerProperties() == null ? null : this.innerProperties().accessKey(); } /** @@ -73,7 +76,10 @@ public String accessKey() { * @return the AddStorageAccountWithAccountParameters object itself. */ public AddStorageAccountWithAccountParameters withAccessKey(String accessKey) { - this.accessKey = accessKey; + if (this.innerProperties() == null) { + this.innerProperties = new AddStorageAccountProperties(); + } + this.innerProperties().withAccessKey(accessKey); return this; } @@ -83,7 +89,7 @@ public AddStorageAccountWithAccountParameters withAccessKey(String accessKey) { * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -93,7 +99,10 @@ public String suffix() { * @return the AddStorageAccountWithAccountParameters object itself. */ public AddStorageAccountWithAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new AddStorageAccountProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -109,11 +118,13 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model AddStorageAccountWithAccountParameters")); } - if (accessKey() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property accessKey in model AddStorageAccountWithAccountParameters")); + "Missing required property innerProperties in model AddStorageAccountWithAccountParameters")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CheckNameAvailabilityParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CheckNameAvailabilityParameters.java index ba42559696f81..606b7fc95d08e 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CheckNameAvailabilityParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CheckNameAvailabilityParameters.java @@ -25,7 +25,7 @@ public final class CheckNameAvailabilityParameters { * constant value is Microsoft.DataLakeAnalytics/accounts */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.DataLakeAnalytics/accounts"; /** Creates an instance of CheckNameAvailabilityParameters class. */ public CheckNameAvailabilityParameters() { diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicies.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicies.java index 2b6b741435705..129d824a96649 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicies.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicies.java @@ -19,7 +19,7 @@ public interface ComputePolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -33,7 +33,7 @@ public interface ComputePolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of compute policies in the account. + * @return the list of compute policies in the account as paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName, Context context); @@ -60,7 +60,7 @@ public interface ComputePolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String computePolicyName, Context context); @@ -87,7 +87,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String accountName, String computePolicyName, Context context); @@ -99,7 +99,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response}. */ ComputePolicy getById(String id); @@ -111,7 +111,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics compute policy. + * @return the specified Data Lake Analytics compute policy along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -133,7 +133,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicy.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicy.java index 75bae6676f108..bfa373be53230 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicy.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/ComputePolicy.java @@ -17,6 +17,20 @@ public interface ComputePolicy { */ String id(); + /** + * Gets the name property: The resource name. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The resource type. + * + * @return the type value. + */ + String type(); + /** * Gets the objectId property: The AAD object identifier for the entity to create a policy for. * @@ -46,20 +60,6 @@ public interface ComputePolicy { */ Integer minPriorityPerJob(); - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - /** * Gets the inner com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner object. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateComputePolicyWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateComputePolicyWithAccountParameters.java index 02c14b5606f83..c77194329c4d1 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateComputePolicyWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateComputePolicyWithAccountParameters.java @@ -5,16 +5,15 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateComputePolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; /** The parameters used to create a new compute policy while creating a new Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class CreateComputePolicyWithAccountParameters { +public final class CreateComputePolicyWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateComputePolicyWithAccountParameters.class); /* @@ -24,32 +23,10 @@ public class CreateComputePolicyWithAccountParameters { private String name; /* - * The AAD object identifier for the entity to create a policy for. + * The compute policy properties to use when creating a new compute policy. */ - @JsonProperty(value = "properties.objectId", required = true) - private UUID objectId; - - /* - * The type of AAD object the object identifier refers to. - */ - @JsonProperty(value = "properties.objectType", required = true) - private AadObjectType objectType; - - /* - * The maximum degree of parallelism per job this user can use to submit - * jobs. This property, the min priority per job property, or both must be - * passed. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum priority per job this user can use to submit jobs. This - * property, the max degree of parallelism per job property, or both must - * be passed. - */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; + @JsonProperty(value = "properties", required = true) + private CreateOrUpdateComputePolicyProperties innerProperties = new CreateOrUpdateComputePolicyProperties(); /** * Get the name property: The unique name of the compute policy to create. @@ -71,13 +48,22 @@ public CreateComputePolicyWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The compute policy properties to use when creating a new compute policy. + * + * @return the innerProperties value. + */ + private CreateOrUpdateComputePolicyProperties innerProperties() { + return this.innerProperties; + } + /** * Get the objectId property: The AAD object identifier for the entity to create a policy for. * * @return the objectId value. */ public UUID objectId() { - return this.objectId; + return this.innerProperties() == null ? null : this.innerProperties().objectId(); } /** @@ -87,7 +73,10 @@ public UUID objectId() { * @return the CreateComputePolicyWithAccountParameters object itself. */ public CreateComputePolicyWithAccountParameters withObjectId(UUID objectId) { - this.objectId = objectId; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withObjectId(objectId); return this; } @@ -97,7 +86,7 @@ public CreateComputePolicyWithAccountParameters withObjectId(UUID objectId) { * @return the objectType value. */ public AadObjectType objectType() { - return this.objectType; + return this.innerProperties() == null ? null : this.innerProperties().objectType(); } /** @@ -107,7 +96,10 @@ public AadObjectType objectType() { * @return the CreateComputePolicyWithAccountParameters object itself. */ public CreateComputePolicyWithAccountParameters withObjectType(AadObjectType objectType) { - this.objectType = objectType; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withObjectType(objectType); return this; } @@ -118,7 +110,7 @@ public CreateComputePolicyWithAccountParameters withObjectType(AadObjectType obj * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -130,7 +122,10 @@ public Integer maxDegreeOfParallelismPerJob() { */ public CreateComputePolicyWithAccountParameters withMaxDegreeOfParallelismPerJob( Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -141,7 +136,7 @@ public CreateComputePolicyWithAccountParameters withMaxDegreeOfParallelismPerJob * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -152,7 +147,10 @@ public Integer minPriorityPerJob() { * @return the CreateComputePolicyWithAccountParameters object itself. */ public CreateComputePolicyWithAccountParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -168,17 +166,13 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model CreateComputePolicyWithAccountParameters")); } - if (objectId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property objectId in model CreateComputePolicyWithAccountParameters")); - } - if (objectType() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property objectType in model CreateComputePolicyWithAccountParameters")); + "Missing required property innerProperties in model CreateComputePolicyWithAccountParameters")); + } else { + innerProperties().validate(); } } } 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 25baa2a72a8ea..d8b61b0bfe643 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 @@ -5,17 +5,17 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateDataLakeAnalyticsAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** The parameters to use for creating a Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class CreateDataLakeAnalyticsAccountParameters { +public final class CreateDataLakeAnalyticsAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateDataLakeAnalyticsAccountParameters.class); /* @@ -28,87 +28,14 @@ public class CreateDataLakeAnalyticsAccountParameters { * The resource tags. */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* - * The default Data Lake Store account associated with this account. + * The Data Lake Analytics account properties to use for creating. */ - @JsonProperty(value = "properties.defaultDataLakeStoreAccount", required = true) - private String defaultDataLakeStoreAccount; - - /* - * The list of Data Lake Store accounts associated with this account. - */ - @JsonProperty(value = "properties.dataLakeStoreAccounts", required = true) - private List dataLakeStoreAccounts; - - /* - * The list of Azure Blob Storage accounts associated with this account. - */ - @JsonProperty(value = "properties.storageAccounts") - private List storageAccounts; - - /* - * The list of compute policies associated with this account. - */ - @JsonProperty(value = "properties.computePolicies") - private List computePolicies; - - /* - * The list of firewall rules associated with this account. - */ - @JsonProperty(value = "properties.firewallRules") - private List firewallRules; - - /* - * The current state of the IP address firewall for this account. - */ - @JsonProperty(value = "properties.firewallState") - private FirewallState firewallState; - - /* - * The current state of allowing or disallowing IPs originating within - * Azure through the firewall. If the firewall is disabled, this is not - * enforced. - */ - @JsonProperty(value = "properties.firewallAllowAzureIps") - private FirewallAllowAzureIpsState firewallAllowAzureIps; - - /* - * The commitment tier for the next month. - */ - @JsonProperty(value = "properties.newTier") - private TierType newTier; - - /* - * The maximum supported jobs running under the account at the same time. - */ - @JsonProperty(value = "properties.maxJobCount") - private Integer maxJobCount; - - /* - * The maximum supported degree of parallelism for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelism") - private Integer maxDegreeOfParallelism; - - /* - * The maximum supported degree of parallelism per job for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum supported priority per job for this account. - */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; - - /* - * The number of days that job metadata is retained. - */ - @JsonProperty(value = "properties.queryStoreRetention") - private Integer queryStoreRetention; + @JsonProperty(value = "properties", required = true) + private CreateDataLakeAnalyticsAccountProperties innerProperties = new CreateDataLakeAnalyticsAccountProperties(); /** * Get the location property: The resource location. @@ -150,13 +77,22 @@ public CreateDataLakeAnalyticsAccountParameters withTags(Map tag return this; } + /** + * Get the innerProperties property: The Data Lake Analytics account properties to use for creating. + * + * @return the innerProperties value. + */ + private CreateDataLakeAnalyticsAccountProperties innerProperties() { + return this.innerProperties; + } + /** * Get the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. * * @return the defaultDataLakeStoreAccount value. */ public String defaultDataLakeStoreAccount() { - return this.defaultDataLakeStoreAccount; + return this.innerProperties() == null ? null : this.innerProperties().defaultDataLakeStoreAccount(); } /** @@ -167,7 +103,10 @@ public String defaultDataLakeStoreAccount() { */ public CreateDataLakeAnalyticsAccountParameters withDefaultDataLakeStoreAccount( String defaultDataLakeStoreAccount) { - this.defaultDataLakeStoreAccount = defaultDataLakeStoreAccount; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withDefaultDataLakeStoreAccount(defaultDataLakeStoreAccount); return this; } @@ -177,7 +116,7 @@ public CreateDataLakeAnalyticsAccountParameters withDefaultDataLakeStoreAccount( * @return the dataLakeStoreAccounts value. */ public List dataLakeStoreAccounts() { - return this.dataLakeStoreAccounts; + return this.innerProperties() == null ? null : this.innerProperties().dataLakeStoreAccounts(); } /** @@ -188,7 +127,10 @@ public List dataLakeStoreAccounts() { */ public CreateDataLakeAnalyticsAccountParameters withDataLakeStoreAccounts( List dataLakeStoreAccounts) { - this.dataLakeStoreAccounts = dataLakeStoreAccounts; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withDataLakeStoreAccounts(dataLakeStoreAccounts); return this; } @@ -198,7 +140,7 @@ public CreateDataLakeAnalyticsAccountParameters withDataLakeStoreAccounts( * @return the storageAccounts value. */ public List storageAccounts() { - return this.storageAccounts; + return this.innerProperties() == null ? null : this.innerProperties().storageAccounts(); } /** @@ -209,7 +151,10 @@ public List storageAccounts() { */ public CreateDataLakeAnalyticsAccountParameters withStorageAccounts( List storageAccounts) { - this.storageAccounts = storageAccounts; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withStorageAccounts(storageAccounts); return this; } @@ -219,7 +164,7 @@ public CreateDataLakeAnalyticsAccountParameters withStorageAccounts( * @return the computePolicies value. */ public List computePolicies() { - return this.computePolicies; + return this.innerProperties() == null ? null : this.innerProperties().computePolicies(); } /** @@ -230,7 +175,10 @@ public List computePolicies() { */ public CreateDataLakeAnalyticsAccountParameters withComputePolicies( List computePolicies) { - this.computePolicies = computePolicies; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withComputePolicies(computePolicies); return this; } @@ -240,7 +188,7 @@ public CreateDataLakeAnalyticsAccountParameters withComputePolicies( * @return the firewallRules value. */ public List firewallRules() { - return this.firewallRules; + return this.innerProperties() == null ? null : this.innerProperties().firewallRules(); } /** @@ -251,7 +199,10 @@ public List firewallRules() { */ public CreateDataLakeAnalyticsAccountParameters withFirewallRules( List firewallRules) { - this.firewallRules = firewallRules; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallRules(firewallRules); return this; } @@ -261,7 +212,7 @@ public CreateDataLakeAnalyticsAccountParameters withFirewallRules( * @return the firewallState value. */ public FirewallState firewallState() { - return this.firewallState; + return this.innerProperties() == null ? null : this.innerProperties().firewallState(); } /** @@ -271,7 +222,10 @@ public FirewallState firewallState() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withFirewallState(FirewallState firewallState) { - this.firewallState = firewallState; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallState(firewallState); return this; } @@ -282,7 +236,7 @@ public CreateDataLakeAnalyticsAccountParameters withFirewallState(FirewallState * @return the firewallAllowAzureIps value. */ public FirewallAllowAzureIpsState firewallAllowAzureIps() { - return this.firewallAllowAzureIps; + return this.innerProperties() == null ? null : this.innerProperties().firewallAllowAzureIps(); } /** @@ -294,7 +248,10 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { */ public CreateDataLakeAnalyticsAccountParameters withFirewallAllowAzureIps( FirewallAllowAzureIpsState firewallAllowAzureIps) { - this.firewallAllowAzureIps = firewallAllowAzureIps; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallAllowAzureIps(firewallAllowAzureIps); return this; } @@ -304,7 +261,7 @@ public CreateDataLakeAnalyticsAccountParameters withFirewallAllowAzureIps( * @return the newTier value. */ public TierType newTier() { - return this.newTier; + return this.innerProperties() == null ? null : this.innerProperties().newTier(); } /** @@ -314,7 +271,10 @@ public TierType newTier() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withNewTier(TierType newTier) { - this.newTier = newTier; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withNewTier(newTier); return this; } @@ -324,7 +284,7 @@ public CreateDataLakeAnalyticsAccountParameters withNewTier(TierType newTier) { * @return the maxJobCount value. */ public Integer maxJobCount() { - return this.maxJobCount; + return this.innerProperties() == null ? null : this.innerProperties().maxJobCount(); } /** @@ -334,7 +294,10 @@ public Integer maxJobCount() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withMaxJobCount(Integer maxJobCount) { - this.maxJobCount = maxJobCount; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxJobCount(maxJobCount); return this; } @@ -344,7 +307,7 @@ public CreateDataLakeAnalyticsAccountParameters withMaxJobCount(Integer maxJobCo * @return the maxDegreeOfParallelism value. */ public Integer maxDegreeOfParallelism() { - return this.maxDegreeOfParallelism; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelism(); } /** @@ -354,7 +317,10 @@ public Integer maxDegreeOfParallelism() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) { - this.maxDegreeOfParallelism = maxDegreeOfParallelism; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelism(maxDegreeOfParallelism); return this; } @@ -365,7 +331,7 @@ public CreateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelism(Integ * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -377,7 +343,10 @@ public Integer maxDegreeOfParallelismPerJob() { */ public CreateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelismPerJob( Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -387,7 +356,7 @@ public CreateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelismPerJob * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -397,7 +366,10 @@ public Integer minPriorityPerJob() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -407,7 +379,7 @@ public CreateDataLakeAnalyticsAccountParameters withMinPriorityPerJob(Integer mi * @return the queryStoreRetention value. */ public Integer queryStoreRetention() { - return this.queryStoreRetention; + return this.innerProperties() == null ? null : this.innerProperties().queryStoreRetention(); } /** @@ -417,7 +389,10 @@ public Integer queryStoreRetention() { * @return the CreateDataLakeAnalyticsAccountParameters object itself. */ public CreateDataLakeAnalyticsAccountParameters withQueryStoreRetention(Integer queryStoreRetention) { - this.queryStoreRetention = queryStoreRetention; + if (this.innerProperties() == null) { + this.innerProperties = new CreateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withQueryStoreRetention(queryStoreRetention); return this; } @@ -433,30 +408,13 @@ public void validate() { new IllegalArgumentException( "Missing required property location in model CreateDataLakeAnalyticsAccountParameters")); } - if (defaultDataLakeStoreAccount() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property defaultDataLakeStoreAccount in model" - + " CreateDataLakeAnalyticsAccountParameters")); - } - if (dataLakeStoreAccounts() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataLakeStoreAccounts in model" - + " CreateDataLakeAnalyticsAccountParameters")); + "Missing required property innerProperties in model CreateDataLakeAnalyticsAccountParameters")); } else { - dataLakeStoreAccounts().forEach(e -> e.validate()); - } - if (storageAccounts() != null) { - storageAccounts().forEach(e -> e.validate()); - } - if (computePolicies() != null) { - computePolicies().forEach(e -> e.validate()); - } - if (firewallRules() != null) { - firewallRules().forEach(e -> e.validate()); + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateFirewallRuleWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateFirewallRuleWithAccountParameters.java index 9c2ba1627a0b2..c2ac06a923889 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateFirewallRuleWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateFirewallRuleWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateFirewallRuleProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to create a new firewall rule while creating a new Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class CreateFirewallRuleWithAccountParameters { +public final class CreateFirewallRuleWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateFirewallRuleWithAccountParameters.class); /* @@ -23,18 +22,10 @@ public class CreateFirewallRuleWithAccountParameters { private String name; /* - * The start IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + * The firewall rule properties to use when creating a new firewall rule. */ - @JsonProperty(value = "properties.startIpAddress", required = true) - private String startIpAddress; - - /* - * The end IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. - */ - @JsonProperty(value = "properties.endIpAddress", required = true) - private String endIpAddress; + @JsonProperty(value = "properties", required = true) + private CreateOrUpdateFirewallRuleProperties innerProperties = new CreateOrUpdateFirewallRuleProperties(); /** * Get the name property: The unique name of the firewall rule to create. @@ -56,6 +47,15 @@ public CreateFirewallRuleWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The firewall rule properties to use when creating a new firewall rule. + * + * @return the innerProperties value. + */ + private CreateOrUpdateFirewallRuleProperties innerProperties() { + return this.innerProperties; + } + /** * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. * Start and End should be in the same protocol. @@ -63,7 +63,7 @@ public CreateFirewallRuleWithAccountParameters withName(String name) { * @return the startIpAddress value. */ public String startIpAddress() { - return this.startIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().startIpAddress(); } /** @@ -74,7 +74,10 @@ public String startIpAddress() { * @return the CreateFirewallRuleWithAccountParameters object itself. */ public CreateFirewallRuleWithAccountParameters withStartIpAddress(String startIpAddress) { - this.startIpAddress = startIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateFirewallRuleProperties(); + } + this.innerProperties().withStartIpAddress(startIpAddress); return this; } @@ -85,7 +88,7 @@ public CreateFirewallRuleWithAccountParameters withStartIpAddress(String startIp * @return the endIpAddress value. */ public String endIpAddress() { - return this.endIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().endIpAddress(); } /** @@ -96,7 +99,10 @@ public String endIpAddress() { * @return the CreateFirewallRuleWithAccountParameters object itself. */ public CreateFirewallRuleWithAccountParameters withEndIpAddress(String endIpAddress) { - this.endIpAddress = endIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateFirewallRuleProperties(); + } + this.innerProperties().withEndIpAddress(endIpAddress); return this; } @@ -112,17 +118,13 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model CreateFirewallRuleWithAccountParameters")); } - if (startIpAddress() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property startIpAddress in model CreateFirewallRuleWithAccountParameters")); - } - if (endIpAddress() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property endIpAddress in model CreateFirewallRuleWithAccountParameters")); + "Missing required property innerProperties in model CreateFirewallRuleWithAccountParameters")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateComputePolicyParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateComputePolicyParameters.java index 637df53d521c8..f670aefb783df 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateComputePolicyParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateComputePolicyParameters.java @@ -5,45 +5,31 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateComputePolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; /** The parameters used to create a new compute policy. */ -@JsonFlatten @Fluent -public class CreateOrUpdateComputePolicyParameters { +public final class CreateOrUpdateComputePolicyParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateComputePolicyParameters.class); /* - * The AAD object identifier for the entity to create a policy for. + * The compute policy properties to use when creating a new compute policy. */ - @JsonProperty(value = "properties.objectId", required = true) - private UUID objectId; + @JsonProperty(value = "properties", required = true) + private CreateOrUpdateComputePolicyProperties innerProperties = new CreateOrUpdateComputePolicyProperties(); - /* - * The type of AAD object the object identifier refers to. - */ - @JsonProperty(value = "properties.objectType", required = true) - private AadObjectType objectType; - - /* - * The maximum degree of parallelism per job this user can use to submit - * jobs. This property, the min priority per job property, or both must be - * passed. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum priority per job this user can use to submit jobs. This - * property, the max degree of parallelism per job property, or both must - * be passed. + /** + * Get the innerProperties property: The compute policy properties to use when creating a new compute policy. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; + private CreateOrUpdateComputePolicyProperties innerProperties() { + return this.innerProperties; + } /** * Get the objectId property: The AAD object identifier for the entity to create a policy for. @@ -51,7 +37,7 @@ public class CreateOrUpdateComputePolicyParameters { * @return the objectId value. */ public UUID objectId() { - return this.objectId; + return this.innerProperties() == null ? null : this.innerProperties().objectId(); } /** @@ -61,7 +47,10 @@ public UUID objectId() { * @return the CreateOrUpdateComputePolicyParameters object itself. */ public CreateOrUpdateComputePolicyParameters withObjectId(UUID objectId) { - this.objectId = objectId; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withObjectId(objectId); return this; } @@ -71,7 +60,7 @@ public CreateOrUpdateComputePolicyParameters withObjectId(UUID objectId) { * @return the objectType value. */ public AadObjectType objectType() { - return this.objectType; + return this.innerProperties() == null ? null : this.innerProperties().objectType(); } /** @@ -81,7 +70,10 @@ public AadObjectType objectType() { * @return the CreateOrUpdateComputePolicyParameters object itself. */ public CreateOrUpdateComputePolicyParameters withObjectType(AadObjectType objectType) { - this.objectType = objectType; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withObjectType(objectType); return this; } @@ -92,7 +84,7 @@ public CreateOrUpdateComputePolicyParameters withObjectType(AadObjectType object * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -104,7 +96,10 @@ public Integer maxDegreeOfParallelismPerJob() { */ public CreateOrUpdateComputePolicyParameters withMaxDegreeOfParallelismPerJob( Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -115,7 +110,7 @@ public CreateOrUpdateComputePolicyParameters withMaxDegreeOfParallelismPerJob( * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -126,7 +121,10 @@ public Integer minPriorityPerJob() { * @return the CreateOrUpdateComputePolicyParameters object itself. */ public CreateOrUpdateComputePolicyParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateComputePolicyProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -136,17 +134,13 @@ public CreateOrUpdateComputePolicyParameters withMinPriorityPerJob(Integer minPr * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (objectId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property objectId in model CreateOrUpdateComputePolicyParameters")); - } - if (objectType() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property objectType in model CreateOrUpdateComputePolicyParameters")); + "Missing required property innerProperties in model CreateOrUpdateComputePolicyParameters")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateFirewallRuleParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateFirewallRuleParameters.java index 4d3ee9adcfee8..63a115d2b1623 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateFirewallRuleParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/CreateOrUpdateFirewallRuleParameters.java @@ -5,30 +5,30 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.CreateOrUpdateFirewallRuleProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to create a new firewall rule. */ -@JsonFlatten @Fluent -public class CreateOrUpdateFirewallRuleParameters { +public final class CreateOrUpdateFirewallRuleParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateOrUpdateFirewallRuleParameters.class); /* - * The start IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + * The firewall rule properties to use when creating a new firewall rule. */ - @JsonProperty(value = "properties.startIpAddress", required = true) - private String startIpAddress; + @JsonProperty(value = "properties", required = true) + private CreateOrUpdateFirewallRuleProperties innerProperties = new CreateOrUpdateFirewallRuleProperties(); - /* - * The end IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + /** + * Get the innerProperties property: The firewall rule properties to use when creating a new firewall rule. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.endIpAddress", required = true) - private String endIpAddress; + private CreateOrUpdateFirewallRuleProperties innerProperties() { + return this.innerProperties; + } /** * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. @@ -37,7 +37,7 @@ public class CreateOrUpdateFirewallRuleParameters { * @return the startIpAddress value. */ public String startIpAddress() { - return this.startIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().startIpAddress(); } /** @@ -48,7 +48,10 @@ public String startIpAddress() { * @return the CreateOrUpdateFirewallRuleParameters object itself. */ public CreateOrUpdateFirewallRuleParameters withStartIpAddress(String startIpAddress) { - this.startIpAddress = startIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateFirewallRuleProperties(); + } + this.innerProperties().withStartIpAddress(startIpAddress); return this; } @@ -59,7 +62,7 @@ public CreateOrUpdateFirewallRuleParameters withStartIpAddress(String startIpAdd * @return the endIpAddress value. */ public String endIpAddress() { - return this.endIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().endIpAddress(); } /** @@ -70,7 +73,10 @@ public String endIpAddress() { * @return the CreateOrUpdateFirewallRuleParameters object itself. */ public CreateOrUpdateFirewallRuleParameters withEndIpAddress(String endIpAddress) { - this.endIpAddress = endIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new CreateOrUpdateFirewallRuleProperties(); + } + this.innerProperties().withEndIpAddress(endIpAddress); return this; } @@ -80,17 +86,13 @@ public CreateOrUpdateFirewallRuleParameters withEndIpAddress(String endIpAddress * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (startIpAddress() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property startIpAddress in model CreateOrUpdateFirewallRuleParameters")); - } - if (endIpAddress() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property endIpAddress in model CreateOrUpdateFirewallRuleParameters")); + "Missing required property innerProperties in model CreateOrUpdateFirewallRuleParameters")); + } else { + innerProperties().validate(); } } } 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 035992ac9f924..99dd509af55d1 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 @@ -50,46 +50,12 @@ public interface DataLakeAnalyticsAccount { Map tags(); /** - * Gets the accountId property: The unique identifier associated with this Data Lake Analytics account. - * - * @return the accountId value. - */ - UUID accountId(); - - /** - * Gets the provisioningState property: The provisioning status of the Data Lake Analytics account. - * - * @return the provisioningState value. - */ - DataLakeAnalyticsAccountStatus provisioningState(); - - /** - * Gets the state property: The state of the Data Lake Analytics account. - * - * @return the state value. - */ - DataLakeAnalyticsAccountState state(); - - /** - * Gets the creationTime property: The account creation time. - * - * @return the creationTime value. - */ - OffsetDateTime creationTime(); - - /** - * Gets the lastModifiedTime property: The account last modified time. + * Gets the defaultDataLakeStoreAccountType property: The type of the default Data Lake Store account associated + * with this account. * - * @return the lastModifiedTime value. + * @return the defaultDataLakeStoreAccountType value. */ - OffsetDateTime lastModifiedTime(); - - /** - * Gets the endpoint property: The full CName endpoint for this account. - * - * @return the endpoint value. - */ - String endpoint(); + String defaultDataLakeStoreAccountType(); /** * Gets the defaultDataLakeStoreAccount property: The default Data Lake Store account associated with this account. @@ -183,6 +149,27 @@ public interface DataLakeAnalyticsAccount { */ Integer maxJobCount(); + /** + * Gets the maxActiveJobCountPerUser property: The maximum supported active jobs under the account at the same time. + * + * @return the maxActiveJobCountPerUser value. + */ + Integer maxActiveJobCountPerUser(); + + /** + * Gets the maxQueuedJobCountPerUser property: The maximum supported jobs queued under the account at the same time. + * + * @return the maxQueuedJobCountPerUser value. + */ + Integer maxQueuedJobCountPerUser(); + + /** + * Gets the maxJobRunningTimeInMin property: The maximum supported active jobs under the account at the same time. + * + * @return the maxJobRunningTimeInMin value. + */ + Integer maxJobRunningTimeInMin(); + /** * Gets the systemMaxJobCount property: The system defined maximum supported jobs running under the account at the * same time, which restricts the maximum number of running jobs the user can set for the account. @@ -235,6 +222,48 @@ public interface DataLakeAnalyticsAccount { */ DebugDataAccessLevel debugDataAccessLevel(); + /** + * Gets the accountId property: The unique identifier associated with this Data Lake Analytics account. + * + * @return the accountId value. + */ + UUID accountId(); + + /** + * Gets the provisioningState property: The provisioning status of the Data Lake Analytics account. + * + * @return the provisioningState value. + */ + DataLakeAnalyticsAccountStatus provisioningState(); + + /** + * Gets the state property: The state of the Data Lake Analytics account. + * + * @return the state value. + */ + DataLakeAnalyticsAccountState state(); + + /** + * Gets the creationTime property: The account creation time. + * + * @return the creationTime value. + */ + OffsetDateTime creationTime(); + + /** + * Gets the lastModifiedTime property: The account last modified time. + * + * @return the lastModifiedTime value. + */ + OffsetDateTime lastModifiedTime(); + + /** + * Gets the endpoint property: The full CName endpoint for this account. + * + * @return the endpoint value. + */ + String endpoint(); + /** * Gets the region of the resource. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountListResult.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountListResult.java index 100e1ffab38d5..12c488a2821b2 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountListResult.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeAnalyticsAccountListResult.java @@ -22,6 +22,13 @@ public final class DataLakeAnalyticsAccountListResult { @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; + /* + * The current number of data lake analytics accounts under this + * subscription. + */ + @JsonProperty(value = "count", access = JsonProperty.Access.WRITE_ONLY) + private Integer count; + /* * The link (url) to the next page of results. */ @@ -37,6 +44,15 @@ public List value() { return this.value; } + /** + * Get the count property: The current number of data lake analytics accounts under this subscription. + * + * @return the count value. + */ + public Integer count() { + return this.count; + } + /** * Get the nextLink property: The link (url) to the next page of results. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccountInformation.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccountInformation.java index 0b8669cad9e95..12b23425de373 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccountInformation.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccountInformation.java @@ -15,13 +15,6 @@ public interface DataLakeStoreAccountInformation { */ String id(); - /** - * Gets the suffix property: The optional suffix for the Data Lake Store account. - * - * @return the suffix value. - */ - String suffix(); - /** * Gets the name property: The resource name. * @@ -36,6 +29,13 @@ public interface DataLakeStoreAccountInformation { */ String type(); + /** + * Gets the suffix property: The optional suffix for the Data Lake Store account. + * + * @return the suffix value. + */ + String suffix(); + /** * Gets the inner com.azure.resourcemanager.datalakeanalytics.fluent.models.DataLakeStoreAccountInformationInner * object. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccounts.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccounts.java index a47ddf81572d3..626fd0a71192e 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccounts.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/DataLakeStoreAccounts.java @@ -19,7 +19,8 @@ public interface DataLakeStoreAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -43,7 +44,8 @@ public interface DataLakeStoreAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * @return the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ PagedIterable listByAccount( String resourceGroupName, @@ -79,7 +81,7 @@ PagedIterable listByAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response addWithResponse( String resourceGroupName, @@ -111,7 +113,8 @@ Response addWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Store account details in the specified Data Lake Analytics account. + * @return the specified Data Lake Store account details in the specified Data Lake Analytics account along with + * {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String dataLakeStoreAccountName, Context context); @@ -138,7 +141,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String accountName, String dataLakeStoreAccountName, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRule.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRule.java index f666c2e06a611..7ddc64c208623 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRule.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRule.java @@ -17,34 +17,34 @@ public interface FirewallRule { String id(); /** - * Gets the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. - * Start and End should be in the same protocol. + * Gets the name property: The resource name. * - * @return the startIpAddress value. + * @return the name value. */ - String startIpAddress(); + String name(); /** - * Gets the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start - * and End should be in the same protocol. + * Gets the type property: The resource type. * - * @return the endIpAddress value. + * @return the type value. */ - String endIpAddress(); + String type(); /** - * Gets the name property: The resource name. + * Gets the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. + * Start and End should be in the same protocol. * - * @return the name value. + * @return the startIpAddress value. */ - String name(); + String startIpAddress(); /** - * Gets the type property: The resource type. + * Gets the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start + * and End should be in the same protocol. * - * @return the type value. + * @return the endIpAddress value. */ - String type(); + String endIpAddress(); /** * Gets the inner com.azure.resourcemanager.datalakeanalytics.fluent.models.FirewallRuleInner object. diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRules.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRules.java index 66ac3e57b6888..23749c68b17f0 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRules.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/FirewallRules.java @@ -18,7 +18,7 @@ public interface FirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -31,7 +31,7 @@ public interface FirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return data Lake Analytics firewall rule list information. + * @return data Lake Analytics firewall rule list information as paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName, Context context); @@ -58,7 +58,7 @@ public interface FirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String firewallRuleName, Context context); @@ -85,7 +85,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String accountName, String firewallRuleName, Context context); @@ -97,7 +97,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response}. */ FirewallRule getById(String id); @@ -109,7 +109,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Data Lake Analytics firewall rule. + * @return the specified Data Lake Analytics firewall rule along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -131,7 +131,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/HiveMetastore.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/HiveMetastore.java index cb138091cb805..27452d57db251 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/HiveMetastore.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/HiveMetastore.java @@ -4,66 +4,69 @@ package com.azure.resourcemanager.datalakeanalytics.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.HiveMetastoreProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The HiveMetastore model. */ -@JsonFlatten -@Immutable -public class HiveMetastore extends SubResource { +@Fluent +public final class HiveMetastore extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveMetastore.class); /* - * The serverUri for the Hive MetaStore + * The HiveMetastoreProperties rule properties. */ - @JsonProperty(value = "properties.serverUri", access = JsonProperty.Access.WRITE_ONLY) - private String serverUri; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private HiveMetastoreProperties innerProperties; /* - * The databaseName for the Hive MetaStore - */ - @JsonProperty(value = "properties.databaseName", access = JsonProperty.Access.WRITE_ONLY) - private String databaseName; - - /* - * The runtimeVersion for the Hive MetaStore + * The resource name. */ - @JsonProperty(value = "properties.runtimeVersion", access = JsonProperty.Access.WRITE_ONLY) - private String runtimeVersion; + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; /* - * The userName for the Hive MetaStore + * The resource type. */ - @JsonProperty(value = "properties.userName", access = JsonProperty.Access.WRITE_ONLY) - private String username; + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; - /* - * The password for the Hive MetaStore + /** + * Get the innerProperties property: The HiveMetastoreProperties rule properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.password", access = JsonProperty.Access.WRITE_ONLY) - private String password; + private HiveMetastoreProperties innerProperties() { + return this.innerProperties; + } - /* - * The current state of the NestedResource + /** + * Get the name property: The resource name. + * + * @return the name value. */ - @JsonProperty(value = "properties.nestedResourceProvisioningState", access = JsonProperty.Access.WRITE_ONLY) - private NestedResourceProvisioningState nestedResourceProvisioningState; + public String name() { + return this.name; + } - /* - * The resource name. + /** + * Get the type property: The resource type. + * + * @return the type value. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; + public String type() { + return this.type; + } - /* - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; + /** {@inheritDoc} */ + @Override + public HiveMetastore withId(String id) { + super.withId(id); + return this; + } /** * Get the serverUri property: The serverUri for the Hive MetaStore. @@ -71,7 +74,7 @@ public class HiveMetastore extends SubResource { * @return the serverUri value. */ public String serverUri() { - return this.serverUri; + return this.innerProperties() == null ? null : this.innerProperties().serverUri(); } /** @@ -80,7 +83,7 @@ public String serverUri() { * @return the databaseName value. */ public String databaseName() { - return this.databaseName; + return this.innerProperties() == null ? null : this.innerProperties().databaseName(); } /** @@ -89,7 +92,7 @@ public String databaseName() { * @return the runtimeVersion value. */ public String runtimeVersion() { - return this.runtimeVersion; + return this.innerProperties() == null ? null : this.innerProperties().runtimeVersion(); } /** @@ -98,7 +101,7 @@ public String runtimeVersion() { * @return the username value. */ public String username() { - return this.username; + return this.innerProperties() == null ? null : this.innerProperties().username(); } /** @@ -107,7 +110,7 @@ public String username() { * @return the password value. */ public String password() { - return this.password; + return this.innerProperties() == null ? null : this.innerProperties().password(); } /** @@ -116,32 +119,7 @@ public String password() { * @return the nestedResourceProvisioningState value. */ public NestedResourceProvisioningState nestedResourceProvisioningState() { - return this.nestedResourceProvisioningState; - } - - /** - * Get the name property: The resource name. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the type property: The resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** {@inheritDoc} */ - @Override - public HiveMetastore withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().nestedResourceProvisioningState(); } /** @@ -150,5 +128,8 @@ public HiveMetastore withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Locations.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Locations.java index 5242a7d08a0c2..c43de5e249aeb 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Locations.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Locations.java @@ -28,7 +28,8 @@ public interface Locations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription-level properties and limits for Data Lake Analytics specified by resource location. + * @return subscription-level properties and limits for Data Lake Analytics specified by resource location along + * with {@link Response}. */ Response getCapabilityWithResponse(String location, Context context); } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Operations.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Operations.java index d7343b622abc7..23d33d05dfed9 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Operations.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/Operations.java @@ -25,7 +25,7 @@ public interface Operations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of available operations for Data Lake Analytics. + * @return the list of available operations for Data Lake Analytics along with {@link Response}. */ Response listWithResponse(Context context); } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccountInformation.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccountInformation.java index 57487810663da..f2bb195fe4c57 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccountInformation.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccountInformation.java @@ -15,13 +15,6 @@ public interface StorageAccountInformation { */ String id(); - /** - * Gets the suffix property: The optional suffix for the storage account. - * - * @return the suffix value. - */ - String suffix(); - /** * Gets the name property: The resource name. * @@ -36,6 +29,13 @@ public interface StorageAccountInformation { */ String type(); + /** + * Gets the suffix property: The optional suffix for the storage account. + * + * @return the suffix value. + */ + String suffix(); + /** * Gets the inner com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageAccountInformationInner object. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccounts.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccounts.java index 3852afc45fd5d..a1cb48141d21b 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccounts.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageAccounts.java @@ -19,7 +19,8 @@ public interface StorageAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ PagedIterable listByAccount(String resourceGroupName, String accountName); @@ -43,7 +44,8 @@ public interface StorageAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. + * @return the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account as + * paginated response with {@link PagedIterable}. */ PagedIterable listByAccount( String resourceGroupName, @@ -84,7 +86,7 @@ void add( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response addWithResponse( String resourceGroupName, @@ -116,7 +118,8 @@ Response addWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Storage account linked to the given Data Lake Analytics account. + * @return the specified Azure Storage account linked to the given Data Lake Analytics account along with {@link + * Response}. */ Response getWithResponse( String resourceGroupName, String accountName, String storageAccountName, Context context); @@ -147,7 +150,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response updateWithResponse( String resourceGroupName, @@ -178,7 +181,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String accountName, String storageAccountName, Context context); @@ -194,7 +197,7 @@ Response deleteWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ PagedIterable listStorageContainers( String resourceGroupName, String accountName, String storageAccountName); @@ -211,7 +214,7 @@ PagedIterable listStorageContainers( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of blob containers associated with the storage account attached to the Data Lake Analytics - * account. + * account as paginated response with {@link PagedIterable}. */ PagedIterable listStorageContainers( String resourceGroupName, String accountName, String storageAccountName, Context context); @@ -246,7 +249,7 @@ StorageContainer getStorageContainer( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage - * accounts. + * accounts along with {@link Response}. */ Response getStorageContainerWithResponse( String resourceGroupName, String accountName, String storageAccountName, String containerName, Context context); @@ -263,7 +266,7 @@ Response getStorageContainerWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ PagedIterable listSasTokens( String resourceGroupName, String accountName, String storageAccountName, String containerName); @@ -281,7 +284,7 @@ PagedIterable listSasTokens( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container - * combination. + * combination as paginated response with {@link PagedIterable}. */ PagedIterable listSasTokens( String resourceGroupName, String accountName, String storageAccountName, String containerName, Context context); diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageContainer.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageContainer.java index 1dc466dd7b4a2..dbb38c6b151c0 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageContainer.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/StorageContainer.java @@ -16,13 +16,6 @@ public interface StorageContainer { */ String id(); - /** - * Gets the lastModifiedTime property: The last modified time of the blob container. - * - * @return the lastModifiedTime value. - */ - OffsetDateTime lastModifiedTime(); - /** * Gets the name property: The resource name. * @@ -37,6 +30,13 @@ public interface StorageContainer { */ String type(); + /** + * Gets the lastModifiedTime property: The last modified time of the blob container. + * + * @return the lastModifiedTime value. + */ + OffsetDateTime lastModifiedTime(); + /** * Gets the inner com.azure.resourcemanager.datalakeanalytics.fluent.models.StorageContainerInner object. * diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyParameters.java index 53b7f8aa994a9..15bc78b19a4f0 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyParameters.java @@ -5,45 +5,31 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateComputePolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; /** The parameters used to update a compute policy. */ -@JsonFlatten @Fluent -public class UpdateComputePolicyParameters { +public final class UpdateComputePolicyParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateComputePolicyParameters.class); /* - * The AAD object identifier for the entity to create a policy for. + * The compute policy properties to use when updating a compute policy. */ - @JsonProperty(value = "properties.objectId") - private UUID objectId; + @JsonProperty(value = "properties") + private UpdateComputePolicyProperties innerProperties; - /* - * The type of AAD object the object identifier refers to. - */ - @JsonProperty(value = "properties.objectType") - private AadObjectType objectType; - - /* - * The maximum degree of parallelism per job this user can use to submit - * jobs. This property, the min priority per job property, or both must be - * passed. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum priority per job this user can use to submit jobs. This - * property, the max degree of parallelism per job property, or both must - * be passed. + /** + * Get the innerProperties property: The compute policy properties to use when updating a compute policy. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; + private UpdateComputePolicyProperties innerProperties() { + return this.innerProperties; + } /** * Get the objectId property: The AAD object identifier for the entity to create a policy for. @@ -51,7 +37,7 @@ public class UpdateComputePolicyParameters { * @return the objectId value. */ public UUID objectId() { - return this.objectId; + return this.innerProperties() == null ? null : this.innerProperties().objectId(); } /** @@ -61,7 +47,10 @@ public UUID objectId() { * @return the UpdateComputePolicyParameters object itself. */ public UpdateComputePolicyParameters withObjectId(UUID objectId) { - this.objectId = objectId; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withObjectId(objectId); return this; } @@ -71,7 +60,7 @@ public UpdateComputePolicyParameters withObjectId(UUID objectId) { * @return the objectType value. */ public AadObjectType objectType() { - return this.objectType; + return this.innerProperties() == null ? null : this.innerProperties().objectType(); } /** @@ -81,7 +70,10 @@ public AadObjectType objectType() { * @return the UpdateComputePolicyParameters object itself. */ public UpdateComputePolicyParameters withObjectType(AadObjectType objectType) { - this.objectType = objectType; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withObjectType(objectType); return this; } @@ -92,7 +84,7 @@ public UpdateComputePolicyParameters withObjectType(AadObjectType objectType) { * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -103,7 +95,10 @@ public Integer maxDegreeOfParallelismPerJob() { * @return the UpdateComputePolicyParameters object itself. */ public UpdateComputePolicyParameters withMaxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -114,7 +109,7 @@ public UpdateComputePolicyParameters withMaxDegreeOfParallelismPerJob(Integer ma * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -125,7 +120,10 @@ public Integer minPriorityPerJob() { * @return the UpdateComputePolicyParameters object itself. */ public UpdateComputePolicyParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -135,5 +133,8 @@ public UpdateComputePolicyParameters withMinPriorityPerJob(Integer minPriorityPe * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyWithAccountParameters.java index 87134ceaa8904..6eb0928477230 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateComputePolicyWithAccountParameters.java @@ -5,16 +5,15 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateComputePolicyProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; /** The parameters used to update a compute policy while updating a Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class UpdateComputePolicyWithAccountParameters { +public final class UpdateComputePolicyWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateComputePolicyWithAccountParameters.class); /* @@ -24,32 +23,10 @@ public class UpdateComputePolicyWithAccountParameters { private String name; /* - * The AAD object identifier for the entity to create a policy for. + * The compute policy properties to use when updating a compute policy. */ - @JsonProperty(value = "properties.objectId") - private UUID objectId; - - /* - * The type of AAD object the object identifier refers to. - */ - @JsonProperty(value = "properties.objectType") - private AadObjectType objectType; - - /* - * The maximum degree of parallelism per job this user can use to submit - * jobs. This property, the min priority per job property, or both must be - * passed. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum priority per job this user can use to submit jobs. This - * property, the max degree of parallelism per job property, or both must - * be passed. - */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; + @JsonProperty(value = "properties") + private UpdateComputePolicyProperties innerProperties; /** * Get the name property: The unique name of the compute policy to update. @@ -71,13 +48,22 @@ public UpdateComputePolicyWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The compute policy properties to use when updating a compute policy. + * + * @return the innerProperties value. + */ + private UpdateComputePolicyProperties innerProperties() { + return this.innerProperties; + } + /** * Get the objectId property: The AAD object identifier for the entity to create a policy for. * * @return the objectId value. */ public UUID objectId() { - return this.objectId; + return this.innerProperties() == null ? null : this.innerProperties().objectId(); } /** @@ -87,7 +73,10 @@ public UUID objectId() { * @return the UpdateComputePolicyWithAccountParameters object itself. */ public UpdateComputePolicyWithAccountParameters withObjectId(UUID objectId) { - this.objectId = objectId; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withObjectId(objectId); return this; } @@ -97,7 +86,7 @@ public UpdateComputePolicyWithAccountParameters withObjectId(UUID objectId) { * @return the objectType value. */ public AadObjectType objectType() { - return this.objectType; + return this.innerProperties() == null ? null : this.innerProperties().objectType(); } /** @@ -107,7 +96,10 @@ public AadObjectType objectType() { * @return the UpdateComputePolicyWithAccountParameters object itself. */ public UpdateComputePolicyWithAccountParameters withObjectType(AadObjectType objectType) { - this.objectType = objectType; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withObjectType(objectType); return this; } @@ -118,7 +110,7 @@ public UpdateComputePolicyWithAccountParameters withObjectType(AadObjectType obj * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -130,7 +122,10 @@ public Integer maxDegreeOfParallelismPerJob() { */ public UpdateComputePolicyWithAccountParameters withMaxDegreeOfParallelismPerJob( Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -141,7 +136,7 @@ public UpdateComputePolicyWithAccountParameters withMaxDegreeOfParallelismPerJob * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -152,7 +147,10 @@ public Integer minPriorityPerJob() { * @return the UpdateComputePolicyWithAccountParameters object itself. */ public UpdateComputePolicyWithAccountParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateComputePolicyProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -168,5 +166,8 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model UpdateComputePolicyWithAccountParameters")); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } 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 454c278f85183..a20733be98d4f 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 @@ -5,100 +5,32 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateDataLakeAnalyticsAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** The parameters that can be used to update an existing Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class UpdateDataLakeAnalyticsAccountParameters { +public final class UpdateDataLakeAnalyticsAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeAnalyticsAccountParameters.class); /* * The resource tags. */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* - * The list of Data Lake Store accounts associated with this account. - */ - @JsonProperty(value = "properties.dataLakeStoreAccounts") - private List dataLakeStoreAccounts; - - /* - * The list of Azure Blob storage accounts associated with this account. - */ - @JsonProperty(value = "properties.storageAccounts") - private List storageAccounts; - - /* - * The list of compute policies associated with this account. - */ - @JsonProperty(value = "properties.computePolicies") - private List computePolicies; - - /* - * The list of firewall rules associated with this account. - */ - @JsonProperty(value = "properties.firewallRules") - private List firewallRules; - - /* - * The current state of the IP address firewall for this account. Disabling - * the firewall does not remove existing rules, they will just be ignored - * until the firewall is re-enabled. - */ - @JsonProperty(value = "properties.firewallState") - private FirewallState firewallState; - - /* - * The current state of allowing or disallowing IPs originating within - * Azure through the firewall. If the firewall is disabled, this is not - * enforced. - */ - @JsonProperty(value = "properties.firewallAllowAzureIps") - private FirewallAllowAzureIpsState firewallAllowAzureIps; - - /* - * The commitment tier to use for next month. - */ - @JsonProperty(value = "properties.newTier") - private TierType newTier; - - /* - * The maximum supported jobs running under the account at the same time. - */ - @JsonProperty(value = "properties.maxJobCount") - private Integer maxJobCount; - - /* - * The maximum supported degree of parallelism for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelism") - private Integer maxDegreeOfParallelism; - - /* - * The maximum supported degree of parallelism per job for this account. - */ - @JsonProperty(value = "properties.maxDegreeOfParallelismPerJob") - private Integer maxDegreeOfParallelismPerJob; - - /* - * The minimum supported priority per job for this account. - */ - @JsonProperty(value = "properties.minPriorityPerJob") - private Integer minPriorityPerJob; - - /* - * The number of days that job metadata is retained. + * The properties that can be updated in an existing Data Lake Analytics + * account. */ - @JsonProperty(value = "properties.queryStoreRetention") - private Integer queryStoreRetention; + @JsonProperty(value = "properties") + private UpdateDataLakeAnalyticsAccountProperties innerProperties; /** * Get the tags property: The resource tags. @@ -120,13 +52,22 @@ public UpdateDataLakeAnalyticsAccountParameters withTags(Map tag return this; } + /** + * Get the innerProperties property: The properties that can be updated in an existing Data Lake Analytics account. + * + * @return the innerProperties value. + */ + private UpdateDataLakeAnalyticsAccountProperties innerProperties() { + return this.innerProperties; + } + /** * Get the dataLakeStoreAccounts property: The list of Data Lake Store accounts associated with this account. * * @return the dataLakeStoreAccounts value. */ public List dataLakeStoreAccounts() { - return this.dataLakeStoreAccounts; + return this.innerProperties() == null ? null : this.innerProperties().dataLakeStoreAccounts(); } /** @@ -137,7 +78,10 @@ public List dataLakeStoreAccounts() { */ public UpdateDataLakeAnalyticsAccountParameters withDataLakeStoreAccounts( List dataLakeStoreAccounts) { - this.dataLakeStoreAccounts = dataLakeStoreAccounts; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withDataLakeStoreAccounts(dataLakeStoreAccounts); return this; } @@ -147,7 +91,7 @@ public UpdateDataLakeAnalyticsAccountParameters withDataLakeStoreAccounts( * @return the storageAccounts value. */ public List storageAccounts() { - return this.storageAccounts; + return this.innerProperties() == null ? null : this.innerProperties().storageAccounts(); } /** @@ -158,7 +102,10 @@ public List storageAccounts() { */ public UpdateDataLakeAnalyticsAccountParameters withStorageAccounts( List storageAccounts) { - this.storageAccounts = storageAccounts; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withStorageAccounts(storageAccounts); return this; } @@ -168,7 +115,7 @@ public UpdateDataLakeAnalyticsAccountParameters withStorageAccounts( * @return the computePolicies value. */ public List computePolicies() { - return this.computePolicies; + return this.innerProperties() == null ? null : this.innerProperties().computePolicies(); } /** @@ -179,7 +126,10 @@ public List computePolicies() { */ public UpdateDataLakeAnalyticsAccountParameters withComputePolicies( List computePolicies) { - this.computePolicies = computePolicies; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withComputePolicies(computePolicies); return this; } @@ -189,7 +139,7 @@ public UpdateDataLakeAnalyticsAccountParameters withComputePolicies( * @return the firewallRules value. */ public List firewallRules() { - return this.firewallRules; + return this.innerProperties() == null ? null : this.innerProperties().firewallRules(); } /** @@ -200,7 +150,10 @@ public List firewallRules() { */ public UpdateDataLakeAnalyticsAccountParameters withFirewallRules( List firewallRules) { - this.firewallRules = firewallRules; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallRules(firewallRules); return this; } @@ -211,7 +164,7 @@ public UpdateDataLakeAnalyticsAccountParameters withFirewallRules( * @return the firewallState value. */ public FirewallState firewallState() { - return this.firewallState; + return this.innerProperties() == null ? null : this.innerProperties().firewallState(); } /** @@ -222,7 +175,10 @@ public FirewallState firewallState() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withFirewallState(FirewallState firewallState) { - this.firewallState = firewallState; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallState(firewallState); return this; } @@ -233,7 +189,7 @@ public UpdateDataLakeAnalyticsAccountParameters withFirewallState(FirewallState * @return the firewallAllowAzureIps value. */ public FirewallAllowAzureIpsState firewallAllowAzureIps() { - return this.firewallAllowAzureIps; + return this.innerProperties() == null ? null : this.innerProperties().firewallAllowAzureIps(); } /** @@ -245,7 +201,10 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() { */ public UpdateDataLakeAnalyticsAccountParameters withFirewallAllowAzureIps( FirewallAllowAzureIpsState firewallAllowAzureIps) { - this.firewallAllowAzureIps = firewallAllowAzureIps; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withFirewallAllowAzureIps(firewallAllowAzureIps); return this; } @@ -255,7 +214,7 @@ public UpdateDataLakeAnalyticsAccountParameters withFirewallAllowAzureIps( * @return the newTier value. */ public TierType newTier() { - return this.newTier; + return this.innerProperties() == null ? null : this.innerProperties().newTier(); } /** @@ -265,7 +224,10 @@ public TierType newTier() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withNewTier(TierType newTier) { - this.newTier = newTier; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withNewTier(newTier); return this; } @@ -275,7 +237,7 @@ public UpdateDataLakeAnalyticsAccountParameters withNewTier(TierType newTier) { * @return the maxJobCount value. */ public Integer maxJobCount() { - return this.maxJobCount; + return this.innerProperties() == null ? null : this.innerProperties().maxJobCount(); } /** @@ -285,7 +247,10 @@ public Integer maxJobCount() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withMaxJobCount(Integer maxJobCount) { - this.maxJobCount = maxJobCount; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxJobCount(maxJobCount); return this; } @@ -295,7 +260,7 @@ public UpdateDataLakeAnalyticsAccountParameters withMaxJobCount(Integer maxJobCo * @return the maxDegreeOfParallelism value. */ public Integer maxDegreeOfParallelism() { - return this.maxDegreeOfParallelism; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelism(); } /** @@ -305,7 +270,10 @@ public Integer maxDegreeOfParallelism() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) { - this.maxDegreeOfParallelism = maxDegreeOfParallelism; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelism(maxDegreeOfParallelism); return this; } @@ -316,7 +284,7 @@ public UpdateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelism(Integ * @return the maxDegreeOfParallelismPerJob value. */ public Integer maxDegreeOfParallelismPerJob() { - return this.maxDegreeOfParallelismPerJob; + return this.innerProperties() == null ? null : this.innerProperties().maxDegreeOfParallelismPerJob(); } /** @@ -328,7 +296,10 @@ public Integer maxDegreeOfParallelismPerJob() { */ public UpdateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelismPerJob( Integer maxDegreeOfParallelismPerJob) { - this.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMaxDegreeOfParallelismPerJob(maxDegreeOfParallelismPerJob); return this; } @@ -338,7 +309,7 @@ public UpdateDataLakeAnalyticsAccountParameters withMaxDegreeOfParallelismPerJob * @return the minPriorityPerJob value. */ public Integer minPriorityPerJob() { - return this.minPriorityPerJob; + return this.innerProperties() == null ? null : this.innerProperties().minPriorityPerJob(); } /** @@ -348,7 +319,10 @@ public Integer minPriorityPerJob() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withMinPriorityPerJob(Integer minPriorityPerJob) { - this.minPriorityPerJob = minPriorityPerJob; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withMinPriorityPerJob(minPriorityPerJob); return this; } @@ -358,7 +332,7 @@ public UpdateDataLakeAnalyticsAccountParameters withMinPriorityPerJob(Integer mi * @return the queryStoreRetention value. */ public Integer queryStoreRetention() { - return this.queryStoreRetention; + return this.innerProperties() == null ? null : this.innerProperties().queryStoreRetention(); } /** @@ -368,7 +342,10 @@ public Integer queryStoreRetention() { * @return the UpdateDataLakeAnalyticsAccountParameters object itself. */ public UpdateDataLakeAnalyticsAccountParameters withQueryStoreRetention(Integer queryStoreRetention) { - this.queryStoreRetention = queryStoreRetention; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeAnalyticsAccountProperties(); + } + this.innerProperties().withQueryStoreRetention(queryStoreRetention); return this; } @@ -378,17 +355,8 @@ public UpdateDataLakeAnalyticsAccountParameters withQueryStoreRetention(Integer * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (dataLakeStoreAccounts() != null) { - dataLakeStoreAccounts().forEach(e -> e.validate()); - } - if (storageAccounts() != null) { - storageAccounts().forEach(e -> e.validate()); - } - if (computePolicies() != null) { - computePolicies().forEach(e -> e.validate()); - } - if (firewallRules() != null) { - firewallRules().forEach(e -> e.validate()); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeStoreWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeStoreWithAccountParameters.java index a37ce0a0e21f7..a5baadd5abf41 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeStoreWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateDataLakeStoreWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateDataLakeStoreProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to update a Data Lake Store account while updating a Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class UpdateDataLakeStoreWithAccountParameters { +public final class UpdateDataLakeStoreWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateDataLakeStoreWithAccountParameters.class); /* @@ -23,10 +22,11 @@ public class UpdateDataLakeStoreWithAccountParameters { private String name; /* - * The optional suffix for the Data Lake Store account. + * The Data Lake Store account properties to use when updating a Data Lake + * Store account. */ - @JsonProperty(value = "properties.suffix") - private String suffix; + @JsonProperty(value = "properties") + private UpdateDataLakeStoreProperties innerProperties; /** * Get the name property: The unique name of the Data Lake Store account to update. @@ -48,13 +48,23 @@ public UpdateDataLakeStoreWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The Data Lake Store account properties to use when updating a Data Lake Store + * account. + * + * @return the innerProperties value. + */ + private UpdateDataLakeStoreProperties innerProperties() { + return this.innerProperties; + } + /** * Get the suffix property: The optional suffix for the Data Lake Store account. * * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -64,7 +74,10 @@ public String suffix() { * @return the UpdateDataLakeStoreWithAccountParameters object itself. */ public UpdateDataLakeStoreWithAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateDataLakeStoreProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -80,5 +93,8 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model UpdateDataLakeStoreWithAccountParameters")); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleParameters.java index 5c28f130b899d..8c466532ea083 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleParameters.java @@ -5,30 +5,30 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateFirewallRuleProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to update a firewall rule. */ -@JsonFlatten @Fluent -public class UpdateFirewallRuleParameters { +public final class UpdateFirewallRuleParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateFirewallRuleParameters.class); /* - * The start IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + * The firewall rule properties to use when updating a firewall rule. */ - @JsonProperty(value = "properties.startIpAddress") - private String startIpAddress; + @JsonProperty(value = "properties") + private UpdateFirewallRuleProperties innerProperties; - /* - * The end IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + /** + * Get the innerProperties property: The firewall rule properties to use when updating a firewall rule. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.endIpAddress") - private String endIpAddress; + private UpdateFirewallRuleProperties innerProperties() { + return this.innerProperties; + } /** * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. @@ -37,7 +37,7 @@ public class UpdateFirewallRuleParameters { * @return the startIpAddress value. */ public String startIpAddress() { - return this.startIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().startIpAddress(); } /** @@ -48,7 +48,10 @@ public String startIpAddress() { * @return the UpdateFirewallRuleParameters object itself. */ public UpdateFirewallRuleParameters withStartIpAddress(String startIpAddress) { - this.startIpAddress = startIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateFirewallRuleProperties(); + } + this.innerProperties().withStartIpAddress(startIpAddress); return this; } @@ -59,7 +62,7 @@ public UpdateFirewallRuleParameters withStartIpAddress(String startIpAddress) { * @return the endIpAddress value. */ public String endIpAddress() { - return this.endIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().endIpAddress(); } /** @@ -70,7 +73,10 @@ public String endIpAddress() { * @return the UpdateFirewallRuleParameters object itself. */ public UpdateFirewallRuleParameters withEndIpAddress(String endIpAddress) { - this.endIpAddress = endIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateFirewallRuleProperties(); + } + this.innerProperties().withEndIpAddress(endIpAddress); return this; } @@ -80,5 +86,8 @@ public UpdateFirewallRuleParameters withEndIpAddress(String endIpAddress) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleWithAccountParameters.java index 1fc07d9645520..c2362efc2526f 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateFirewallRuleWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateFirewallRuleProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to update a firewall rule while updating a Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class UpdateFirewallRuleWithAccountParameters { +public final class UpdateFirewallRuleWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateFirewallRuleWithAccountParameters.class); /* @@ -23,18 +22,10 @@ public class UpdateFirewallRuleWithAccountParameters { private String name; /* - * The start IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. + * The firewall rule properties to use when updating a firewall rule. */ - @JsonProperty(value = "properties.startIpAddress") - private String startIpAddress; - - /* - * The end IP address for the firewall rule. This can be either ipv4 or - * ipv6. Start and End should be in the same protocol. - */ - @JsonProperty(value = "properties.endIpAddress") - private String endIpAddress; + @JsonProperty(value = "properties") + private UpdateFirewallRuleProperties innerProperties; /** * Get the name property: The unique name of the firewall rule to update. @@ -56,6 +47,15 @@ public UpdateFirewallRuleWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The firewall rule properties to use when updating a firewall rule. + * + * @return the innerProperties value. + */ + private UpdateFirewallRuleProperties innerProperties() { + return this.innerProperties; + } + /** * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. * Start and End should be in the same protocol. @@ -63,7 +63,7 @@ public UpdateFirewallRuleWithAccountParameters withName(String name) { * @return the startIpAddress value. */ public String startIpAddress() { - return this.startIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().startIpAddress(); } /** @@ -74,7 +74,10 @@ public String startIpAddress() { * @return the UpdateFirewallRuleWithAccountParameters object itself. */ public UpdateFirewallRuleWithAccountParameters withStartIpAddress(String startIpAddress) { - this.startIpAddress = startIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateFirewallRuleProperties(); + } + this.innerProperties().withStartIpAddress(startIpAddress); return this; } @@ -85,7 +88,7 @@ public UpdateFirewallRuleWithAccountParameters withStartIpAddress(String startIp * @return the endIpAddress value. */ public String endIpAddress() { - return this.endIpAddress; + return this.innerProperties() == null ? null : this.innerProperties().endIpAddress(); } /** @@ -96,7 +99,10 @@ public String endIpAddress() { * @return the UpdateFirewallRuleWithAccountParameters object itself. */ public UpdateFirewallRuleWithAccountParameters withEndIpAddress(String endIpAddress) { - this.endIpAddress = endIpAddress; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateFirewallRuleProperties(); + } + this.innerProperties().withEndIpAddress(endIpAddress); return this; } @@ -112,5 +118,8 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model UpdateFirewallRuleWithAccountParameters")); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountParameters.java index 135057c4ed088..ef5767845cb37 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountParameters.java @@ -5,29 +5,32 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateStorageAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to update an Azure Storage account. */ -@JsonFlatten @Fluent -public class UpdateStorageAccountParameters { +public final class UpdateStorageAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateStorageAccountParameters.class); /* - * The updated access key associated with this Azure Storage account that - * will be used to connect to it. + * The Azure Storage account properties to use when updating an Azure + * Storage account. */ - @JsonProperty(value = "properties.accessKey") - private String accessKey; + @JsonProperty(value = "properties") + private UpdateStorageAccountProperties innerProperties; - /* - * The optional suffix for the storage account. + /** + * Get the innerProperties property: The Azure Storage account properties to use when updating an Azure Storage + * account. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.suffix") - private String suffix; + private UpdateStorageAccountProperties innerProperties() { + return this.innerProperties; + } /** * Get the accessKey property: The updated access key associated with this Azure Storage account that will be used @@ -36,7 +39,7 @@ public class UpdateStorageAccountParameters { * @return the accessKey value. */ public String accessKey() { - return this.accessKey; + return this.innerProperties() == null ? null : this.innerProperties().accessKey(); } /** @@ -47,7 +50,10 @@ public String accessKey() { * @return the UpdateStorageAccountParameters object itself. */ public UpdateStorageAccountParameters withAccessKey(String accessKey) { - this.accessKey = accessKey; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateStorageAccountProperties(); + } + this.innerProperties().withAccessKey(accessKey); return this; } @@ -57,7 +63,7 @@ public UpdateStorageAccountParameters withAccessKey(String accessKey) { * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -67,7 +73,10 @@ public String suffix() { * @return the UpdateStorageAccountParameters object itself. */ public UpdateStorageAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateStorageAccountProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -77,5 +86,8 @@ public UpdateStorageAccountParameters withSuffix(String suffix) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountWithAccountParameters.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountWithAccountParameters.java index 0e8cdf4dde947..3ab0412ee5706 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountWithAccountParameters.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/UpdateStorageAccountWithAccountParameters.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.datalakeanalytics.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.UpdateStorageAccountProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters used to update an Azure Storage account while updating a Data Lake Analytics account. */ -@JsonFlatten @Fluent -public class UpdateStorageAccountWithAccountParameters { +public final class UpdateStorageAccountWithAccountParameters { @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateStorageAccountWithAccountParameters.class); /* @@ -23,17 +22,11 @@ public class UpdateStorageAccountWithAccountParameters { private String name; /* - * The updated access key associated with this Azure Storage account that - * will be used to connect to it. + * The Azure Storage account properties to use when updating an Azure + * Storage account. */ - @JsonProperty(value = "properties.accessKey") - private String accessKey; - - /* - * The optional suffix for the storage account. - */ - @JsonProperty(value = "properties.suffix") - private String suffix; + @JsonProperty(value = "properties") + private UpdateStorageAccountProperties innerProperties; /** * Get the name property: The unique name of the Azure Storage account to update. @@ -55,6 +48,16 @@ public UpdateStorageAccountWithAccountParameters withName(String name) { return this; } + /** + * Get the innerProperties property: The Azure Storage account properties to use when updating an Azure Storage + * account. + * + * @return the innerProperties value. + */ + private UpdateStorageAccountProperties innerProperties() { + return this.innerProperties; + } + /** * Get the accessKey property: The updated access key associated with this Azure Storage account that will be used * to connect to it. @@ -62,7 +65,7 @@ public UpdateStorageAccountWithAccountParameters withName(String name) { * @return the accessKey value. */ public String accessKey() { - return this.accessKey; + return this.innerProperties() == null ? null : this.innerProperties().accessKey(); } /** @@ -73,7 +76,10 @@ public String accessKey() { * @return the UpdateStorageAccountWithAccountParameters object itself. */ public UpdateStorageAccountWithAccountParameters withAccessKey(String accessKey) { - this.accessKey = accessKey; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateStorageAccountProperties(); + } + this.innerProperties().withAccessKey(accessKey); return this; } @@ -83,7 +89,7 @@ public UpdateStorageAccountWithAccountParameters withAccessKey(String accessKey) * @return the suffix value. */ public String suffix() { - return this.suffix; + return this.innerProperties() == null ? null : this.innerProperties().suffix(); } /** @@ -93,7 +99,10 @@ public String suffix() { * @return the UpdateStorageAccountWithAccountParameters object itself. */ public UpdateStorageAccountWithAccountParameters withSuffix(String suffix) { - this.suffix = suffix; + if (this.innerProperties() == null) { + this.innerProperties = new UpdateStorageAccountProperties(); + } + this.innerProperties().withSuffix(suffix); return this; } @@ -109,5 +118,8 @@ public void validate() { new IllegalArgumentException( "Missing required property name in model UpdateStorageAccountWithAccountParameters")); } + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/VirtualNetworkRule.java b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/VirtualNetworkRule.java index e8a314d78737a..6eb8640646c84 100644 --- a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/VirtualNetworkRule.java +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/models/VirtualNetworkRule.java @@ -4,30 +4,23 @@ package com.azure.resourcemanager.datalakeanalytics.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.datalakeanalytics.fluent.models.VirtualNetworkRuleProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Data Lake Analytics VirtualNetwork Rule information. */ -@JsonFlatten -@Immutable -public class VirtualNetworkRule extends SubResource { +@Fluent +public final class VirtualNetworkRule extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRule.class); /* - * The resource identifier for the subnet + * The VirtualNetwork rule properties. */ - @JsonProperty(value = "properties.subnetId", access = JsonProperty.Access.WRITE_ONLY) - private String subnetId; - - /* - * The current state of the VirtualNetwork Rule - */ - @JsonProperty(value = "properties.virtualNetworkRuleState", access = JsonProperty.Access.WRITE_ONLY) - private VirtualNetworkRuleState virtualNetworkRuleState; + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private VirtualNetworkRuleProperties innerProperties; /* * The resource name. @@ -42,21 +35,12 @@ public class VirtualNetworkRule extends SubResource { private String type; /** - * Get the subnetId property: The resource identifier for the subnet. + * Get the innerProperties property: The VirtualNetwork rule properties. * - * @return the subnetId value. + * @return the innerProperties value. */ - public String subnetId() { - return this.subnetId; - } - - /** - * Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule. - * - * @return the virtualNetworkRuleState value. - */ - public VirtualNetworkRuleState virtualNetworkRuleState() { - return this.virtualNetworkRuleState; + private VirtualNetworkRuleProperties innerProperties() { + return this.innerProperties; } /** @@ -84,11 +68,32 @@ public VirtualNetworkRule withId(String id) { return this; } + /** + * Get the subnetId property: The resource identifier for the subnet. + * + * @return the subnetId value. + */ + public String subnetId() { + return this.innerProperties() == null ? null : this.innerProperties().subnetId(); + } + + /** + * Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule. + * + * @return the virtualNetworkRuleState value. + */ + public VirtualNetworkRuleState virtualNetworkRuleState() { + return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRuleState(); + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } } } diff --git a/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/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 new file mode 100644 index 0000000000000..ef0baf854972d --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCheckNameAvailabilitySamples.java @@ -0,0 +1,27 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.CheckNameAvailabilityParameters; + +/** Samples for Accounts CheckNameAvailability. */ +public final class AccountsCheckNameAvailabilitySamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_CheckNameAvailability.json + */ + /** + * Sample code: Checks whether the specified account name is available or taken. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void checksWhetherTheSpecifiedAccountNameIsAvailableOrTaken( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .checkNameAvailabilityWithResponse( + "EastUS2", new CheckNameAvailabilityParameters().withName("contosoadla"), Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..df1afd46581f1 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsCreateSamples.java @@ -0,0 +1,89 @@ +// 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.AadObjectType; +import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.CreateFirewallRuleWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +/** Samples for Accounts Create. */ +public final class AccountsCreateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Create.json + */ + /** + * Sample code: Creates the specified Data Lake Analytics account. This supplies the user with computation services + * for Data Lake Analytics workloads. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + createsTheSpecifiedDataLakeAnalyticsAccountThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .define("contosoadla") + .withRegion("eastus2") + .withExistingResourceGroup("contosorg") + .withDefaultDataLakeStoreAccount("test_adls") + .withDataLakeStoreAccounts( + Arrays + .asList( + new AddDataLakeStoreWithAccountParameters().withName("test_adls").withSuffix("test_suffix"))) + .withTags(mapOf("test_key", "test_value")) + .withStorageAccounts( + Arrays + .asList( + new AddStorageAccountWithAccountParameters() + .withName("test_storage") + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"))) + .withComputePolicies( + Arrays + .asList( + new CreateComputePolicyWithAccountParameters() + .withName("test_policy") + .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1))) + .withFirewallRules( + Arrays + .asList( + new CreateFirewallRuleWithAccountParameters() + .withName("test_rule") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2"))) + .withFirewallState(FirewallState.ENABLED) + .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withNewTier(TierType.CONSUMPTION) + .withMaxJobCount(3) + .withMaxDegreeOfParallelism(30) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1) + .withQueryStoreRetention(30) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} 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 new file mode 100644 index 0000000000000..d8669f5143423 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsDeleteSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for Accounts Delete. */ +public final class AccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Delete.json + */ + /** + * Sample code: Begins the delete process for the Data Lake Analytics account object specified by the account name. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void beginsTheDeleteProcessForTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountName( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().delete("contosorg", "contosoadla", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..b2c5ce0d7e1db --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsGetByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for Accounts GetByResourceGroup. */ +public final class AccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Get.json + */ + /** + * Sample code: Gets details of the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsDetailsOfTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..6ae8d1a940972 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListByResourceGroupSamples.java @@ -0,0 +1,27 @@ +// 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.Context; + +/** Samples for Accounts ListByResourceGroup. */ +public final class AccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_ListByResourceGroup.json + */ + /** + * Sample code: Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This + * includes a link to the next page, if any. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinASpecificResourceGroupThisIncludesALinkToTheNextPageIfAny( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .accounts() + .listByResourceGroup("contosorg", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..d99f8dc9db798 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsListSamples.java @@ -0,0 +1,25 @@ +// 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.Context; + +/** Samples for Accounts List. */ +public final class AccountsListSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_List.json + */ + /** + * Sample code: Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This + * includes a link to the next page, if any. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.accounts().list("test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..4e27a0360ab3e --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/AccountsUpdateSamples.java @@ -0,0 +1,76 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AadObjectType; +import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccount; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallAllowAzureIpsState; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallState; +import com.azure.resourcemanager.datalakeanalytics.models.TierType; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateComputePolicyWithAccountParameters; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateFirewallRuleWithAccountParameters; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +/** Samples for Accounts Update. */ +public final class AccountsUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Update.json + */ + /** + * Sample code: Updates the Data Lake Analytics account object specified by the accountName with the contents of the + * account object. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void + updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + DataLakeAnalyticsAccount resource = + manager.accounts().getByResourceGroupWithResponse("contosorg", "contosoadla", Context.NONE).getValue(); + resource + .update() + .withTags(mapOf("test_key", "test_value")) + .withComputePoliciesForUpdate( + Arrays + .asList( + new UpdateComputePolicyWithAccountParameters() + .withName("test_policy") + .withObjectId(UUID.fromString("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1))) + .withFirewallRulesForUpdate( + Arrays + .asList( + new UpdateFirewallRuleWithAccountParameters() + .withName("test_rule") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2"))) + .withFirewallState(FirewallState.ENABLED) + .withFirewallAllowAzureIps(FirewallAllowAzureIpsState.ENABLED) + .withNewTier(TierType.CONSUMPTION) + .withMaxJobCount(1) + .withMaxDegreeOfParallelism(1) + .withMaxDegreeOfParallelismPerJob(1) + .withMinPriorityPerJob(1) + .withQueryStoreRetention(1) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} 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 new file mode 100644 index 0000000000000..910d25092efbc --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// 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.AadObjectType; +import java.util.UUID; + +/** Samples for ComputePolicies CreateOrUpdate. */ +public final class ComputePoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_CreateOrUpdate.json + */ + /** + * Sample code: Creates or updates the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void createsOrUpdatesTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .computePolicies() + .define("test_policy") + .withExistingAccount("contosorg", "contosoadla") + .withObjectId(UUID.fromString("776b9091-8916-4638-87f7-9c989a38da98")) + .withObjectType(AadObjectType.USER) + .withMaxDegreeOfParallelismPerJob(10) + .withMinPriorityPerJob(30) + .create(); + } +} 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 new file mode 100644 index 0000000000000..3f1d34d2d758c --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesDeleteSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for ComputePolicies Delete. */ +public final class ComputePoliciesDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Delete.json + */ + /** + * Sample code: Deletes the specified compute policy from the adla account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void deletesTheSpecifiedComputePolicyFromTheAdlaAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().deleteWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..0dc3c63ac9b80 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesGetSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for ComputePolicies Get. */ +public final class ComputePoliciesGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Get.json + */ + /** + * Sample code: Gets the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..ebca1be14bd5a --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesListByAccountSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for ComputePolicies ListByAccount. */ +public final class ComputePoliciesListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_ListByAccount.json + */ + /** + * Sample code: Lists the compute policies within the adla account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheComputePoliciesWithinTheAdlaAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.computePolicies().listByAccount("contosorg", "contosoadla", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..975d7443ff43a --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/ComputePoliciesUpdateSamples.java @@ -0,0 +1,29 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.ComputePolicy; + +/** Samples for ComputePolicies Update. */ +public final class ComputePoliciesUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Update.json + */ + /** + * Sample code: Updates the specified compute policy. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void updatesTheSpecifiedComputePolicy( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + ComputePolicy resource = + manager + .computePolicies() + .getWithResponse("contosorg", "contosoadla", "test_policy", Context.NONE) + .getValue(); + resource.update().withMaxDegreeOfParallelismPerJob(11).withMinPriorityPerJob(31).apply(); + } +} 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 new file mode 100644 index 0000000000000..e4c1c8ab3cbd6 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsAddSamples.java @@ -0,0 +1,31 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreParameters; + +/** Samples for DataLakeStoreAccounts Add. */ +public final class DataLakeStoreAccountsAddSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Add.json + */ + /** + * Sample code: Adds a Data Lake Store account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void addsADataLakeStoreAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .addWithResponse( + "contosorg", + "contosoadla", + "test_adls_account", + new AddDataLakeStoreParameters().withSuffix("test_suffix"), + Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..a20769493f7b3 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsDeleteSamples.java @@ -0,0 +1,25 @@ +// 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.Context; + +/** Samples for DataLakeStoreAccounts Delete. */ +public final class DataLakeStoreAccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Delete.json + */ + /** + * Sample code: Removes the specified Data Lake Store account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void removesTheSpecifiedDataLakeStoreAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .deleteWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..2317c34b971f5 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsGetSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for DataLakeStoreAccounts Get. */ +public final class DataLakeStoreAccountsGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Get.json + */ + /** + * Sample code: Gets the specified Data Lake Store account details. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedDataLakeStoreAccountDetails( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.dataLakeStoreAccounts().getWithResponse("contosorg", "contosoadla", "test_adls_account", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..d167a95ca2af3 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/DataLakeStoreAccountsListByAccountSamples.java @@ -0,0 +1,26 @@ +// 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.Context; + +/** Samples for DataLakeStoreAccounts ListByAccount. */ +public final class DataLakeStoreAccountsListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_ListByAccount.json + */ + /** + * Sample code: Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .dataLakeStoreAccounts() + .listByAccount( + "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..fd9aae6aff420 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// 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; + +/** Samples for FirewallRules CreateOrUpdate. */ +public final class FirewallRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_CreateOrUpdate.json + */ + /** + * Sample code: Creates or updates the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void createsOrUpdatesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .firewallRules() + .define("test_rule") + .withExistingAccount("contosorg", "contosoadla") + .withStartIpAddress("1.1.1.1") + .withEndIpAddress("2.2.2.2") + .create(); + } +} 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 new file mode 100644 index 0000000000000..ca543a80693d3 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesDeleteSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for FirewallRules Delete. */ +public final class FirewallRulesDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Delete.json + */ + /** + * Sample code: Deletes the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void deletesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().deleteWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..23092870a9830 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesGetSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for FirewallRules Get. */ +public final class FirewallRulesGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Get.json + */ + /** + * Sample code: Gets the specified Data Lake Analytics firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedDataLakeAnalyticsFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..daa717a3e8489 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesListByAccountSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for FirewallRules ListByAccount. */ +public final class FirewallRulesListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_ListByAccount.json + */ + /** + * Sample code: Lists the Data Lake Analytics firewall rules. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheDataLakeAnalyticsFirewallRules( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.firewallRules().listByAccount("contosorg", "contosoadla", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..a778d3117e9cd --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/FirewallRulesUpdateSamples.java @@ -0,0 +1,26 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.FirewallRule; + +/** Samples for FirewallRules Update. */ +public final class FirewallRulesUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Update.json + */ + /** + * Sample code: Updates the specified firewall rule. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void updatesTheSpecifiedFirewallRule( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + FirewallRule resource = + manager.firewallRules().getWithResponse("contosorg", "contosoadla", "test_rule", Context.NONE).getValue(); + resource.update().withStartIpAddress("1.1.1.1").withEndIpAddress("2.2.2.2").apply(); + } +} 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 new file mode 100644 index 0000000000000..df90ef59b10d9 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/LocationsGetCapabilitySamples.java @@ -0,0 +1,24 @@ +// 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.Context; + +/** Samples for Locations GetCapability. */ +public final class LocationsGetCapabilitySamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Locations_GetCapability.json + */ + /** + * Sample code: Gets subscription-level properties and limits for Data Lake Analytics specified by resource + * location. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsSubscriptionLevelPropertiesAndLimitsForDataLakeAnalyticsSpecifiedByResourceLocation( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.locations().getCapabilityWithResponse("EastUS2", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..cf1fd0173b24f --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/OperationsListSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Operations_List.json + */ + /** + * Sample code: Lists all of the available Data Lake Analytics REST API operations. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsAllOfTheAvailableDataLakeAnalyticsRESTAPIOperations( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.operations().listWithResponse(Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..e64b38a7b2f1a --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsAddSamples.java @@ -0,0 +1,33 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.AddStorageAccountParameters; + +/** Samples for StorageAccounts Add. */ +public final class StorageAccountsAddSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Add.json + */ + /** + * Sample code: Adds an Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void addsAnAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .addWithResponse( + "contosorg", + "contosoadla", + "test_storage", + new AddStorageAccountParameters() + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"), + Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..39c6d24031637 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsDeleteSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for StorageAccounts Delete. */ +public final class StorageAccountsDeleteSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Delete.json + */ + /** + * Sample code: Removes an Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void removesAnAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().deleteWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..98470db120721 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for StorageAccounts Get. */ +public final class StorageAccountsGetSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Get.json + */ + /** + * Sample code: Gets the specified Azure Storage account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedAzureStorageAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().getWithResponse("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..b568d225fb3d1 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsGetStorageContainerSamples.java @@ -0,0 +1,26 @@ +// 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.Context; + +/** Samples for StorageAccounts GetStorageContainer. */ +public final class StorageAccountsGetStorageContainerSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_GetStorageContainer.json + */ + /** + * Sample code: Gets the specified Azure Storage container. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSpecifiedAzureStorageContainer( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .getStorageContainerWithResponse( + "contosorg", "contosoadla", "test_storage", "test_container", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..67645afd8fc44 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListByAccountSamples.java @@ -0,0 +1,26 @@ +// 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.Context; + +/** Samples for StorageAccounts ListByAccount. */ +public final class StorageAccountsListByAccountSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListByAccount.json + */ + /** + * Sample code: Gets the first page of Azure Storage accounts linked to the specified Data Lake Analytics account. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheFirstPageOfAzureStorageAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .listByAccount( + "contosorg", "contosoadla", "test_filter", 1, 1, "test_select", "test_orderby", false, Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..b1a2836c84fb3 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListSasTokensSamples.java @@ -0,0 +1,24 @@ +// 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.Context; + +/** Samples for StorageAccounts ListSasTokens. */ +public final class StorageAccountsListSasTokensSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListSasTokens.json + */ + /** + * Sample code: Gets the SAS token. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void getsTheSASToken(com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .listSasTokens("contosorg", "contosoadla", "test_storage", "test_container", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..38963bea88cb1 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsListStorageContainersSamples.java @@ -0,0 +1,23 @@ +// 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.Context; + +/** Samples for StorageAccounts ListStorageContainers. */ +public final class StorageAccountsListStorageContainersSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListStorageContainers.json + */ + /** + * Sample code: Lists the Azure Storage containers. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void listsTheAzureStorageContainers( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager.storageAccounts().listStorageContainers("contosorg", "contosoadla", "test_storage", Context.NONE); + } +} 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 new file mode 100644 index 0000000000000..e102e1f8dbb31 --- /dev/null +++ b/sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/samples/java/com/azure/resourcemanager/datalakeanalytics/generated/StorageAccountsUpdateSamples.java @@ -0,0 +1,33 @@ +// 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.Context; +import com.azure.resourcemanager.datalakeanalytics.models.UpdateStorageAccountParameters; + +/** Samples for StorageAccounts Update. */ +public final class StorageAccountsUpdateSamples { + /* + * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Update.json + */ + /** + * Sample code: Replaces Azure Storage blob account details. + * + * @param manager Entry point to DataLakeAnalyticsManager. + */ + public static void replacesAzureStorageBlobAccountDetails( + com.azure.resourcemanager.datalakeanalytics.DataLakeAnalyticsManager manager) { + manager + .storageAccounts() + .updateWithResponse( + "contosorg", + "contosoadla", + "test_storage", + new UpdateStorageAccountParameters() + .withAccessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346") + .withSuffix("test_suffix"), + Context.NONE); + } +}