diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Accounts.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Accounts.java new file mode 100644 index 000000000000..d1f4cb3e9ca8 --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Accounts.java @@ -0,0 +1,834 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.AddDataLakeStoreParameters; +import com.microsoft.azure.management.datalake.analytics.models.AddStorageAccountParameters; +import com.microsoft.azure.management.datalake.analytics.models.BlobContainer; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; +import com.microsoft.azure.management.datalake.analytics.models.SasTokenInfo; +import com.microsoft.azure.management.datalake.analytics.models.StorageAccountInfo; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; + +/** + * An instance of this class provides access to all the operations defined + * in Accounts. + */ +public interface Accounts { + /** + * Gets the specified Azure Storage account linked to the given Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to retrieve Azure storage account details. + * @param storageAccountName The name of the Azure Storage account for which to retrieve the details. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the StorageAccountInfo object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getStorageAccount(String resourceGroupName, String accountName, String storageAccountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified Azure Storage account linked to the given Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to retrieve Azure storage account details. + * @param storageAccountName The name of the Azure Storage account for which to retrieve the details. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to remove an Azure Storage account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to remove the Azure Storage account. + * @param storageAccountName The name of the Azure Storage account to remove + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse deleteStorageAccount(String resourceGroupName, String accountName, String storageAccountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to remove an Azure Storage account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to remove the Azure Storage account. + * @param storageAccountName The name of the Azure Storage account to remove + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to modify storage accounts in + * @param storageAccountName The Azure Storage account to modify + * @param parameters The parameters containing the access key and suffix to update the storage account with. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse updateStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to modify storage accounts in + * @param storageAccountName The Azure Storage account to modify + * @param parameters The parameters containing the access key and suffix to update the storage account with. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall updateStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to add an Azure Storage account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to which to add the Azure Storage account. + * @param storageAccountName The name of the Azure Storage account to add + * @param parameters The parameters containing the access key and optional suffix for the Azure Storage Account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse addStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to add an Azure Storage account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to which to add the Azure Storage account. + * @param storageAccountName The name of the Azure Storage account to add + * @param parameters The parameters containing the access key and optional suffix for the Azure Storage Account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall addStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to retrieve blob container. + * @param storageAccountName The name of the Azure storage account from which to retrieve the blob container. + * @param containerName The name of the Azure storage container to retrieve + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the BlobContainer object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getStorageContainer(String resourceGroupName, String accountName, String storageAccountName, String containerName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to retrieve blob container. + * @param storageAccountName The name of the Azure storage account from which to retrieve the blob container. + * @param containerName The name of the Azure storage container to retrieve + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStorageContainerAsync(String resourceGroupName, String accountName, String storageAccountName, String containerName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage blob containers. + * @param storageAccountName The name of the Azure storage account from which to list blob containers. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<BlobContainer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listStorageContainers(final String resourceGroupName, final String accountName, final String storageAccountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage blob containers. + * @param storageAccountName The name of the Azure storage account from which to list blob containers. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listStorageContainersAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which an Azure Storage account's SAS token is being requested. + * @param storageAccountName The name of the Azure storage account for which the SAS token is being requested. + * @param containerName The name of the Azure storage container for which the SAS token is being requested. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<SasTokenInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listSasTokens(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which an Azure Storage account's SAS token is being requested. + * @param storageAccountName The name of the Azure storage account for which the SAS token is being requested. + * @param containerName The name of the Azure storage container for which the SAS token is being requested. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listSasTokensAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to retrieve the Data Lake Store account details. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeStoreAccountInfo object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to retrieve the Data Lake Store account details. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to remove the Data Lake Store account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse deleteDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account from which to remove the Data Lake Store account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to which to add the Data Lake Store account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to add. + * @param parameters The details of the Data Lake Store account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse addDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParameters parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to which to add the Data Lake Store account. + * @param dataLakeStoreAccountName The name of the Data Lake Store account to add. + * @param parameters The details of the Data Lake Store account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall addDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage accounts. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<StorageAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listStorageAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage accounts. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage accounts. + * @param filter The OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<StorageAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listStorageAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Azure Storage accounts. + * @param filter The OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Data Lake Store accounts. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Data Lake Store accounts. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Data Lake Store accounts. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account for which to list Data Lake Store accounts. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any. + * + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException; + + /** + * 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 serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any. + * + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any. + * + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to retrieve. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to retrieve. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Begins the delete delete process for the Data Lake Analytics account object specified by the account name. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to delete + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse delete(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Begins the delete delete process for the Data Lake Analytics account object specified by the account name. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to delete + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Begins the delete delete process for the Data Lake Analytics account object specified by the account name. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to delete + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse beginDelete(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Begins the delete delete process for the Data Lake Analytics account object specified by the account name. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param accountName The name of the Data Lake Analytics account to delete + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginDeleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with. + * @param name The name of the Data Lake Analytics account to create. + * @param parameters Parameters supplied to the create Data Lake Analytics account operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse create(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with. + * @param name The name of the Data Lake Analytics account to create. + * @param parameters Parameters supplied to the create Data Lake Analytics account operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with. + * @param name The name of the Data Lake Analytics account to create. + * @param parameters Parameters supplied to the create Data Lake Analytics account operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with. + * @param name The name of the Data Lake Analytics account to create. + * @param parameters Parameters supplied to the create Data Lake Analytics account operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param name The name of the Data Lake Analytics account to update. + * @param parameters Parameters supplied to the update Data Lake Analytics account operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse update(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param name The name of the Data Lake Analytics account to update. + * @param parameters Parameters supplied to the update Data Lake Analytics account operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall updateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param name The name of the Data Lake Analytics account to update. + * @param parameters Parameters supplied to the update Data Lake Analytics account operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account. + * @param name The name of the Data Lake Analytics account to update. + * @param parameters Parameters supplied to the update Data Lake Analytics account operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<BlobContainer> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listStorageContainersNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listStorageContainersNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<SasTokenInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listSasTokensNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listSasTokensNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<StorageAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listStorageAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listStorageAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDataLakeStoreAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDataLakeStoreAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * 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 nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * 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 nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * 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 nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * 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 nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Catalogs.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Catalogs.java new file mode 100644 index 000000000000..9bf42b2e324a --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Catalogs.java @@ -0,0 +1,1458 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; +import com.microsoft.azure.management.datalake.analytics.models.USqlAssembly; +import com.microsoft.azure.management.datalake.analytics.models.USqlAssemblyClr; +import com.microsoft.azure.management.datalake.analytics.models.USqlCredential; +import com.microsoft.azure.management.datalake.analytics.models.USqlDatabase; +import com.microsoft.azure.management.datalake.analytics.models.USqlExternalDataSource; +import com.microsoft.azure.management.datalake.analytics.models.USqlProcedure; +import com.microsoft.azure.management.datalake.analytics.models.USqlSchema; +import com.microsoft.azure.management.datalake.analytics.models.USqlSecret; +import com.microsoft.azure.management.datalake.analytics.models.USqlTable; +import com.microsoft.azure.management.datalake.analytics.models.USqlTablePartition; +import com.microsoft.azure.management.datalake.analytics.models.USqlTableStatistics; +import com.microsoft.azure.management.datalake.analytics.models.USqlTableValuedFunction; +import com.microsoft.azure.management.datalake.analytics.models.USqlType; +import com.microsoft.azure.management.datalake.analytics.models.USqlView; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; + +/** + * An instance of this class provides access to all the operations defined + * in Catalogs. + */ +public interface Catalogs { + /** + * Creates the specified secret for use with external data sources in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database in which to create the secret. + * @param secretName The name of the secret. + * @param parameters The parameters required to create the secret (name and password) + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlSecret object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse createSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Creates the specified secret for use with external data sources in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database in which to create the secret. + * @param secretName The name of the secret. + * @param parameters The parameters required to create the secret (name and password) + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Modifies the specified secret for use with external data sources in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret. + * @param parameters The parameters required to modify the secret (name and password) + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlSecret object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse updateSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Modifies the specified secret for use with external data sources in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret. + * @param parameters The parameters required to modify the secret (name and password) + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall updateSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the specified secret in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret to get + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlSecret object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getSecret(String accountName, String databaseName, String secretName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified secret in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret to get + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getSecretAsync(String accountName, String databaseName, String secretName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Deletes the specified secret in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret to delete + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse deleteSecret(String accountName, String databaseName, String secretName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Deletes the specified secret in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param secretName The name of the secret to delete + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteSecretAsync(String accountName, String databaseName, String secretName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Deletes all secrets in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse deleteAllSecrets(String accountName, String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Deletes all secrets in the specified database. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the secret. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteAllSecretsAsync(String accountName, String databaseName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified external data source from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data source. + * @param externalDataSourceName The name of the external data source. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlExternalDataSource object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getExternalDataSource(String accountName, String databaseName, String externalDataSourceName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified external data source from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data source. + * @param externalDataSourceName The name of the external data source. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getExternalDataSourceAsync(String accountName, String databaseName, String externalDataSourceName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data sources. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listExternalDataSources(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data sources. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data sources. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listExternalDataSources(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the external data sources. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified credential from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param credentialName The name of the credential. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlCredential object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getCredential(String accountName, String databaseName, String credentialName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified credential from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param credentialName The name of the credential. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getCredentialAsync(String accountName, String databaseName, String credentialName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlCredential> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listCredentials(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlCredential> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listCredentials(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified procedure from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedure. + * @param schemaName The name of the schema containing the procedure. + * @param procedureName The name of the procedure. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlProcedure object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getProcedure(String accountName, String databaseName, String schemaName, String procedureName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified procedure from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedure. + * @param schemaName The name of the schema containing the procedure. + * @param procedureName The name of the procedure. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getProcedureAsync(String accountName, String databaseName, String schemaName, String procedureName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedures. + * @param schemaName The name of the schema containing the procedures. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlProcedure> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listProcedures(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedures. + * @param schemaName The name of the schema containing the procedures. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedures. + * @param schemaName The name of the schema containing the procedures. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlProcedure> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listProcedures(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the procedures. + * @param schemaName The name of the schema containing the procedures. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified table from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table. + * @param schemaName The name of the schema containing the table. + * @param tableName The name of the table. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlTable object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getTable(String accountName, String databaseName, String schemaName, String tableName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified table from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table. + * @param schemaName The name of the schema containing the table. + * @param tableName The name of the table. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getTableAsync(String accountName, String databaseName, String schemaName, String tableName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the tables. + * @param schemaName The name of the schema containing the tables. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the tables. + * @param schemaName The name of the schema containing the tables. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the tables. + * @param schemaName The name of the schema containing the tables. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the tables. + * @param schemaName The name of the schema containing the tables. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified view from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the view. + * @param schemaName The name of the schema containing the view. + * @param viewName The name of the view. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlView object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getView(String accountName, String databaseName, String schemaName, String viewName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified view from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the view. + * @param schemaName The name of the schema containing the view. + * @param viewName The name of the view. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getViewAsync(String accountName, String databaseName, String schemaName, String viewName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the views. + * @param schemaName The name of the schema containing the views. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the views. + * @param schemaName The name of the schema containing the views. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the views. + * @param schemaName The name of the schema containing the views. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the views. + * @param schemaName The name of the schema containing the views. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @param statisticsName The name of the table statistics. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlTableStatistics object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getTableStatistic(String accountName, String databaseName, String schemaName, String tableName, String statisticsName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @param statisticsName The name of the table statistics. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getTableStatisticAsync(String accountName, String databaseName, String schemaName, String tableName, String statisticsName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the statistics. + * @param schemaName The name of the schema containing the statistics. + * @param tableName The name of the table containing the statistics. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified table partition from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partition. + * @param schemaName The name of the schema containing the partition. + * @param tableName The name of the table containing the partition. + * @param partitionName The name of the table partition. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlTablePartition object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getTablePartition(String accountName, String databaseName, String schemaName, String tableName, String partitionName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified table partition from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partition. + * @param schemaName The name of the schema containing the partition. + * @param tableName The name of the table containing the partition. + * @param partitionName The name of the table partition. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getTablePartitionAsync(String accountName, String databaseName, String schemaName, String tableName, String partitionName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partitions. + * @param schemaName The name of the schema containing the partitions. + * @param tableName The name of the table containing the partitions. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partitions. + * @param schemaName The name of the schema containing the partitions. + * @param tableName The name of the table containing the partitions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partitions. + * @param schemaName The name of the schema containing the partitions. + * @param tableName The name of the table containing the partitions. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the partitions. + * @param schemaName The name of the schema containing the partitions. + * @param tableName The name of the table containing the partitions. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the types. + * @param schemaName The name of the schema containing the types. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the types. + * @param schemaName The name of the schema containing the types. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the types. + * @param schemaName The name of the schema containing the types. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the types. + * @param schemaName The name of the schema containing the types. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified table valued function from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued function. + * @param schemaName The name of the schema containing the table valued function. + * @param tableValuedFunctionName The name of the tableValuedFunction. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlTableValuedFunction object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getTableValuedFunction(String accountName, String databaseName, String schemaName, String tableValuedFunctionName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified table valued function from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued function. + * @param schemaName The name of the schema containing the table valued function. + * @param tableValuedFunctionName The name of the tableValuedFunction. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getTableValuedFunctionAsync(String accountName, String databaseName, String schemaName, String tableValuedFunctionName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued functions. + * @param schemaName The name of the schema containing the table valued functions. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued functions. + * @param schemaName The name of the schema containing the table valued functions. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued functions. + * @param schemaName The name of the schema containing the table valued functions. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the table valued functions. + * @param schemaName The name of the schema containing the table valued functions. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified assembly from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @param assemblyName The name of the assembly. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlAssembly object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getAssembly(String accountName, String databaseName, String assemblyName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified assembly from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @param assemblyName The name of the assembly. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getAssemblyAsync(String accountName, String databaseName, String assemblyName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlAssemblyClr> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listAssemblies(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlAssemblyClr> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listAssemblies(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the assembly. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param schemaName The name of the schema. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlSchema object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getSchema(String accountName, String databaseName, String schemaName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified schema from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param schemaName The name of the schema. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getSchemaAsync(String accountName, String databaseName, String schemaName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlSchema> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listSchemas(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listSchemasAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlSchema> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listSchemas(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database containing the schema. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listSchemasAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the specified database from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the USqlDatabase object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getDatabase(String accountName, String databaseName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the specified database from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param databaseName The name of the database. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDatabaseAsync(String accountName, String databaseName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlDatabase> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDatabases(final String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDatabasesAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlDatabase> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDatabases(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param accountName The Azure Data Lake Analytics account to execute catalog operations on. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDatabasesAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listExternalDataSourcesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of external data sources from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listExternalDataSourcesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlCredential> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listCredentialsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of credentials from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listCredentialsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlProcedure> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listProceduresNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of procedures from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listProceduresNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTablesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of tables from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listViewsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of views from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listViewsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableStatisticsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table statistics from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableStatisticsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTablePartitionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table partitions from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTablePartitionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTypesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTypesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listTableValuedFunctionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of table valued functions from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listTableValuedFunctionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlAssemblyClr> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listAssembliesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of assemblies from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAssembliesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlSchema> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listSchemasNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of schemas from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listSchemasNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<USqlDatabase> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listDatabasesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Retrieves the list of databases from the Data Lake Analytics catalog. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listDatabasesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountManagementClient.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountManagementClient.java new file mode 100644 index 000000000000..d6c0443bb626 --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountManagementClient.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for DataLakeAnalyticsAccountManagementClient class. + */ +public interface DataLakeAnalyticsAccountManagementClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.. + * + * @return the subscriptionId value. + */ + String subscriptionId(); + + /** + * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + DataLakeAnalyticsAccountManagementClient withSubscriptionId(String subscriptionId); + + /** + * Gets Client Api Version.. + * + * @return the apiVersion value. + */ + String apiVersion(); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + DataLakeAnalyticsAccountManagementClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + DataLakeAnalyticsAccountManagementClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + DataLakeAnalyticsAccountManagementClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Accounts object to access its operations. + * @return the Accounts object. + */ + Accounts accounts(); + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogManagementClient.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogManagementClient.java new file mode 100644 index 000000000000..5c9c03b726c3 --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogManagementClient.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for DataLakeAnalyticsCatalogManagementClient class. + */ +public interface DataLakeAnalyticsCatalogManagementClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Client Api Version.. + * + * @return the apiVersion value. + */ + String apiVersion(); + + /** + * Gets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests.. + * + * @return the adlaCatalogDnsSuffix value. + */ + String adlaCatalogDnsSuffix(); + + /** + * Sets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests.. + * + * @param adlaCatalogDnsSuffix the adlaCatalogDnsSuffix value. + * @return the service client itself + */ + DataLakeAnalyticsCatalogManagementClient withAdlaCatalogDnsSuffix(String adlaCatalogDnsSuffix); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + DataLakeAnalyticsCatalogManagementClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + DataLakeAnalyticsCatalogManagementClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + DataLakeAnalyticsCatalogManagementClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Catalogs object to access its operations. + * @return the Catalogs object. + */ + Catalogs catalogs(); + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobManagementClient.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobManagementClient.java new file mode 100644 index 000000000000..0688adc92022 --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobManagementClient.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for DataLakeAnalyticsJobManagementClient class. + */ +public interface DataLakeAnalyticsJobManagementClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Client Api Version.. + * + * @return the apiVersion value. + */ + String apiVersion(); + + /** + * Gets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests.. + * + * @return the adlaJobDnsSuffix value. + */ + String adlaJobDnsSuffix(); + + /** + * Sets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests.. + * + * @param adlaJobDnsSuffix the adlaJobDnsSuffix value. + * @return the service client itself + */ + DataLakeAnalyticsJobManagementClient withAdlaJobDnsSuffix(String adlaJobDnsSuffix); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + DataLakeAnalyticsJobManagementClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + DataLakeAnalyticsJobManagementClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + DataLakeAnalyticsJobManagementClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Jobs object to access its operations. + * @return the Jobs object. + */ + Jobs jobs(); + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Jobs.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Jobs.java new file mode 100644 index 000000000000..1c21cb5a92ee --- /dev/null +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/Jobs.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.analytics; + +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.JobDataPath; +import com.microsoft.azure.management.datalake.analytics.models.JobInformation; +import com.microsoft.azure.management.datalake.analytics.models.JobStatistics; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.UUID; + +/** + * An instance of this class provides access to all the operations defined + * in Jobs. + */ +public interface Jobs { + /** + * Gets statistics of the specified job. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the JobStatistics object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getStatistics(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets statistics of the specified job. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getStatisticsAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the job debug data information specified by the job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the JobDataPath object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getDebugDataPath(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the job debug data information specified by the job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getDebugDataPathAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param parameters The parameters to build a job. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the JobInformation object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse build(String accountName, JobInformation parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param parameters The parameters to build a job. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall buildAsync(String accountName, JobInformation parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Cancels the running job specified by the job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID to cancel. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse cancel(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException; + + /** + * Cancels the running job specified by the job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID to cancel. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall cancelAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the job information for the specified job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the JobInformation object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse get(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the job information for the specified job ID. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity JobInfo ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Submits a job to the specified Data Lake Analytics account. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity The job ID (a GUID) for the job being submitted. + * @param parameters The parameters to submit a job. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the JobInformation object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse create(String accountName, UUID jobIdentity, JobInformation parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Submits a job to the specified Data Lake Analytics account. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param jobIdentity The job ID (a GUID) for the job being submitted. + * @param parameters The parameters to submit a job. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createAsync(String accountName, UUID jobIdentity, JobInformation parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<JobInformation> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list(final String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<JobInformation> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param accountName The Azure Data Lake Analytics account to execute job operations on. + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories?$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<JobInformation> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AccountsInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/AccountsImpl.java similarity index 88% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AccountsInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/AccountsImpl.java index 977e9e6cd98b..074ee2e412f8 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AccountsInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/AccountsImpl.java @@ -4,13 +4,23 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import retrofit2.Retrofit; +import com.microsoft.azure.management.datalake.analytics.Accounts; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsAccountManagementClient; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceResponseBuilder; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.AddDataLakeStoreParameters; +import com.microsoft.azure.management.datalake.analytics.models.AddStorageAccountParameters; +import com.microsoft.azure.management.datalake.analytics.models.BlobContainer; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; +import com.microsoft.azure.management.datalake.analytics.models.SasTokenInfo; +import com.microsoft.azure.management.datalake.analytics.models.StorageAccountInfo; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCall; @@ -40,19 +50,19 @@ * An instance of this class provides access to all the operations defined * in Accounts. */ -public final class AccountsInner { +public final class AccountsImpl implements Accounts { /** The Retrofit service to perform REST calls. */ private AccountsService service; /** The service client containing this operation class. */ - private DataLakeAnalyticsAccountManagementClientImpl client; + private DataLakeAnalyticsAccountManagementClient client; /** - * Initializes an instance of AccountsInner. + * Initializes an instance of AccountsImpl. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public AccountsInner(Retrofit retrofit, DataLakeAnalyticsAccountManagementClientImpl client) { + public AccountsImpl(Retrofit retrofit, DataLakeAnalyticsAccountManagementClient client) { this.service = retrofit.create(AccountsService.class); this.client = client; } @@ -72,11 +82,11 @@ interface AccountsService { @Headers("Content-Type: application/json; charset=utf-8") @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}") - Call updateStorageAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("storageAccountName") String storageAccountName, @Path("subscriptionId") String subscriptionId, @Body AddStorageAccountParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call updateStorageAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("storageAccountName") String storageAccountName, @Path("subscriptionId") String subscriptionId, @Body AddStorageAccountParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}") - Call addStorageAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("storageAccountName") String storageAccountName, @Path("subscriptionId") String subscriptionId, @Body AddStorageAccountParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call addStorageAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("storageAccountName") String storageAccountName, @Path("subscriptionId") String subscriptionId, @Body AddStorageAccountParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}") @@ -100,7 +110,7 @@ interface AccountsService { @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}") - Call addDataLakeStoreAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("dataLakeStoreAccountName") String dataLakeStoreAccountName, @Path("subscriptionId") String subscriptionId, @Body AddDataLakeStoreParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call addDataLakeStoreAccount(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("dataLakeStoreAccountName") String dataLakeStoreAccountName, @Path("subscriptionId") String subscriptionId, @Body AddDataLakeStoreParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/") @@ -132,19 +142,19 @@ interface AccountsService { @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}") - Call create(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call create(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}") - Call beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}") - Call update(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call update(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}") - Call beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeAnalyticsAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET @@ -181,9 +191,9 @@ interface AccountsService { * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the StorageAccountInfoInner object wrapped in {@link ServiceResponse} if successful. + * @return the StorageAccountInfo object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getStorageAccount(String resourceGroupName, String accountName, String storageAccountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getStorageAccount(String resourceGroupName, String accountName, String storageAccountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -213,7 +223,7 @@ public ServiceResponse getStorageAccount(String resourc * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -239,7 +249,7 @@ public ServiceCall getStorageAccountAsync(String resourceGroupName, String accou } Call call = service.getStorageAccount(resourceGroupName, accountName, storageAccountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -252,9 +262,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getStorageAccountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getStorageAccountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -357,7 +367,7 @@ private ServiceResponse deleteStorageAccountDelegate(Response updateStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParametersInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse updateStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -392,7 +402,7 @@ public ServiceResponse updateStorageAccount(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall updateStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParametersInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall updateStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -454,7 +464,7 @@ private ServiceResponse updateStorageAccountDelegate(Response addStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParametersInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse addStorageAccount(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -489,7 +499,7 @@ public ServiceResponse addStorageAccount(String resourceGroupName, String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall addStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParametersInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall addStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -549,9 +559,9 @@ private ServiceResponse addStorageAccountDelegate(Response r * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the BlobContainerInner object wrapped in {@link ServiceResponse} if successful. + * @return the BlobContainer object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getStorageContainer(String resourceGroupName, String accountName, String storageAccountName, String containerName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getStorageContainer(String resourceGroupName, String accountName, String storageAccountName, String containerName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -585,7 +595,7 @@ public ServiceResponse getStorageContainer(String resourceGr * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getStorageContainerAsync(String resourceGroupName, String accountName, String storageAccountName, String containerName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getStorageContainerAsync(String resourceGroupName, String accountName, String storageAccountName, String containerName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -615,7 +625,7 @@ public ServiceCall getStorageContainerAsync(String resourceGroupName, String acc } Call call = service.getStorageContainer(resourceGroupName, accountName, storageAccountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -628,9 +638,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getStorageContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getStorageContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -644,9 +654,9 @@ private ServiceResponse getStorageContainerDelegate(Response * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<BlobContainerInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<BlobContainer> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listStorageContainers(final String resourceGroupName, final String accountName, final String storageAccountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listStorageContainers(final String resourceGroupName, final String accountName, final String storageAccountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -663,10 +673,10 @@ public ServiceResponse> listStorageContainers(fina throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listStorageContainers(resourceGroupName, accountName, storageAccountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listStorageContainersDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listStorageContainersDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listStorageContainersNext(nextPageLink).getBody(); } }; @@ -683,7 +693,7 @@ public Page nextPage(String nextPageLink) throws CloudExcept * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listStorageContainersAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listStorageContainersAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -709,11 +719,11 @@ public ServiceCall listStorageContainersAsync(final String resourceGroupName, fi } Call call = service.listStorageContainers(resourceGroupName, accountName, storageAccountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listStorageContainersDelegate(response); + ServiceResponse> result = listStorageContainersDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -729,9 +739,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listStorageContainersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listStorageContainersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -746,9 +756,9 @@ private ServiceResponse> listStorageContainersDeleg * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<SasTokenInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<SasTokenInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listSasTokens(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listSasTokens(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -768,10 +778,10 @@ public ServiceResponse> listSasTokens(final String throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listSasTokensDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listSasTokensDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listSasTokensNext(nextPageLink).getBody(); } }; @@ -789,7 +799,7 @@ public Page nextPage(String nextPageLink) throws CloudExcepti * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listSasTokensAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listSasTokensAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -819,11 +829,11 @@ public ServiceCall listSasTokensAsync(final String resourceGroupName, final Stri } Call call = service.listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listSasTokensDelegate(response); + ServiceResponse> result = listSasTokensDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -839,9 +849,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listSasTokensDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSasTokensDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -855,9 +865,9 @@ private ServiceResponse> listSasTokensDelegate(Respo * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeStoreAccountInfoInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeStoreAccountInfo object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -887,7 +897,7 @@ public ServiceResponse getDataLakeStoreAccount(St * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -913,7 +923,7 @@ public ServiceCall getDataLakeStoreAccountAsync(String resourceGroupName, String } Call call = service.getDataLakeStoreAccount(resourceGroupName, accountName, dataLakeStoreAccountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -926,9 +936,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDataLakeStoreAccountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDataLakeStoreAccountDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1031,7 +1041,7 @@ private ServiceResponse deleteDataLakeStoreAccountDelegate(Response addDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParametersInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse addDataLakeStoreAccount(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParameters parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1066,7 +1076,7 @@ public ServiceResponse addDataLakeStoreAccount(String resourceGroupName, S * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall addDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParametersInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall addDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1124,9 +1134,9 @@ private ServiceResponse addDataLakeStoreAccountDelegate(Response> listStorageAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listStorageAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1149,10 +1159,10 @@ public ServiceResponse> listStorageAccounts(f final String search = null; final String format = null; Call call = service.listStorageAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listStorageAccountsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listStorageAccountsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listStorageAccountsNext(nextPageLink).getBody(); } }; @@ -1168,7 +1178,7 @@ public Page nextPage(String nextPageLink) throws CloudE * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1199,11 +1209,11 @@ public ServiceCall listStorageAccountsAsync(final String resourceGroupName, fina final String format = null; Call call = service.listStorageAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listStorageAccountsDelegate(response); + ServiceResponse> result = listStorageAccountsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1236,9 +1246,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<StorageAccountInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<StorageAccountInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listStorageAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listStorageAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1252,10 +1262,10 @@ public ServiceResponse> listStorageAccounts(f throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listStorageAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listStorageAccountsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listStorageAccountsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listStorageAccountsNext(nextPageLink).getBody(); } }; @@ -1280,7 +1290,7 @@ public Page nextPage(String nextPageLink) throws CloudE * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listStorageAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1302,11 +1312,11 @@ public ServiceCall listStorageAccountsAsync(final String resourceGroupName, fina } Call call = service.listStorageAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listStorageAccountsDelegate(response); + ServiceResponse> result = listStorageAccountsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1322,9 +1332,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listStorageAccountsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listStorageAccountsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1337,9 +1347,9 @@ private ServiceResponse> listStorageAccountsDe * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1362,10 +1372,10 @@ public ServiceResponse> listDataLakeSto final String search = null; final String format = null; Call call = service.listDataLakeStoreAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDataLakeStoreAccountsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDataLakeStoreAccountsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listDataLakeStoreAccountsNext(nextPageLink).getBody(); } }; @@ -1381,7 +1391,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1412,11 +1422,11 @@ public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName final String format = null; Call call = service.listDataLakeStoreAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDataLakeStoreAccountsDelegate(response); + ServiceResponse> result = listDataLakeStoreAccountsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1449,9 +1459,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDataLakeStoreAccounts(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1465,10 +1475,10 @@ public ServiceResponse> listDataLakeSto throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listDataLakeStoreAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDataLakeStoreAccountsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDataLakeStoreAccountsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listDataLakeStoreAccountsNext(nextPageLink).getBody(); } }; @@ -1493,7 +1503,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1515,11 +1525,11 @@ public ServiceCall listDataLakeStoreAccountsAsync(final String resourceGroupName } Call call = service.listDataLakeStoreAccounts(resourceGroupName, accountName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDataLakeStoreAccountsDelegate(response); + ServiceResponse> result = listDataLakeStoreAccountsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1535,9 +1545,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDataLakeStoreAccountsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDataLakeStoreAccountsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1549,9 +1559,9 @@ private ServiceResponse> listDataLakeSto * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1571,10 +1581,10 @@ public ServiceResponse> listByResourceG final String search = null; final String format = null; Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listByResourceGroupDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listByResourceGroupDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listByResourceGroupNext(nextPageLink).getBody(); } }; @@ -1589,7 +1599,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1616,11 +1626,11 @@ public ServiceCall listByResourceGroupAsync(final String resourceGroupName, fina final String format = null; Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1652,9 +1662,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1665,10 +1675,10 @@ public ServiceResponse> listByResourceG throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listByResourceGroupDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listByResourceGroupDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listByResourceGroupNext(nextPageLink).getBody(); } }; @@ -1692,7 +1702,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1710,11 +1720,11 @@ public ServiceCall listByResourceGroupAsync(final String resourceGroupName, fina } Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1730,9 +1740,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1743,9 +1753,9 @@ private ServiceResponse> listByResourceG * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -1762,10 +1772,10 @@ public ServiceResponse> list() throws C final String search = null; final String format = null; Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -1779,7 +1789,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1802,11 +1812,11 @@ public ServiceCall listAsync(final ListOperationCallback call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1837,9 +1847,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -1847,10 +1857,10 @@ public ServiceResponse> list(final Stri throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -1873,7 +1883,7 @@ public Page nextPage(String nextPageLink) throws * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1887,11 +1897,11 @@ public ServiceCall listAsync(final String filter, final Integer top, final Integ } Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1907,9 +1917,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1922,9 +1932,9 @@ private ServiceResponse> listDelegate(Re * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeAnalyticsAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1950,7 +1960,7 @@ public ServiceResponse get(String resourceGroupNa * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1972,7 +1982,7 @@ public ServiceCall getAsync(String resourceGroupName, String accountName, final } Call call = service.get(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1985,9 +1995,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2150,9 +2160,9 @@ private ServiceResponse beginDeleteDelegate(Response respons * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @throws InterruptedException exception thrown when long running operation is interrupted - * @return the DataLakeAnalyticsAccountInner object wrapped in ServiceResponse if successful. + * @return the DataLakeAnalyticsAccount object wrapped in ServiceResponse if successful. */ - public ServiceResponse create(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { + public ServiceResponse create(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -2170,7 +2180,7 @@ public ServiceResponse create(String resourceGrou } Validator.validate(parameters); Response result = service.create(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()).execute(); - return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); } /** @@ -2183,7 +2193,7 @@ public ServiceResponse create(String resourceGrou * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - public ServiceCall createAsync(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall createAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2212,7 +2222,7 @@ public void onFailure(Call call, Throwable t) { } @Override public void onResponse(Call call, Response response) { - client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); + client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); } }); return serviceCall; @@ -2227,9 +2237,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeAnalyticsAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -2260,7 +2270,7 @@ public ServiceResponse beginCreate(String resourc * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2287,7 +2297,7 @@ public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataL Validator.validate(parameters, serviceCallback); Call call = service.beginCreate(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2300,10 +2310,10 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(201, new TypeToken() { }.getType()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(201, new TypeToken() { }.getType()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2318,9 +2328,9 @@ private ServiceResponse beginCreateDelegate(Respo * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @throws InterruptedException exception thrown when long running operation is interrupted - * @return the DataLakeAnalyticsAccountInner object wrapped in ServiceResponse if successful. + * @return the DataLakeAnalyticsAccount object wrapped in ServiceResponse if successful. */ - public ServiceResponse update(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { + public ServiceResponse update(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -2338,7 +2348,7 @@ public ServiceResponse update(String resourceGrou } Validator.validate(parameters); Response result = service.update(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()).execute(); - return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); } /** @@ -2351,7 +2361,7 @@ public ServiceResponse update(String resourceGrou * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - public ServiceCall updateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall updateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2380,7 +2390,7 @@ public void onFailure(Call call, Throwable t) { } @Override public void onResponse(Call call, Response response) { - client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); + client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); } }); return serviceCall; @@ -2395,9 +2405,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeAnalyticsAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeAnalyticsAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -2428,7 +2438,7 @@ public ServiceResponse beginUpdate(String resourc * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeAnalyticsAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2455,7 +2465,7 @@ public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataL Validator.validate(parameters, serviceCallback); Call call = service.beginUpdate(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2468,10 +2478,10 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse beginUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(201, new TypeToken() { }.getType()) + private ServiceResponse beginUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2483,9 +2493,9 @@ private ServiceResponse beginUpdateDelegate(Respo * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<BlobContainerInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<BlobContainer> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listStorageContainersNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listStorageContainersNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2502,7 +2512,7 @@ public ServiceResponse> listStorageContainersNext(f * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listStorageContainersNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listStorageContainersNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2512,11 +2522,11 @@ public ServiceCall listStorageContainersNextAsync(final String nextPageLink, fin } Call call = service.listStorageContainersNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listStorageContainersNextDelegate(response); + ServiceResponse> result = listStorageContainersNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2532,9 +2542,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listStorageContainersNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listStorageContainersNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2546,9 +2556,9 @@ private ServiceResponse> listStorageContainersNextD * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<SasTokenInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<SasTokenInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listSasTokensNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listSasTokensNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2565,7 +2575,7 @@ public ServiceResponse> listSasTokensNext(final Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listSasTokensNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listSasTokensNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2575,11 +2585,11 @@ public ServiceCall listSasTokensNextAsync(final String nextPageLink, final Servi } Call call = service.listSasTokensNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listSasTokensNextDelegate(response); + ServiceResponse> result = listSasTokensNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2595,9 +2605,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listSasTokensNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSasTokensNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2609,9 +2619,9 @@ private ServiceResponse> listSasTokensNextDelegate(R * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<StorageAccountInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<StorageAccountInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listStorageAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listStorageAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2628,7 +2638,7 @@ public ServiceResponse> listStorageAccountsNex * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listStorageAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listStorageAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2638,11 +2648,11 @@ public ServiceCall listStorageAccountsNextAsync(final String nextPageLink, final } Call call = service.listStorageAccountsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listStorageAccountsNextDelegate(response); + ServiceResponse> result = listStorageAccountsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2658,9 +2668,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listStorageAccountsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listStorageAccountsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2672,9 +2682,9 @@ private ServiceResponse> listStorageAccountsNe * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccountInfo> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listDataLakeStoreAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDataLakeStoreAccountsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2691,7 +2701,7 @@ public ServiceResponse> listDataLakeStor * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDataLakeStoreAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDataLakeStoreAccountsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2701,11 +2711,11 @@ public ServiceCall listDataLakeStoreAccountsNextAsync(final String nextPageLink, } Call call = service.listDataLakeStoreAccountsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDataLakeStoreAccountsNextDelegate(response); + ServiceResponse> result = listDataLakeStoreAccountsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2721,9 +2731,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDataLakeStoreAccountsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDataLakeStoreAccountsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2735,9 +2745,9 @@ private ServiceResponse> listDataLakeSto * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2754,7 +2764,7 @@ public ServiceResponse> listByResourceGr * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2764,11 +2774,11 @@ public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final } Call call = service.listByResourceGroupNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2784,9 +2794,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2798,9 +2808,9 @@ private ServiceResponse> listByResourceG * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeAnalyticsAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeAnalyticsAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -2817,7 +2827,7 @@ public ServiceResponse> listNext(final S * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2827,11 +2837,11 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } Call call = service.listNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2847,9 +2857,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogsInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/CatalogsImpl.java similarity index 80% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogsInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/CatalogsImpl.java index 3a2d857f8e30..4076cd0ff0d1 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogsInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/CatalogsImpl.java @@ -4,13 +4,32 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import retrofit2.Retrofit; +import com.microsoft.azure.management.datalake.analytics.Catalogs; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsCatalogManagementClient; +import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceResponseBuilder; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; +import com.microsoft.azure.management.datalake.analytics.models.USqlAssembly; +import com.microsoft.azure.management.datalake.analytics.models.USqlAssemblyClr; +import com.microsoft.azure.management.datalake.analytics.models.USqlCredential; +import com.microsoft.azure.management.datalake.analytics.models.USqlDatabase; +import com.microsoft.azure.management.datalake.analytics.models.USqlExternalDataSource; +import com.microsoft.azure.management.datalake.analytics.models.USqlProcedure; +import com.microsoft.azure.management.datalake.analytics.models.USqlSchema; +import com.microsoft.azure.management.datalake.analytics.models.USqlSecret; +import com.microsoft.azure.management.datalake.analytics.models.USqlTable; +import com.microsoft.azure.management.datalake.analytics.models.USqlTablePartition; +import com.microsoft.azure.management.datalake.analytics.models.USqlTableStatistics; +import com.microsoft.azure.management.datalake.analytics.models.USqlTableValuedFunction; +import com.microsoft.azure.management.datalake.analytics.models.USqlType; +import com.microsoft.azure.management.datalake.analytics.models.USqlView; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCall; @@ -38,19 +57,19 @@ * An instance of this class provides access to all the operations defined * in Catalogs. */ -public final class CatalogsInner { +public final class CatalogsImpl implements Catalogs { /** The Retrofit service to perform REST calls. */ private CatalogsService service; /** The service client containing this operation class. */ - private DataLakeAnalyticsCatalogManagementClientImpl client; + private DataLakeAnalyticsCatalogManagementClient client; /** - * Initializes an instance of CatalogsInner. + * Initializes an instance of CatalogsImpl. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public CatalogsInner(Retrofit retrofit, DataLakeAnalyticsCatalogManagementClientImpl client) { + public CatalogsImpl(Retrofit retrofit, DataLakeAnalyticsCatalogManagementClient client) { this.service = retrofit.create(CatalogsService.class); this.client = client; } @@ -62,115 +81,115 @@ public CatalogsInner(Retrofit retrofit, DataLakeAnalyticsCatalogManagementClient interface CatalogsService { @Headers("Content-Type: application/json; charset=utf-8") @PUT("catalog/usql/databases/{databaseName}/secrets/{secretName}") - Call createSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Body DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call createSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Body DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PATCH("catalog/usql/databases/{databaseName}/secrets/{secretName}") - Call updateSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Body DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call updateSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Body DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/secrets/{secretName}") - Call getSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @HTTP(path = "catalog/usql/databases/{databaseName}/secrets/{secretName}", method = "DELETE", hasBody = true) - Call deleteSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call deleteSecret(@Path("databaseName") String databaseName, @Path("secretName") String secretName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @HTTP(path = "catalog/usql/databases/{databaseName}/secrets", method = "DELETE", hasBody = true) - Call deleteAllSecrets(@Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call deleteAllSecrets(@Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/externaldatasources/{externalDataSourceName}") - Call getExternalDataSource(@Path("databaseName") String databaseName, @Path("externalDataSourceName") String externalDataSourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getExternalDataSource(@Path("databaseName") String databaseName, @Path("externalDataSourceName") String externalDataSourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/externaldatasources") - Call listExternalDataSources(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listExternalDataSources(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/credentials/{credentialName}") - Call getCredential(@Path("databaseName") String databaseName, @Path("credentialName") String credentialName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getCredential(@Path("databaseName") String databaseName, @Path("credentialName") String credentialName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/credentials") - Call listCredentials(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listCredentials(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures/{procedureName}") - Call getProcedure(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("procedureName") String procedureName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getProcedure(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("procedureName") String procedureName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/procedures") - Call listProcedures(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listProcedures(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}") - Call getTable(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getTable(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables") - Call listTables(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listTables(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/views/{viewName}") - Call getView(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("viewName") String viewName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getView(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("viewName") String viewName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/views") - Call listViews(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listViews(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics/{statisticsName}") - Call getTableStatistic(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Path("statisticsName") String statisticsName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getTableStatistic(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Path("statisticsName") String statisticsName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/statistics") - Call listTableStatistics(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listTableStatistics(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions/{partitionName}") - Call getTablePartition(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Path("partitionName") String partitionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getTablePartition(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Path("partitionName") String partitionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitions") - Call listTablePartitions(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listTablePartitions(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableName") String tableName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/types") - Call listTypes(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listTypes(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions/{tableValuedFunctionName}") - Call getTableValuedFunction(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableValuedFunctionName") String tableValuedFunctionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getTableValuedFunction(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Path("tableValuedFunctionName") String tableValuedFunctionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}/tablevaluedfunctions") - Call listTableValuedFunctions(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listTableValuedFunctions(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/assemblies/{assemblyName}") - Call getAssembly(@Path("databaseName") String databaseName, @Path("assemblyName") String assemblyName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getAssembly(@Path("databaseName") String databaseName, @Path("assemblyName") String assemblyName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/assemblies") - Call listAssemblies(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listAssemblies(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas/{schemaName}") - Call getSchema(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getSchema(@Path("databaseName") String databaseName, @Path("schemaName") String schemaName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}/schemas") - Call listSchemas(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listSchemas(@Path("databaseName") String databaseName, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases/{databaseName}") - Call getDatabase(@Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getDatabase(@Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("catalog/usql/databases") - Call listDatabases(@Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listDatabases(@Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET @@ -232,9 +251,9 @@ interface CatalogsService { * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlSecretInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlSecret object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse createSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse createSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -254,8 +273,8 @@ public ServiceResponse createSecret(String accountName, String throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(parameters); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.createSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.createSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return createSecretDelegate(call.execute()); } @@ -270,7 +289,7 @@ public ServiceResponse createSecret(String accountName, String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall createSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall createSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -299,10 +318,10 @@ public ServiceCall createSecretAsync(String accountName, String databaseName, St return null; } Validator.validate(parameters, serviceCallback); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.createSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.createSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -315,9 +334,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse createSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse createSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -332,9 +351,9 @@ private ServiceResponse createSecretDelegate(Response updateSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse updateSecret(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -354,8 +373,8 @@ public ServiceResponse updateSecret(String accountName, String throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(parameters); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.updateSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.updateSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return updateSecretDelegate(call.execute()); } @@ -370,7 +389,7 @@ public ServiceResponse updateSecret(String accountName, String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall updateSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall updateSecretAsync(String accountName, String databaseName, String secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -399,10 +418,10 @@ public ServiceCall updateSecretAsync(String accountName, String databaseName, St return null; } Validator.validate(parameters, serviceCallback); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.updateSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.updateSecret(databaseName, secretName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -415,9 +434,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse updateSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -431,9 +450,9 @@ private ServiceResponse updateSecretDelegate(Response getSecret(String accountName, String databaseName, String secretName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getSecret(String accountName, String databaseName, String secretName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -449,8 +468,8 @@ public ServiceResponse getSecret(String accountName, String dat if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getSecretDelegate(call.execute()); } @@ -464,7 +483,7 @@ public ServiceResponse getSecret(String accountName, String dat * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getSecretAsync(String accountName, String databaseName, String secretName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getSecretAsync(String accountName, String databaseName, String secretName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -488,10 +507,10 @@ public ServiceCall getSecretAsync(String accountName, String databaseName, Strin serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -504,9 +523,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getSecretDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -538,8 +557,8 @@ public ServiceResponse deleteSecret(String accountName, String databaseNam if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.deleteSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.deleteSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return deleteSecretDelegate(call.execute()); } @@ -577,8 +596,8 @@ public ServiceCall deleteSecretAsync(String accountName, String databaseName, St serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.deleteSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.deleteSecret(databaseName, secretName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -622,8 +641,8 @@ public ServiceResponse deleteAllSecrets(String accountName, String databas if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.deleteAllSecrets(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.deleteAllSecrets(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return deleteAllSecretsDelegate(call.execute()); } @@ -656,8 +675,8 @@ public ServiceCall deleteAllSecretsAsync(String accountName, String databaseName serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.deleteAllSecrets(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.deleteAllSecrets(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -687,9 +706,9 @@ private ServiceResponse deleteAllSecretsDelegate(Response re * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlExternalDataSourceInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlExternalDataSource object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getExternalDataSource(String accountName, String databaseName, String externalDataSourceName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getExternalDataSource(String accountName, String databaseName, String externalDataSourceName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -705,8 +724,8 @@ public ServiceResponse getExternalDataSource(String if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getExternalDataSource(databaseName, externalDataSourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getExternalDataSource(databaseName, externalDataSourceName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getExternalDataSourceDelegate(call.execute()); } @@ -720,7 +739,7 @@ public ServiceResponse getExternalDataSource(String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getExternalDataSourceAsync(String accountName, String databaseName, String externalDataSourceName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getExternalDataSourceAsync(String accountName, String databaseName, String externalDataSourceName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -744,10 +763,10 @@ public ServiceCall getExternalDataSourceAsync(String accountName, String databas serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getExternalDataSource(databaseName, externalDataSourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getExternalDataSource(databaseName, externalDataSourceName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -760,9 +779,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getExternalDataSourceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getExternalDataSourceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -775,9 +794,9 @@ private ServiceResponse getExternalDataSourceDelega * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlExternalDataSourceInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listExternalDataSources(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listExternalDataSources(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -797,12 +816,12 @@ public ServiceResponse> listExternalDataS final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listExternalDataSourcesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listExternalDataSourcesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listExternalDataSourcesNext(nextPageLink).getBody(); } }; @@ -818,7 +837,7 @@ public Page nextPage(String nextPageLink) throws Cl * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -845,14 +864,14 @@ public ServiceCall listExternalDataSourcesAsync(final String accountName, final final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listExternalDataSourcesDelegate(response); + ServiceResponse> result = listExternalDataSourcesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -883,9 +902,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlExternalDataSourceInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listExternalDataSources(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listExternalDataSources(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -898,12 +917,12 @@ public ServiceResponse> listExternalDataS if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listExternalDataSourcesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listExternalDataSourcesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listExternalDataSourcesNext(nextPageLink).getBody(); } }; @@ -926,7 +945,7 @@ public Page nextPage(String nextPageLink) throws Cl * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listExternalDataSourcesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -946,14 +965,14 @@ public ServiceCall listExternalDataSourcesAsync(final String accountName, final serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listExternalDataSources(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listExternalDataSourcesDelegate(response); + ServiceResponse> result = listExternalDataSourcesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -969,9 +988,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listExternalDataSourcesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listExternalDataSourcesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -985,9 +1004,9 @@ private ServiceResponse> listExternalDataS * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlCredentialInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlCredential object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getCredential(String accountName, String databaseName, String credentialName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getCredential(String accountName, String databaseName, String credentialName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1003,8 +1022,8 @@ public ServiceResponse getCredential(String accountName, St if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getCredential(databaseName, credentialName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getCredential(databaseName, credentialName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getCredentialDelegate(call.execute()); } @@ -1018,7 +1037,7 @@ public ServiceResponse getCredential(String accountName, St * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getCredentialAsync(String accountName, String databaseName, String credentialName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getCredentialAsync(String accountName, String databaseName, String credentialName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1042,10 +1061,10 @@ public ServiceCall getCredentialAsync(String accountName, String databaseName, S serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getCredential(databaseName, credentialName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getCredential(databaseName, credentialName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1058,9 +1077,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getCredentialDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getCredentialDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1073,9 +1092,9 @@ private ServiceResponse getCredentialDelegate(Response> listCredentials(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listCredentials(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1095,12 +1114,12 @@ public ServiceResponse> listCredentials(final Str final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listCredentialsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listCredentialsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listCredentialsNext(nextPageLink).getBody(); } }; @@ -1116,7 +1135,7 @@ public Page nextPage(String nextPageLink) throws CloudExcep * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1143,14 +1162,14 @@ public ServiceCall listCredentialsAsync(final String accountName, final String d final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listCredentialsDelegate(response); + ServiceResponse> result = listCredentialsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1181,9 +1200,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlCredentialInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlCredential> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listCredentials(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listCredentials(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1196,12 +1215,12 @@ public ServiceResponse> listCredentials(final Str if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listCredentialsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listCredentialsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listCredentialsNext(nextPageLink).getBody(); } }; @@ -1224,7 +1243,7 @@ public Page nextPage(String nextPageLink) throws CloudExcep * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listCredentialsAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1244,14 +1263,14 @@ public ServiceCall listCredentialsAsync(final String accountName, final String d serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listCredentials(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listCredentialsDelegate(response); + ServiceResponse> result = listCredentialsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1267,9 +1286,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listCredentialsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listCredentialsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1284,9 +1303,9 @@ private ServiceResponse> listCredentialsDelegate(R * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlProcedureInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlProcedure object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getProcedure(String accountName, String databaseName, String schemaName, String procedureName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getProcedure(String accountName, String databaseName, String schemaName, String procedureName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1305,8 +1324,8 @@ public ServiceResponse getProcedure(String accountName, Stri if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getProcedure(databaseName, schemaName, procedureName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getProcedure(databaseName, schemaName, procedureName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getProcedureDelegate(call.execute()); } @@ -1321,7 +1340,7 @@ public ServiceResponse getProcedure(String accountName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getProcedureAsync(String accountName, String databaseName, String schemaName, String procedureName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getProcedureAsync(String accountName, String databaseName, String schemaName, String procedureName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1349,10 +1368,10 @@ public ServiceCall getProcedureAsync(String accountName, String databaseName, St serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getProcedure(databaseName, schemaName, procedureName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getProcedure(databaseName, schemaName, procedureName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1365,9 +1384,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getProcedureDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getProcedureDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1381,9 +1400,9 @@ private ServiceResponse getProcedureDelegate(Response> listProcedures(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listProcedures(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1406,12 +1425,12 @@ public ServiceResponse> listProcedures(final Strin final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listProceduresDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listProceduresDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listProceduresNext(nextPageLink).getBody(); } }; @@ -1428,7 +1447,7 @@ public Page nextPage(String nextPageLink) throws CloudExcept * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1459,14 +1478,14 @@ public ServiceCall listProceduresAsync(final String accountName, final String da final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listProceduresDelegate(response); + ServiceResponse> result = listProceduresDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1498,9 +1517,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlProcedureInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlProcedure> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listProcedures(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listProcedures(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1516,12 +1535,12 @@ public ServiceResponse> listProcedures(final Strin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listProceduresDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listProceduresDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listProceduresNext(nextPageLink).getBody(); } }; @@ -1545,7 +1564,7 @@ public Page nextPage(String nextPageLink) throws CloudExcept * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listProceduresAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1569,14 +1588,14 @@ public ServiceCall listProceduresAsync(final String accountName, final String da serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listProcedures(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listProceduresDelegate(response); + ServiceResponse> result = listProceduresDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1592,9 +1611,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listProceduresDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listProceduresDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1609,9 +1628,9 @@ private ServiceResponse> listProceduresDelegate(Res * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlTableInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlTable object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getTable(String accountName, String databaseName, String schemaName, String tableName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getTable(String accountName, String databaseName, String schemaName, String tableName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1630,8 +1649,8 @@ public ServiceResponse getTable(String accountName, String datab if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTable(databaseName, schemaName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTable(databaseName, schemaName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getTableDelegate(call.execute()); } @@ -1646,7 +1665,7 @@ public ServiceResponse getTable(String accountName, String datab * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getTableAsync(String accountName, String databaseName, String schemaName, String tableName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getTableAsync(String accountName, String databaseName, String schemaName, String tableName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1674,10 +1693,10 @@ public ServiceCall getTableAsync(String accountName, String databaseName, String serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTable(databaseName, schemaName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTable(databaseName, schemaName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1690,9 +1709,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getTableDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getTableDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1706,9 +1725,9 @@ private ServiceResponse getTableDelegate(Response * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1731,12 +1750,12 @@ public ServiceResponse> listTables(final String accoun final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTablesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTablesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTablesNext(nextPageLink).getBody(); } }; @@ -1753,7 +1772,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1784,14 +1803,14 @@ public ServiceCall listTablesAsync(final String accountName, final String databa final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablesDelegate(response); + ServiceResponse> result = listTablesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1823,9 +1842,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTables(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1841,12 +1860,12 @@ public ServiceResponse> listTables(final String accoun if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTablesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTablesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTablesNext(nextPageLink).getBody(); } }; @@ -1870,7 +1889,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1894,14 +1913,14 @@ public ServiceCall listTablesAsync(final String accountName, final String databa serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTables(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablesDelegate(response); + ServiceResponse> result = listTablesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1917,9 +1936,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTablesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTablesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1934,9 +1953,9 @@ private ServiceResponse> listTablesDelegate(Response getView(String accountName, String databaseName, String schemaName, String viewName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getView(String accountName, String databaseName, String schemaName, String viewName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1955,8 +1974,8 @@ public ServiceResponse getView(String accountName, String databas if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getView(databaseName, schemaName, viewName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getView(databaseName, schemaName, viewName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getViewDelegate(call.execute()); } @@ -1971,7 +1990,7 @@ public ServiceResponse getView(String accountName, String databas * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getViewAsync(String accountName, String databaseName, String schemaName, String viewName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getViewAsync(String accountName, String databaseName, String schemaName, String viewName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1999,10 +2018,10 @@ public ServiceCall getViewAsync(String accountName, String databaseName, String serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getView(databaseName, schemaName, viewName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getView(databaseName, schemaName, viewName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2015,9 +2034,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getViewDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getViewDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2031,9 +2050,9 @@ private ServiceResponse getViewDelegate(Response re * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlViewInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2056,12 +2075,12 @@ public ServiceResponse> listViews(final String accountN final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listViewsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listViewsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listViewsNext(nextPageLink).getBody(); } }; @@ -2078,7 +2097,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2109,14 +2128,14 @@ public ServiceCall listViewsAsync(final String accountName, final String databas final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listViewsDelegate(response); + ServiceResponse> result = listViewsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2148,9 +2167,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlViewInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listViews(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2166,12 +2185,12 @@ public ServiceResponse> listViews(final String accountN if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listViewsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listViewsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listViewsNext(nextPageLink).getBody(); } }; @@ -2195,7 +2214,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listViewsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2219,14 +2238,14 @@ public ServiceCall listViewsAsync(final String accountName, final String databas serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listViews(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listViewsDelegate(response); + ServiceResponse> result = listViewsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2242,9 +2261,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listViewsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listViewsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2260,9 +2279,9 @@ private ServiceResponse> listViewsDelegate(Response getTableStatistic(String accountName, String databaseName, String schemaName, String tableName, String statisticsName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getTableStatistic(String accountName, String databaseName, String schemaName, String tableName, String statisticsName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2284,8 +2303,8 @@ public ServiceResponse getTableStatistic(String accoun if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTableStatistic(databaseName, schemaName, tableName, statisticsName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTableStatistic(databaseName, schemaName, tableName, statisticsName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getTableStatisticDelegate(call.execute()); } @@ -2301,7 +2320,7 @@ public ServiceResponse getTableStatistic(String accoun * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getTableStatisticAsync(String accountName, String databaseName, String schemaName, String tableName, String statisticsName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getTableStatisticAsync(String accountName, String databaseName, String schemaName, String tableName, String statisticsName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2333,10 +2352,10 @@ public ServiceCall getTableStatisticAsync(String accountName, String databaseNam serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTableStatistic(databaseName, schemaName, tableName, statisticsName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTableStatistic(databaseName, schemaName, tableName, statisticsName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2349,9 +2368,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getTableStatisticDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getTableStatisticDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2366,9 +2385,9 @@ private ServiceResponse getTableStatisticDelegate(Resp * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableStatisticsInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2394,12 +2413,12 @@ public ServiceResponse> listTableStatistics( final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTableStatisticsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTableStatisticsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTableStatisticsNext(nextPageLink).getBody(); } }; @@ -2417,7 +2436,7 @@ public Page nextPage(String nextPageLink) throws Cloud * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2452,14 +2471,14 @@ public ServiceCall listTableStatisticsAsync(final String accountName, final Stri final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableStatisticsDelegate(response); + ServiceResponse> result = listTableStatisticsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2492,9 +2511,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableStatisticsInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableStatistics(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2513,12 +2532,12 @@ public ServiceResponse> listTableStatistics( if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTableStatisticsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTableStatisticsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTableStatisticsNext(nextPageLink).getBody(); } }; @@ -2543,7 +2562,7 @@ public Page nextPage(String nextPageLink) throws Cloud * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableStatisticsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2571,14 +2590,14 @@ public ServiceCall listTableStatisticsAsync(final String accountName, final Stri serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableStatistics(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableStatisticsDelegate(response); + ServiceResponse> result = listTableStatisticsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2594,9 +2613,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTableStatisticsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTableStatisticsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2612,9 +2631,9 @@ private ServiceResponse> listTableStatisticsD * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlTablePartitionInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlTablePartition object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getTablePartition(String accountName, String databaseName, String schemaName, String tableName, String partitionName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getTablePartition(String accountName, String databaseName, String schemaName, String tableName, String partitionName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2636,8 +2655,8 @@ public ServiceResponse getTablePartition(String account if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTablePartition(databaseName, schemaName, tableName, partitionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTablePartition(databaseName, schemaName, tableName, partitionName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getTablePartitionDelegate(call.execute()); } @@ -2653,7 +2672,7 @@ public ServiceResponse getTablePartition(String account * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getTablePartitionAsync(String accountName, String databaseName, String schemaName, String tableName, String partitionName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getTablePartitionAsync(String accountName, String databaseName, String schemaName, String tableName, String partitionName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2685,10 +2704,10 @@ public ServiceCall getTablePartitionAsync(String accountName, String databaseNam serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTablePartition(databaseName, schemaName, tableName, partitionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTablePartition(databaseName, schemaName, tableName, partitionName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2701,9 +2720,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getTablePartitionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getTablePartitionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2718,9 +2737,9 @@ private ServiceResponse getTablePartitionDelegate(Respo * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTablePartitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2746,12 +2765,12 @@ public ServiceResponse> listTablePartitions(f final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTablePartitionsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTablePartitionsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTablePartitionsNext(nextPageLink).getBody(); } }; @@ -2769,7 +2788,7 @@ public Page nextPage(String nextPageLink) throws CloudE * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2804,14 +2823,14 @@ public ServiceCall listTablePartitionsAsync(final String accountName, final Stri final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablePartitionsDelegate(response); + ServiceResponse> result = listTablePartitionsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2844,9 +2863,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTablePartitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTablePartitions(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2865,12 +2884,12 @@ public ServiceResponse> listTablePartitions(f if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTablePartitionsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTablePartitionsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTablePartitionsNext(nextPageLink).getBody(); } }; @@ -2895,7 +2914,7 @@ public Page nextPage(String nextPageLink) throws CloudE * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablePartitionsAsync(final String accountName, final String databaseName, final String schemaName, final String tableName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2923,14 +2942,14 @@ public ServiceCall listTablePartitionsAsync(final String accountName, final Stri serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTablePartitions(databaseName, schemaName, tableName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablePartitionsDelegate(response); + ServiceResponse> result = listTablePartitionsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -2946,9 +2965,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTablePartitionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTablePartitionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -2962,9 +2981,9 @@ private ServiceResponse> listTablePartitionsDe * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTypeInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2987,12 +3006,12 @@ public ServiceResponse> listTypes(final String accountN final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTypesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTypesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTypesNext(nextPageLink).getBody(); } }; @@ -3009,7 +3028,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3040,14 +3059,14 @@ public ServiceCall listTypesAsync(final String accountName, final String databas final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTypesDelegate(response); + ServiceResponse> result = listTypesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3079,9 +3098,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTypeInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTypes(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3097,12 +3116,12 @@ public ServiceResponse> listTypes(final String accountN if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTypesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTypesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTypesNext(nextPageLink).getBody(); } }; @@ -3126,7 +3145,7 @@ public Page nextPage(String nextPageLink) throws CloudException, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTypesAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3150,14 +3169,14 @@ public ServiceCall listTypesAsync(final String accountName, final String databas serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTypes(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTypesDelegate(response); + ServiceResponse> result = listTypesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3173,9 +3192,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTypesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTypesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3190,9 +3209,9 @@ private ServiceResponse> listTypesDelegate(Response getTableValuedFunction(String accountName, String databaseName, String schemaName, String tableValuedFunctionName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getTableValuedFunction(String accountName, String databaseName, String schemaName, String tableValuedFunctionName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3211,8 +3230,8 @@ public ServiceResponse getTableValuedFunction(Stri if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTableValuedFunction(databaseName, schemaName, tableValuedFunctionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTableValuedFunction(databaseName, schemaName, tableValuedFunctionName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getTableValuedFunctionDelegate(call.execute()); } @@ -3227,7 +3246,7 @@ public ServiceResponse getTableValuedFunction(Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getTableValuedFunctionAsync(String accountName, String databaseName, String schemaName, String tableValuedFunctionName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getTableValuedFunctionAsync(String accountName, String databaseName, String schemaName, String tableValuedFunctionName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3255,10 +3274,10 @@ public ServiceCall getTableValuedFunctionAsync(String accountName, String databa serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getTableValuedFunction(databaseName, schemaName, tableValuedFunctionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getTableValuedFunction(databaseName, schemaName, tableValuedFunctionName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -3271,9 +3290,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getTableValuedFunctionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getTableValuedFunctionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3287,9 +3306,9 @@ private ServiceResponse getTableValuedFunctionDele * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableValuedFunctionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3312,12 +3331,12 @@ public ServiceResponse> listTableValuedF final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTableValuedFunctionsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTableValuedFunctionsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTableValuedFunctionsNext(nextPageLink).getBody(); } }; @@ -3334,7 +3353,7 @@ public Page nextPage(String nextPageLink) throws C * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3365,14 +3384,14 @@ public ServiceCall listTableValuedFunctionsAsync(final String accountName, final final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableValuedFunctionsDelegate(response); + ServiceResponse> result = listTableValuedFunctionsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3404,9 +3423,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableValuedFunctionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableValuedFunctions(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3422,12 +3441,12 @@ public ServiceResponse> listTableValuedF if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listTableValuedFunctionsDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listTableValuedFunctionsDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listTableValuedFunctionsNext(nextPageLink).getBody(); } }; @@ -3451,7 +3470,7 @@ public Page nextPage(String nextPageLink) throws C * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableValuedFunctionsAsync(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3475,14 +3494,14 @@ public ServiceCall listTableValuedFunctionsAsync(final String accountName, final serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listTableValuedFunctions(databaseName, schemaName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableValuedFunctionsDelegate(response); + ServiceResponse> result = listTableValuedFunctionsDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3498,9 +3517,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTableValuedFunctionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTableValuedFunctionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3514,9 +3533,9 @@ private ServiceResponse> listTableValuedF * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlAssemblyInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlAssembly object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getAssembly(String accountName, String databaseName, String assemblyName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getAssembly(String accountName, String databaseName, String assemblyName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3532,8 +3551,8 @@ public ServiceResponse getAssembly(String accountName, String if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getAssembly(databaseName, assemblyName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getAssembly(databaseName, assemblyName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getAssemblyDelegate(call.execute()); } @@ -3547,7 +3566,7 @@ public ServiceResponse getAssembly(String accountName, String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getAssemblyAsync(String accountName, String databaseName, String assemblyName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getAssemblyAsync(String accountName, String databaseName, String assemblyName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3571,10 +3590,10 @@ public ServiceCall getAssemblyAsync(String accountName, String databaseName, Str serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getAssembly(databaseName, assemblyName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getAssembly(databaseName, assemblyName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -3587,9 +3606,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getAssemblyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getAssemblyDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3602,9 +3621,9 @@ private ServiceResponse getAssemblyDelegate(Response> listAssemblies(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listAssemblies(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3624,12 +3643,12 @@ public ServiceResponse> listAssemblies(final Str final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listAssembliesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listAssembliesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listAssembliesNext(nextPageLink).getBody(); } }; @@ -3645,7 +3664,7 @@ public Page nextPage(String nextPageLink) throws CloudExce * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3672,14 +3691,14 @@ public ServiceCall listAssembliesAsync(final String accountName, final String da final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listAssembliesDelegate(response); + ServiceResponse> result = listAssembliesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3710,9 +3729,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlAssemblyClrInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlAssemblyClr> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listAssemblies(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listAssemblies(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3725,12 +3744,12 @@ public ServiceResponse> listAssemblies(final Str if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listAssembliesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listAssembliesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listAssembliesNext(nextPageLink).getBody(); } }; @@ -3753,7 +3772,7 @@ public Page nextPage(String nextPageLink) throws CloudExce * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAssembliesAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3773,14 +3792,14 @@ public ServiceCall listAssembliesAsync(final String accountName, final String da serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listAssemblies(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listAssembliesDelegate(response); + ServiceResponse> result = listAssembliesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -3796,9 +3815,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listAssembliesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listAssembliesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3812,9 +3831,9 @@ private ServiceResponse> listAssembliesDelegate(R * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlSchemaInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlSchema object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getSchema(String accountName, String databaseName, String schemaName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getSchema(String accountName, String databaseName, String schemaName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3830,8 +3849,8 @@ public ServiceResponse getSchema(String accountName, String dat if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getSchema(databaseName, schemaName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getSchema(databaseName, schemaName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getSchemaDelegate(call.execute()); } @@ -3845,7 +3864,7 @@ public ServiceResponse getSchema(String accountName, String dat * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getSchemaAsync(String accountName, String databaseName, String schemaName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getSchemaAsync(String accountName, String databaseName, String schemaName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3869,10 +3888,10 @@ public ServiceCall getSchemaAsync(String accountName, String databaseName, Strin serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getSchema(databaseName, schemaName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getSchema(databaseName, schemaName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -3885,9 +3904,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getSchemaDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getSchemaDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3900,9 +3919,9 @@ private ServiceResponse getSchemaDelegate(Response> listSchemas(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listSchemas(final String accountName, final String databaseName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -3922,12 +3941,12 @@ public ServiceResponse> listSchemas(final String acco final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listSchemasDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listSchemasDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listSchemasNext(nextPageLink).getBody(); } }; @@ -3943,7 +3962,7 @@ public Page nextPage(String nextPageLink) throws CloudException * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listSchemasAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listSchemasAsync(final String accountName, final String databaseName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -3970,14 +3989,14 @@ public ServiceCall listSchemasAsync(final String accountName, final String datab final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listSchemasDelegate(response); + ServiceResponse> result = listSchemasDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4008,9 +4027,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlSchemaInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlSchema> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listSchemas(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listSchemas(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -4023,12 +4042,12 @@ public ServiceResponse> listSchemas(final String acco if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listSchemasDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listSchemasDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listSchemasNext(nextPageLink).getBody(); } }; @@ -4051,7 +4070,7 @@ public Page nextPage(String nextPageLink) throws CloudException * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listSchemasAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listSchemasAsync(final String accountName, final String databaseName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4071,14 +4090,14 @@ public ServiceCall listSchemasAsync(final String accountName, final String datab serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listSchemas(databaseName, filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listSchemasDelegate(response); + ServiceResponse> result = listSchemasDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4094,9 +4113,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listSchemasDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSchemasDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4109,9 +4128,9 @@ private ServiceResponse> listSchemasDelegate(Response< * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the USqlDatabaseInner object wrapped in {@link ServiceResponse} if successful. + * @return the USqlDatabase object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getDatabase(String accountName, String databaseName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getDatabase(String accountName, String databaseName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -4124,8 +4143,8 @@ public ServiceResponse getDatabase(String accountName, String if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getDatabase(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getDatabase(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getDatabaseDelegate(call.execute()); } @@ -4138,7 +4157,7 @@ public ServiceResponse getDatabase(String accountName, String * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getDatabaseAsync(String accountName, String databaseName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getDatabaseAsync(String accountName, String databaseName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4158,10 +4177,10 @@ public ServiceCall getDatabaseAsync(String accountName, String databaseName, fin serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.getDatabase(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.getDatabase(databaseName, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -4174,9 +4193,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4188,9 +4207,9 @@ private ServiceResponse getDatabaseDelegate(Response> listDatabases(final String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDatabases(final String accountName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -4207,12 +4226,12 @@ public ServiceResponse> listDatabases(final String final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDatabasesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listDatabasesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listDatabasesNext(nextPageLink).getBody(); } }; @@ -4227,7 +4246,7 @@ public Page nextPage(String nextPageLink) throws CloudExcepti * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDatabasesAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDatabasesAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4250,14 +4269,14 @@ public ServiceCall listDatabasesAsync(final String accountName, final ListOperat final String select = null; final String orderby = null; final Boolean count = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDatabasesDelegate(response); + ServiceResponse> result = listDatabasesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4287,9 +4306,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlDatabaseInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlDatabase> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listDatabases(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDatabases(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -4299,12 +4318,12 @@ public ServiceResponse> listDatabases(final String if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDatabasesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listDatabasesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listDatabasesNext(nextPageLink).getBody(); } }; @@ -4326,7 +4345,7 @@ public Page nextPage(String nextPageLink) throws CloudExcepti * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDatabasesAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDatabasesAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4342,14 +4361,14 @@ public ServiceCall listDatabasesAsync(final String accountName, final String fil serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); - Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaCatalogDnsSuffix}", this.client.adlaCatalogDnsSuffix()); + Call call = service.listDatabases(filter, top, skip, expand, select, orderby, count, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDatabasesDelegate(response); + ServiceResponse> result = listDatabasesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4365,9 +4384,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDatabasesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDatabasesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4379,13 +4398,12 @@ private ServiceResponse> listDatabasesDelegate(Respo * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlExternalDataSourceInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlExternalDataSource> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listExternalDataSourcesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listExternalDataSourcesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listExternalDataSourcesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listExternalDataSourcesNextDelegate(call.execute()); } @@ -4399,7 +4417,7 @@ public ServiceResponse> listExternalDataSo * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listExternalDataSourcesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listExternalDataSourcesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4407,14 +4425,13 @@ public ServiceCall listExternalDataSourcesNextAsync(final String nextPageLink, f serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listExternalDataSourcesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listExternalDataSourcesNextDelegate(response); + ServiceResponse> result = listExternalDataSourcesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4430,9 +4447,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listExternalDataSourcesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listExternalDataSourcesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4444,13 +4461,12 @@ private ServiceResponse> listExternalDataS * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlCredentialInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlCredential> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listCredentialsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listCredentialsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listCredentialsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listCredentialsNextDelegate(call.execute()); } @@ -4464,7 +4480,7 @@ public ServiceResponse> listCredentialsNext(final * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listCredentialsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listCredentialsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4472,14 +4488,13 @@ public ServiceCall listCredentialsNextAsync(final String nextPageLink, final Ser serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listCredentialsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listCredentialsNextDelegate(response); + ServiceResponse> result = listCredentialsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4495,9 +4510,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listCredentialsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listCredentialsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4509,13 +4524,12 @@ private ServiceResponse> listCredentialsNextDelega * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlProcedureInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlProcedure> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listProceduresNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listProceduresNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listProceduresNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listProceduresNextDelegate(call.execute()); } @@ -4529,7 +4543,7 @@ public ServiceResponse> listProceduresNext(final St * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listProceduresNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listProceduresNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4537,14 +4551,13 @@ public ServiceCall listProceduresNextAsync(final String nextPageLink, final Serv serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listProceduresNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listProceduresNextDelegate(response); + ServiceResponse> result = listProceduresNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4560,9 +4573,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listProceduresNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listProceduresNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4574,13 +4587,12 @@ private ServiceResponse> listProceduresNextDelegate * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTable> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTablesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTablesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listTablesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listTablesNextDelegate(call.execute()); } @@ -4594,7 +4606,7 @@ public ServiceResponse> listTablesNext(final String nex * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4602,14 +4614,13 @@ public ServiceCall listTablesNextAsync(final String nextPageLink, final ServiceC serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listTablesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablesNextDelegate(response); + ServiceResponse> result = listTablesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4625,9 +4636,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTablesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTablesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4639,13 +4650,12 @@ private ServiceResponse> listTablesNextDelegate(Respons * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlViewInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlView> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listViewsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listViewsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listViewsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listViewsNextDelegate(call.execute()); } @@ -4659,7 +4669,7 @@ public ServiceResponse> listViewsNext(final String nextP * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listViewsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listViewsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4667,14 +4677,13 @@ public ServiceCall listViewsNextAsync(final String nextPageLink, final ServiceCa serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listViewsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listViewsNextDelegate(response); + ServiceResponse> result = listViewsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4690,9 +4699,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listViewsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listViewsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4704,13 +4713,12 @@ private ServiceResponse> listViewsNextDelegate(Response< * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableStatisticsInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableStatistics> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableStatisticsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableStatisticsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listTableStatisticsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listTableStatisticsNextDelegate(call.execute()); } @@ -4724,7 +4732,7 @@ public ServiceResponse> listTableStatisticsNe * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableStatisticsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableStatisticsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4732,14 +4740,13 @@ public ServiceCall listTableStatisticsNextAsync(final String nextPageLink, final serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listTableStatisticsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableStatisticsNextDelegate(response); + ServiceResponse> result = listTableStatisticsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4755,9 +4762,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTableStatisticsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTableStatisticsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4769,13 +4776,12 @@ private ServiceResponse> listTableStatisticsN * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTablePartitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTablePartition> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTablePartitionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTablePartitionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listTablePartitionsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listTablePartitionsNextDelegate(call.execute()); } @@ -4789,7 +4795,7 @@ public ServiceResponse> listTablePartitionsNex * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTablePartitionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTablePartitionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4797,14 +4803,13 @@ public ServiceCall listTablePartitionsNextAsync(final String nextPageLink, final serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listTablePartitionsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTablePartitionsNextDelegate(response); + ServiceResponse> result = listTablePartitionsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4820,9 +4825,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTablePartitionsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTablePartitionsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4834,13 +4839,12 @@ private ServiceResponse> listTablePartitionsNe * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTypeInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlType> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTypesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTypesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listTypesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listTypesNextDelegate(call.execute()); } @@ -4854,7 +4858,7 @@ public ServiceResponse> listTypesNext(final String nextP * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTypesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTypesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4862,14 +4866,13 @@ public ServiceCall listTypesNextAsync(final String nextPageLink, final ServiceCa serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listTypesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTypesNextDelegate(response); + ServiceResponse> result = listTypesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4885,9 +4888,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTypesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTypesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4899,13 +4902,12 @@ private ServiceResponse> listTypesNextDelegate(Response< * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlTableValuedFunctionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlTableValuedFunction> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listTableValuedFunctionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listTableValuedFunctionsNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listTableValuedFunctionsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listTableValuedFunctionsNextDelegate(call.execute()); } @@ -4919,7 +4921,7 @@ public ServiceResponse> listTableValuedFu * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listTableValuedFunctionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listTableValuedFunctionsNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4927,14 +4929,13 @@ public ServiceCall listTableValuedFunctionsNextAsync(final String nextPageLink, serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listTableValuedFunctionsNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listTableValuedFunctionsNextDelegate(response); + ServiceResponse> result = listTableValuedFunctionsNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -4950,9 +4951,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listTableValuedFunctionsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listTableValuedFunctionsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -4964,13 +4965,12 @@ private ServiceResponse> listTableValuedF * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlAssemblyClrInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlAssemblyClr> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listAssembliesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listAssembliesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listAssembliesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listAssembliesNextDelegate(call.execute()); } @@ -4984,7 +4984,7 @@ public ServiceResponse> listAssembliesNext(final * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAssembliesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAssembliesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -4992,14 +4992,13 @@ public ServiceCall listAssembliesNextAsync(final String nextPageLink, final Serv serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listAssembliesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listAssembliesNextDelegate(response); + ServiceResponse> result = listAssembliesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -5015,9 +5014,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listAssembliesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listAssembliesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -5029,13 +5028,12 @@ private ServiceResponse> listAssembliesNextDelega * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlSchemaInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlSchema> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listSchemasNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listSchemasNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listSchemasNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listSchemasNextDelegate(call.execute()); } @@ -5049,7 +5047,7 @@ public ServiceResponse> listSchemasNext(final String n * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listSchemasNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listSchemasNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -5057,14 +5055,13 @@ public ServiceCall listSchemasNextAsync(final String nextPageLink, final Service serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listSchemasNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listSchemasNextDelegate(response); + ServiceResponse> result = listSchemasNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -5080,9 +5077,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listSchemasNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSchemasNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -5094,13 +5091,12 @@ private ServiceResponse> listSchemasNextDelegate(Respo * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<USqlDatabaseInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<USqlDatabase> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listDatabasesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listDatabasesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listDatabasesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listDatabasesNextDelegate(call.execute()); } @@ -5114,7 +5110,7 @@ public ServiceResponse> listDatabasesNext(final Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listDatabasesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listDatabasesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -5122,14 +5118,13 @@ public ServiceCall listDatabasesNextAsync(final String nextPageLink, final Servi serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listDatabasesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDatabasesNextDelegate(response); + ServiceResponse> result = listDatabasesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -5145,9 +5140,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDatabasesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDatabasesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountManagementClientImpl.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java similarity index 82% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountManagementClientImpl.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java index 4f219e9a62f7..aeaaf0fc4107 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountManagementClientImpl.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsAccountManagementClientImpl.java @@ -4,10 +4,12 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.management.datalake.analytics.Accounts; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsAccountManagementClient; import com.microsoft.azure.serializer.AzureJacksonMapperAdapter; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -15,7 +17,7 @@ /** * Initializes a new instance of the DataLakeAnalyticsAccountManagementClientImpl class. */ -public final class DataLakeAnalyticsAccountManagementClientImpl extends AzureServiceClient { +public final class DataLakeAnalyticsAccountManagementClientImpl extends AzureServiceClient implements DataLakeAnalyticsAccountManagementClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -43,9 +45,11 @@ public String subscriptionId() { * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * * @param subscriptionId the subscriptionId value. + * @return the service client itself */ - public void withSubscriptionId(String subscriptionId) { + public DataLakeAnalyticsAccountManagementClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; + return this; } /** Client Api Version. */ @@ -76,9 +80,11 @@ public String acceptLanguage() { * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. + * @return the service client itself */ - public void withAcceptLanguage(String acceptLanguage) { + public DataLakeAnalyticsAccountManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; + return this; } /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ @@ -97,9 +103,11 @@ public int longRunningOperationRetryTimeout() { * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself */ - public void withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public DataLakeAnalyticsAccountManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; } /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ @@ -118,21 +126,23 @@ public boolean generateClientRequestId() { * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself */ - public void withGenerateClientRequestId(boolean generateClientRequestId) { + public DataLakeAnalyticsAccountManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; + return this; } /** - * The AccountsInner object to access its operations. + * The Accounts object to access its operations. */ - private AccountsInner accounts; + private Accounts accounts; /** - * Gets the AccountsInner object to access its operations. - * @return the AccountsInner object. + * Gets the Accounts object to access its operations. + * @return the Accounts object. */ - public AccountsInner accounts() { + public Accounts accounts() { return this.accounts; } @@ -173,7 +183,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; - this.accounts = new AccountsInner(restClient().retrofit(), this); + this.accounts = new AccountsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogManagementClientImpl.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsCatalogManagementClientImpl.java similarity index 82% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogManagementClientImpl.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsCatalogManagementClientImpl.java index 2fe2a37dc4f7..7251a6659a5f 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogManagementClientImpl.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsCatalogManagementClientImpl.java @@ -4,10 +4,12 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.management.datalake.analytics.Catalogs; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsCatalogManagementClient; import com.microsoft.azure.serializer.AzureJacksonMapperAdapter; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -15,7 +17,7 @@ /** * Initializes a new instance of the DataLakeAnalyticsCatalogManagementClientImpl class. */ -public final class DataLakeAnalyticsCatalogManagementClientImpl extends AzureServiceClient { +public final class DataLakeAnalyticsCatalogManagementClientImpl extends AzureServiceClient implements DataLakeAnalyticsCatalogManagementClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -55,9 +57,11 @@ public String adlaCatalogDnsSuffix() { * Sets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests. * * @param adlaCatalogDnsSuffix the adlaCatalogDnsSuffix value. + * @return the service client itself */ - public void withAdlaCatalogDnsSuffix(String adlaCatalogDnsSuffix) { + public DataLakeAnalyticsCatalogManagementClientImpl withAdlaCatalogDnsSuffix(String adlaCatalogDnsSuffix) { this.adlaCatalogDnsSuffix = adlaCatalogDnsSuffix; + return this; } /** Gets or sets the preferred language for the response. */ @@ -76,9 +80,11 @@ public String acceptLanguage() { * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. + * @return the service client itself */ - public void withAcceptLanguage(String acceptLanguage) { + public DataLakeAnalyticsCatalogManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; + return this; } /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ @@ -97,9 +103,11 @@ public int longRunningOperationRetryTimeout() { * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself */ - public void withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public DataLakeAnalyticsCatalogManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; } /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ @@ -118,21 +126,23 @@ public boolean generateClientRequestId() { * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself */ - public void withGenerateClientRequestId(boolean generateClientRequestId) { + public DataLakeAnalyticsCatalogManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; + return this; } /** - * The CatalogsInner object to access its operations. + * The Catalogs object to access its operations. */ - private CatalogsInner catalogs; + private Catalogs catalogs; /** - * Gets the CatalogsInner object to access its operations. - * @return the CatalogsInner object. + * Gets the Catalogs object to access its operations. + * @return the Catalogs object. */ - public CatalogsInner catalogs() { + public Catalogs catalogs() { return this.catalogs; } @@ -174,7 +184,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; - this.catalogs = new CatalogsInner(restClient().retrofit(), this); + this.catalogs = new CatalogsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsJobManagementClientImpl.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsJobManagementClientImpl.java similarity index 83% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsJobManagementClientImpl.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsJobManagementClientImpl.java index c9be407d150e..97de25676e09 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsJobManagementClientImpl.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/DataLakeAnalyticsJobManagementClientImpl.java @@ -4,10 +4,12 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsJobManagementClient; +import com.microsoft.azure.management.datalake.analytics.Jobs; import com.microsoft.azure.serializer.AzureJacksonMapperAdapter; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -15,7 +17,7 @@ /** * Initializes a new instance of the DataLakeAnalyticsJobManagementClientImpl class. */ -public final class DataLakeAnalyticsJobManagementClientImpl extends AzureServiceClient { +public final class DataLakeAnalyticsJobManagementClientImpl extends AzureServiceClient implements DataLakeAnalyticsJobManagementClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -55,9 +57,11 @@ public String adlaJobDnsSuffix() { * Sets Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests. * * @param adlaJobDnsSuffix the adlaJobDnsSuffix value. + * @return the service client itself */ - public void withAdlaJobDnsSuffix(String adlaJobDnsSuffix) { + public DataLakeAnalyticsJobManagementClientImpl withAdlaJobDnsSuffix(String adlaJobDnsSuffix) { this.adlaJobDnsSuffix = adlaJobDnsSuffix; + return this; } /** Gets or sets the preferred language for the response. */ @@ -76,9 +80,11 @@ public String acceptLanguage() { * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. + * @return the service client itself */ - public void withAcceptLanguage(String acceptLanguage) { + public DataLakeAnalyticsJobManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; + return this; } /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ @@ -97,9 +103,11 @@ public int longRunningOperationRetryTimeout() { * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself */ - public void withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public DataLakeAnalyticsJobManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; } /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ @@ -118,21 +126,23 @@ public boolean generateClientRequestId() { * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself */ - public void withGenerateClientRequestId(boolean generateClientRequestId) { + public DataLakeAnalyticsJobManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; + return this; } /** - * The JobsInner object to access its operations. + * The Jobs object to access its operations. */ - private JobsInner jobs; + private Jobs jobs; /** - * Gets the JobsInner object to access its operations. - * @return the JobsInner object. + * Gets the Jobs object to access its operations. + * @return the Jobs object. */ - public JobsInner jobs() { + public Jobs jobs() { return this.jobs; } @@ -174,7 +184,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; - this.jobs = new JobsInner(restClient().retrofit(), this); + this.jobs = new JobsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobsInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/JobsImpl.java similarity index 77% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobsInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/JobsImpl.java index c13b1706b06c..1d5779474e94 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobsInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/JobsImpl.java @@ -4,13 +4,20 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.implementation; import retrofit2.Retrofit; +import com.microsoft.azure.management.datalake.analytics.Jobs; +import com.microsoft.azure.management.datalake.analytics.DataLakeAnalyticsJobManagementClient; +import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceResponseBuilder; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.analytics.models.JobDataPath; +import com.microsoft.azure.management.datalake.analytics.models.JobInformation; +import com.microsoft.azure.management.datalake.analytics.models.JobStatistics; +import com.microsoft.azure.management.datalake.analytics.models.PageImpl; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCall; @@ -38,19 +45,19 @@ * An instance of this class provides access to all the operations defined * in Jobs. */ -public final class JobsInner { +public final class JobsImpl implements Jobs { /** The Retrofit service to perform REST calls. */ private JobsService service; /** The service client containing this operation class. */ - private DataLakeAnalyticsJobManagementClientImpl client; + private DataLakeAnalyticsJobManagementClient client; /** - * Initializes an instance of JobsInner. + * Initializes an instance of JobsImpl. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public JobsInner(Retrofit retrofit, DataLakeAnalyticsJobManagementClientImpl client) { + public JobsImpl(Retrofit retrofit, DataLakeAnalyticsJobManagementClient client) { this.service = retrofit.create(JobsService.class); this.client = client; } @@ -62,31 +69,31 @@ public JobsInner(Retrofit retrofit, DataLakeAnalyticsJobManagementClientImpl cli interface JobsService { @Headers("Content-Type: application/json; charset=utf-8") @POST("Jobs/{jobIdentity}/GetStatistics") - Call getStatistics(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getStatistics(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @POST("Jobs/{jobIdentity}/GetDebugDataPath") - Call getDebugDataPath(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getDebugDataPath(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @POST("BuildJob") - Call build(@Body JobInformationInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call build(@Body JobInformation parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @POST("Jobs/{jobIdentity}/CancelJob") - Call cancel(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call cancel(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("Jobs/{jobIdentity}") - Call get(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call get(@Path("jobIdentity") UUID jobIdentity, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("Jobs/{jobIdentity}") - Call create(@Path("jobIdentity") UUID jobIdentity, @Body JobInformationInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call create(@Path("jobIdentity") UUID jobIdentity, @Body JobInformation parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("Jobs") - Call list(@Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("$search") String search, @Query("$format") String format, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call list(@Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Query("$expand") String expand, @Query("$select") String select, @Query("$orderby") String orderby, @Query("$count") Boolean count, @Query("$search") String search, @Query("$format") String format, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET @@ -102,9 +109,9 @@ interface JobsService { * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the JobStatisticsInner object wrapped in {@link ServiceResponse} if successful. + * @return the JobStatistics object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getStatistics(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getStatistics(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -117,8 +124,8 @@ public ServiceResponse getStatistics(String accountName, UUI if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.getStatistics(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.getStatistics(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getStatisticsDelegate(call.execute()); } @@ -131,7 +138,7 @@ public ServiceResponse getStatistics(String accountName, UUI * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getStatisticsAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getStatisticsAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -151,10 +158,10 @@ public ServiceCall getStatisticsAsync(String accountName, UUID jobIdentity, fina serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.getStatistics(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.getStatistics(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -167,9 +174,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getStatisticsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getStatisticsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -182,9 +189,9 @@ private ServiceResponse getStatisticsDelegate(Response getDebugDataPath(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getDebugDataPath(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -197,8 +204,8 @@ public ServiceResponse getDebugDataPath(String accountName, UU if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.getDebugDataPath(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.getDebugDataPath(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getDebugDataPathDelegate(call.execute()); } @@ -211,7 +218,7 @@ public ServiceResponse getDebugDataPath(String accountName, UU * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getDebugDataPathAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getDebugDataPathAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -231,10 +238,10 @@ public ServiceCall getDebugDataPathAsync(String accountName, UUID jobIdentity, f serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.getDebugDataPath(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.getDebugDataPath(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -247,9 +254,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDebugDataPathDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDebugDataPathDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -262,9 +269,9 @@ private ServiceResponse getDebugDataPathDelegate(Response build(String accountName, JobInformationInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse build(String accountName, JobInformation parameters) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -278,8 +285,8 @@ public ServiceResponse build(String accountName, JobInforma throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(parameters); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.build(parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.build(parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return buildDelegate(call.execute()); } @@ -292,7 +299,7 @@ public ServiceResponse build(String accountName, JobInforma * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall buildAsync(String accountName, JobInformationInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall buildAsync(String accountName, JobInformation parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -313,10 +320,10 @@ public ServiceCall buildAsync(String accountName, JobInformationInner parameters return null; } Validator.validate(parameters, serviceCallback); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.build(parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.build(parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -329,9 +336,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse buildDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse buildDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -359,8 +366,8 @@ public ServiceResponse cancel(String accountName, UUID jobIdentity) throws if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.cancel(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.cancel(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return cancelDelegate(call.execute()); } @@ -393,8 +400,8 @@ public ServiceCall cancelAsync(String accountName, UUID jobIdentity, final Servi serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.cancel(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.cancel(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -423,9 +430,9 @@ private ServiceResponse cancelDelegate(Response response) th * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the JobInformationInner object wrapped in {@link ServiceResponse} if successful. + * @return the JobInformation object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse get(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse get(String accountName, UUID jobIdentity) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -438,8 +445,8 @@ public ServiceResponse get(String accountName, UUID jobIden if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.get(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.get(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getDelegate(call.execute()); } @@ -452,7 +459,7 @@ public ServiceResponse get(String accountName, UUID jobIden * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getAsync(String accountName, UUID jobIdentity, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -472,10 +479,10 @@ public ServiceCall getAsync(String accountName, UUID jobIdentity, final ServiceC serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.get(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.get(jobIdentity, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -488,9 +495,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -504,9 +511,9 @@ private ServiceResponse getDelegate(Response * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the JobInformationInner object wrapped in {@link ServiceResponse} if successful. + * @return the JobInformation object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse create(String accountName, UUID jobIdentity, JobInformationInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse create(String accountName, UUID jobIdentity, JobInformation parameters) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -523,8 +530,8 @@ public ServiceResponse create(String accountName, UUID jobI throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(parameters); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.create(jobIdentity, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.create(jobIdentity, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return createDelegate(call.execute()); } @@ -538,7 +545,7 @@ public ServiceResponse create(String accountName, UUID jobI * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall createAsync(String accountName, UUID jobIdentity, JobInformationInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall createAsync(String accountName, UUID jobIdentity, JobInformation parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -563,10 +570,10 @@ public ServiceCall createAsync(String accountName, UUID jobIdentity, JobInformat return null; } Validator.validate(parameters, serviceCallback); - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.create(jobIdentity, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.create(jobIdentity, parameters, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -579,9 +586,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse createDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse createDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -593,9 +600,9 @@ private ServiceResponse createDelegate(Response> list(final String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list(final String accountName) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -614,12 +621,12 @@ public ServiceResponse> list(final String account final Boolean count = null; final String search = null; final String format = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -634,7 +641,7 @@ public Page nextPage(String nextPageLink) throws CloudExcep * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -659,14 +666,14 @@ public ServiceCall listAsync(final String accountName, final ListOperationCallba final Boolean count = null; final String search = null; final String format = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -698,9 +705,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<JobInformationInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<JobInformation> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> list(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -710,12 +717,12 @@ public ServiceResponse> list(final String account if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -739,7 +746,7 @@ public Page nextPage(String nextPageLink) throws CloudExcep * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final String accountName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -755,14 +762,14 @@ public ServiceCall listAsync(final String accountName, final String filter, fina serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); - Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlaJobDnsSuffix}", this.client.adlaJobDnsSuffix()); + Call call = service.list(filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -778,9 +785,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -792,13 +799,12 @@ private ServiceResponse> listDelegate(Response> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } - this.client.restClient().setBaseUrl(); Call call = service.listNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); return listNextDelegate(call.execute()); } @@ -812,7 +818,7 @@ public ServiceResponse> listNext(final String next * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -820,14 +826,13 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se serviceCallback.failure(new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.")); return null; } - this.client.restClient().setBaseUrl(); Call call = service.listNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -843,9 +848,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddDataLakeStoreParametersInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddDataLakeStoreParameters.java similarity index 73% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddDataLakeStoreParametersInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddDataLakeStoreParameters.java index 419936e9b594..c091f763e116 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddDataLakeStoreParametersInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddDataLakeStoreParameters.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Additional Data Lake Store parameters. */ -public class AddDataLakeStoreParametersInner { +public class AddDataLakeStoreParameters { /** * Gets or sets the properties for the Data Lake Store account being added. */ @@ -31,9 +31,9 @@ public DataLakeStoreAccountInfoProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the AddDataLakeStoreParametersInner object itself. + * @return the AddDataLakeStoreParameters object itself. */ - public AddDataLakeStoreParametersInner withProperties(DataLakeStoreAccountInfoProperties properties) { + public AddDataLakeStoreParameters withProperties(DataLakeStoreAccountInfoProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddStorageAccountParametersInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddStorageAccountParameters.java similarity index 73% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddStorageAccountParametersInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddStorageAccountParameters.java index 7498e0e420fd..5adabf50d5ed 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AddStorageAccountParametersInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AddStorageAccountParameters.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Additional Azure Storage account parameters. */ -public class AddStorageAccountParametersInner { +public class AddStorageAccountParameters { /** * Gets or sets the properties for the Azure Storage account being added. */ @@ -31,9 +31,9 @@ public StorageAccountProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the AddStorageAccountParametersInner object itself. + * @return the AddStorageAccountParameters object itself. */ - public AddStorageAccountParametersInner withProperties(StorageAccountProperties properties) { + public AddStorageAccountParameters withProperties(StorageAccountProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AzureAsyncOperationResult.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AzureAsyncOperationResult.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AzureAsyncOperationResult.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AzureAsyncOperationResult.java index 3dfade757ea7..bf6470b9e196 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/AzureAsyncOperationResult.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/AzureAsyncOperationResult.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainer.java similarity index 93% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainer.java index 86ef7bc72b85..38b12daa7e80 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainer.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Azure Storage blob container information. */ -public class BlobContainerInner { +public class BlobContainer { /** * Gets or sets the name of the blob container. */ diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainerProperties.java similarity index 90% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainerProperties.java index 7cc7cb7bf6ac..274a4a84056d 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/BlobContainerProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/BlobContainerProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItem.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItem.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItem.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItem.java index 1582a03d77a4..1dbc1993e47f 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItem.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItem.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.UUID; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItemList.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItemList.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItemList.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItemList.java index f2880c1fa700..aeb698566e6e 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CatalogItemList.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CatalogItemList.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CompileMode.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CompileMode.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CompileMode.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CompileMode.java index 993bc0c12aa4..27eb26f72c47 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/CompileMode.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/CompileMode.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccount.java similarity index 79% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccount.java index 82f6a4890bff..de8a1e721538 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccount.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; @@ -13,7 +13,7 @@ * A Data Lake Analytics account object, containing all information associated * with the named Data Lake Analytics account. */ -public class DataLakeAnalyticsAccountInner { +public class DataLakeAnalyticsAccount { /** * Gets or sets the account regional location. */ @@ -60,9 +60,9 @@ public String location() { * Set the location value. * * @param location the location value to set - * @return the DataLakeAnalyticsAccountInner object itself. + * @return the DataLakeAnalyticsAccount object itself. */ - public DataLakeAnalyticsAccountInner withLocation(String location) { + public DataLakeAnalyticsAccount withLocation(String location) { this.location = location; return this; } @@ -80,9 +80,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the DataLakeAnalyticsAccountInner object itself. + * @return the DataLakeAnalyticsAccount object itself. */ - public DataLakeAnalyticsAccountInner withName(String name) { + public DataLakeAnalyticsAccount withName(String name) { this.name = name; return this; } @@ -118,9 +118,9 @@ public Map tags() { * Set the tags value. * * @param tags the tags value to set - * @return the DataLakeAnalyticsAccountInner object itself. + * @return the DataLakeAnalyticsAccount object itself. */ - public DataLakeAnalyticsAccountInner withTags(Map tags) { + public DataLakeAnalyticsAccount withTags(Map tags) { this.tags = tags; return this; } @@ -138,9 +138,9 @@ public DataLakeAnalyticsAccountProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the DataLakeAnalyticsAccountInner object itself. + * @return the DataLakeAnalyticsAccount object itself. */ - public DataLakeAnalyticsAccountInner withProperties(DataLakeAnalyticsAccountProperties properties) { + public DataLakeAnalyticsAccount withProperties(DataLakeAnalyticsAccountProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountProperties.java similarity index 92% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountProperties.java index f6875b778762..35f468a71f97 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import org.joda.time.DateTime; @@ -52,13 +52,13 @@ public class DataLakeAnalyticsAccountProperties { * Gets or sets the list of Data Lake storage accounts associated with * this account. */ - private List dataLakeStoreAccounts; + private List dataLakeStoreAccounts; /** * Gets or sets the list of Azure Blob storage accounts associated with * this account. */ - private List storageAccounts; + private List storageAccounts; /** * Gets or sets the account creation time. @@ -161,7 +161,7 @@ public DataLakeAnalyticsAccountProperties withMaxJobCount(Integer maxJobCount) { * * @return the dataLakeStoreAccounts value */ - public List dataLakeStoreAccounts() { + public List dataLakeStoreAccounts() { return this.dataLakeStoreAccounts; } @@ -171,7 +171,7 @@ public List dataLakeStoreAccounts() { * @param dataLakeStoreAccounts the dataLakeStoreAccounts value to set * @return the DataLakeAnalyticsAccountProperties object itself. */ - public DataLakeAnalyticsAccountProperties withDataLakeStoreAccounts(List dataLakeStoreAccounts) { + public DataLakeAnalyticsAccountProperties withDataLakeStoreAccounts(List dataLakeStoreAccounts) { this.dataLakeStoreAccounts = dataLakeStoreAccounts; return this; } @@ -181,7 +181,7 @@ public DataLakeAnalyticsAccountProperties withDataLakeStoreAccounts(List storageAccounts() { + public List storageAccounts() { return this.storageAccounts; } @@ -191,7 +191,7 @@ public List storageAccounts() { * @param storageAccounts the storageAccounts value to set * @return the DataLakeAnalyticsAccountProperties object itself. */ - public DataLakeAnalyticsAccountProperties withStorageAccounts(List storageAccounts) { + public DataLakeAnalyticsAccountProperties withStorageAccounts(List storageAccounts) { this.storageAccounts = storageAccounts; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountState.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountState.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountState.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountState.java index 740eadfde3aa..82b4319b8ae3 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountState.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountState.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountStatus.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountStatus.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountStatus.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountStatus.java index 4078990ddf80..fa9e085100b1 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsAccountStatus.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsAccountStatus.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.java similarity index 87% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.java index a203e3995586..e646d013ea69 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * DataLakeAnalytics DataLakeAnalyticsAccount information. */ -public class DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner { +public class DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters { /** * Gets or sets the password for the secret to pass in. */ @@ -37,9 +37,9 @@ public String password() { * Set the password value. * * @param password the password value to set - * @return the DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner object itself. + * @return the DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters object itself. */ - public DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner withPassword(String password) { + public DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters withPassword(String password) { this.password = password; return this; } @@ -57,9 +57,9 @@ public String uri() { * Set the uri value. * * @param uri the uri value to set - * @return the DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner object itself. + * @return the DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters object itself. */ - public DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner withUri(String uri) { + public DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters withUri(String uri) { this.uri = uri; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfo.java similarity index 74% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfo.java index 526feef51263..42311158c40f 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfo.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store account information. */ -public class DataLakeStoreAccountInfoInner { +public class DataLakeStoreAccountInfo { /** * Gets or sets the account name of the Data Lake Store account. */ @@ -37,9 +37,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the DataLakeStoreAccountInfoInner object itself. + * @return the DataLakeStoreAccountInfo object itself. */ - public DataLakeStoreAccountInfoInner withName(String name) { + public DataLakeStoreAccountInfo withName(String name) { this.name = name; return this; } @@ -57,9 +57,9 @@ public DataLakeStoreAccountInfoProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the DataLakeStoreAccountInfoInner object itself. + * @return the DataLakeStoreAccountInfo object itself. */ - public DataLakeStoreAccountInfoInner withProperties(DataLakeStoreAccountInfoProperties properties) { + public DataLakeStoreAccountInfo withProperties(DataLakeStoreAccountInfoProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfoProperties.java similarity index 91% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfoProperties.java index edbcb9a32be5..978790fd5128 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DataLakeStoreAccountInfoProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DataLakeStoreAccountInfoProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DdlName.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DdlName.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DdlName.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DdlName.java index 68567daea20b..1c54a6855224 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/DdlName.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/DdlName.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Diagnostics.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Diagnostics.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Diagnostics.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Diagnostics.java index 81825ec8463d..144f597c7159 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Diagnostics.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Diagnostics.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/EntityId.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/EntityId.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/EntityId.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/EntityId.java index 4e3f3e14ca07..8fb6b991490c 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/EntityId.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/EntityId.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.UUID; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Error.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Error.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Error.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Error.java index 15ea242f16e1..11e175ef3771 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/Error.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/Error.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ErrorDetails.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ErrorDetails.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ErrorDetails.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ErrorDetails.java index 40acd36bb08d..ed6b2e0662fe 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ErrorDetails.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ErrorDetails.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ExternalTable.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ExternalTable.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ExternalTable.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ExternalTable.java index 5501cc676a4f..3332dfdcdf9a 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/ExternalTable.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/ExternalTable.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/FileType.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/FileType.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/FileType.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/FileType.java index 9afc73c741ec..c0c86d2d42b7 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/FileType.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/FileType.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobProperties.java similarity index 97% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobProperties.java index 91a4bd69ace0..1e34b5d786f1 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobStatementInfo.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobStatementInfo.java similarity index 97% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobStatementInfo.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobStatementInfo.java index 3cec6529a727..5f21d86d10b7 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/HiveJobStatementInfo.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/HiveJobStatementInfo.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/InnerError.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/InnerError.java similarity index 92% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/InnerError.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/InnerError.java index f0049eea0c4e..667e8b1358ad 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/InnerError.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/InnerError.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobDataPathInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobDataPath.java similarity index 91% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobDataPathInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobDataPath.java index d9776ea2d22f..d53ecbd5cafc 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobDataPathInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobDataPath.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.UUID; import java.util.List; @@ -13,7 +13,7 @@ /** * A Data Lake Analytics job data path item. */ -public class JobDataPathInner { +public class JobDataPath { /** * Gets the id of the job this data is for. */ diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobErrorDetails.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobErrorDetails.java similarity index 98% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobErrorDetails.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobErrorDetails.java index c3f456a93812..e0f77d631597 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobErrorDetails.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobErrorDetails.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInformationInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInformation.java similarity index 87% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInformationInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInformation.java index 0de4bf6ead91..e65843e7ff4f 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInformationInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInformation.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.UUID; import java.util.List; @@ -14,7 +14,7 @@ /** * The common Data Lake Analytics job information properties. */ -public class JobInformationInner { +public class JobInformation { /** * Gets or sets the job's unique identifier (a GUID). */ @@ -132,9 +132,9 @@ public UUID jobId() { * Set the jobId value. * * @param jobId the jobId value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withJobId(UUID jobId) { + public JobInformation withJobId(UUID jobId) { this.jobId = jobId; return this; } @@ -152,9 +152,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withName(String name) { + public JobInformation withName(String name) { this.name = name; return this; } @@ -172,9 +172,9 @@ public JobType type() { * Set the type value. * * @param type the type value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withType(JobType type) { + public JobInformation withType(JobType type) { this.type = type; return this; } @@ -192,9 +192,9 @@ public String submitter() { * Set the submitter value. * * @param submitter the submitter value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withSubmitter(String submitter) { + public JobInformation withSubmitter(String submitter) { this.submitter = submitter; return this; } @@ -221,9 +221,9 @@ public Integer degreeOfParallelism() { * Set the degreeOfParallelism value. * * @param degreeOfParallelism the degreeOfParallelism value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withDegreeOfParallelism(Integer degreeOfParallelism) { + public JobInformation withDegreeOfParallelism(Integer degreeOfParallelism) { this.degreeOfParallelism = degreeOfParallelism; return this; } @@ -241,9 +241,9 @@ public Integer priority() { * Set the priority value. * * @param priority the priority value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withPriority(Integer priority) { + public JobInformation withPriority(Integer priority) { this.priority = priority; return this; } @@ -315,9 +315,9 @@ public List logFilePatterns() { * Set the logFilePatterns value. * * @param logFilePatterns the logFilePatterns value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withLogFilePatterns(List logFilePatterns) { + public JobInformation withLogFilePatterns(List logFilePatterns) { this.logFilePatterns = logFilePatterns; return this; } @@ -344,9 +344,9 @@ public JobProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the JobInformationInner object itself. + * @return the JobInformation object itself. */ - public JobInformationInner withProperties(JobProperties properties) { + public JobInformation withProperties(JobProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInnerError.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInnerError.java similarity index 98% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInnerError.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInnerError.java index 8325602b8ff7..f278d9ece275 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobInnerError.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInnerError.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobProperties.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobProperties.java index 27486ab1b0ff..9d00d5761c2d 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResource.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResource.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResource.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResource.java index 388b4fc6cb75..51ca648633b2 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResource.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResource.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResourceType.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResourceType.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResourceType.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResourceType.java index 8909ec35aa34..ccd25c08752e 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResourceType.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResourceType.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResult.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResult.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResult.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResult.java index 4faeb600ea1a..cdd8b58cfaa9 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobResult.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobResult.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobState.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobState.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobState.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobState.java index 465ab1d410e7..02b3c3d137d7 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobState.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobState.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStateAuditRecord.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStateAuditRecord.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStateAuditRecord.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStateAuditRecord.java index ab3a53c081e1..f84f56aff864 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStateAuditRecord.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStateAuditRecord.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatistics.java similarity index 90% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatistics.java index f4085685f051..e82ee6c7635d 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatistics.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.DateTime; import java.util.List; @@ -13,7 +13,7 @@ /** * The Data Lake Analytics job execution statistics. */ -public class JobStatisticsInner { +public class JobStatistics { /** * Gets the last update time for the statistics. */ diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsVertexStage.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatisticsVertexStage.java similarity index 98% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsVertexStage.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatisticsVertexStage.java index 7d72dff2db8e..544da7b2f042 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobStatisticsVertexStage.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobStatisticsVertexStage.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.Period; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobType.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobType.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobType.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobType.java index 3c5d88c4efef..4d3ea31fb2d7 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/JobType.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobType.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/OperationStatus.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/OperationStatus.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/OperationStatus.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/OperationStatus.java index da7e2ecd48fa..ccb218ca9dd4 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/OperationStatus.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/OperationStatus.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/PageImpl.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/PageImpl.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/PageImpl.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/PageImpl.java index 2cbdcf9e7f64..bedc2b98b24b 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/PageImpl.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/PageImpl.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Page; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SasTokenInfoInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SasTokenInfo.java similarity index 84% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SasTokenInfoInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SasTokenInfo.java index 30d4a02c16a3..2b08b2bf7e9f 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SasTokenInfoInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SasTokenInfo.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * SAS token information. */ -public class SasTokenInfoInner { +public class SasTokenInfo { /** * Gets or sets the access token for the associated Azure Storage * Container. diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SeverityTypes.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SeverityTypes.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SeverityTypes.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SeverityTypes.java index 2f10826148ec..5a8b790c46fd 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/SeverityTypes.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/SeverityTypes.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountInfoInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountInfo.java similarity index 76% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountInfoInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountInfo.java index 372964b1f028..2de1dcce60a4 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountInfoInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountInfo.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Azure Storage account information. */ -public class StorageAccountInfoInner { +public class StorageAccountInfo { /** * Gets or sets the account name associated with the Azure storage account. */ @@ -37,9 +37,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the StorageAccountInfoInner object itself. + * @return the StorageAccountInfo object itself. */ - public StorageAccountInfoInner withName(String name) { + public StorageAccountInfo withName(String name) { this.name = name; return this; } @@ -57,9 +57,9 @@ public StorageAccountProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the StorageAccountInfoInner object itself. + * @return the StorageAccountInfo object itself. */ - public StorageAccountInfoInner withProperties(StorageAccountProperties properties) { + public StorageAccountInfo withProperties(StorageAccountProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountProperties.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountProperties.java index 6c14c8233c67..1e1ef62cfef3 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/StorageAccountProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/StorageAccountProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssembly.java similarity index 78% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssembly.java index 97be498d2e60..07dbcbea7633 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssembly.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * A Data Lake Analytics catalog U-SQL Assembly. */ -public class USqlAssemblyInner extends CatalogItem { +public class USqlAssembly extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -63,9 +63,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withDatabaseName(String databaseName) { + public USqlAssembly withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -83,9 +83,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withName(String name) { + public USqlAssembly withName(String name) { this.name = name; return this; } @@ -103,9 +103,9 @@ public String clrName() { * Set the clrName value. * * @param clrName the clrName value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withClrName(String clrName) { + public USqlAssembly withClrName(String clrName) { this.clrName = clrName; return this; } @@ -123,9 +123,9 @@ public Boolean isVisible() { * Set the isVisible value. * * @param isVisible the isVisible value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withIsVisible(Boolean isVisible) { + public USqlAssembly withIsVisible(Boolean isVisible) { this.isVisible = isVisible; return this; } @@ -143,9 +143,9 @@ public Boolean isUserDefined() { * Set the isUserDefined value. * * @param isUserDefined the isUserDefined value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withIsUserDefined(Boolean isUserDefined) { + public USqlAssembly withIsUserDefined(Boolean isUserDefined) { this.isUserDefined = isUserDefined; return this; } @@ -163,9 +163,9 @@ public List files() { * Set the files value. * * @param files the files value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withFiles(List files) { + public USqlAssembly withFiles(List files) { this.files = files; return this; } @@ -183,9 +183,9 @@ public List dependencies() { * Set the dependencies value. * * @param dependencies the dependencies value to set - * @return the USqlAssemblyInner object itself. + * @return the USqlAssembly object itself. */ - public USqlAssemblyInner withDependencies(List dependencies) { + public USqlAssembly withDependencies(List dependencies) { this.dependencies = dependencies; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyClrInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyClr.java similarity index 76% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyClrInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyClr.java index fd9738b5ac4a..4789658f2cfb 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyClrInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyClr.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL assembly CLR item. */ -public class USqlAssemblyClrInner extends CatalogItem { +public class USqlAssemblyClr extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -41,9 +41,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlAssemblyClrInner object itself. + * @return the USqlAssemblyClr object itself. */ - public USqlAssemblyClrInner withDatabaseName(String databaseName) { + public USqlAssemblyClr withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -61,9 +61,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlAssemblyClrInner object itself. + * @return the USqlAssemblyClr object itself. */ - public USqlAssemblyClrInner withName(String name) { + public USqlAssemblyClr withName(String name) { this.name = name; return this; } @@ -81,9 +81,9 @@ public String clrName() { * Set the clrName value. * * @param clrName the clrName value to set - * @return the USqlAssemblyClrInner object itself. + * @return the USqlAssemblyClr object itself. */ - public USqlAssemblyClrInner withClrName(String clrName) { + public USqlAssemblyClr withClrName(String clrName) { this.clrName = clrName; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyDependencyInfo.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyDependencyInfo.java similarity index 91% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyDependencyInfo.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyDependencyInfo.java index bcb5250a67d5..292b411289c0 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyDependencyInfo.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyDependencyInfo.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyFileInfo.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyFileInfo.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyFileInfo.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyFileInfo.java index 1d6a4ffa142d..53c39f50285d 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlAssemblyFileInfo.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlAssemblyFileInfo.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlCredentialInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlCredential.java similarity index 77% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlCredentialInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlCredential.java index 1ec6dfcb1ec1..64d522194578 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlCredentialInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlCredential.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL credential item. */ -public class USqlCredentialInner extends CatalogItem { +public class USqlCredential extends CatalogItem { /** * Gets or sets the name of the database the credential is in. */ @@ -46,9 +46,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlCredentialInner object itself. + * @return the USqlCredential object itself. */ - public USqlCredentialInner withDatabaseName(String databaseName) { + public USqlCredential withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -66,9 +66,9 @@ public String identity() { * Set the identity value. * * @param identity the identity value to set - * @return the USqlCredentialInner object itself. + * @return the USqlCredential object itself. */ - public USqlCredentialInner withIdentity(String identity) { + public USqlCredential withIdentity(String identity) { this.identity = identity; return this; } @@ -86,9 +86,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlCredentialInner object itself. + * @return the USqlCredential object itself. */ - public USqlCredentialInner withName(String name) { + public USqlCredential withName(String name) { this.name = name; return this; } @@ -106,9 +106,9 @@ public String userName() { * Set the userName value. * * @param userName the userName value to set - * @return the USqlCredentialInner object itself. + * @return the USqlCredential object itself. */ - public USqlCredentialInner withUserName(String userName) { + public USqlCredential withUserName(String userName) { this.userName = userName; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDatabaseInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDatabase.java similarity index 74% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDatabaseInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDatabase.java index 84985a3fffd1..2e4baacf3535 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDatabaseInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDatabase.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL database item. */ -public class USqlDatabaseInner extends CatalogItem { +public class USqlDatabase extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -31,9 +31,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlDatabaseInner object itself. + * @return the USqlDatabase object itself. */ - public USqlDatabaseInner withName(String name) { + public USqlDatabase withName(String name) { this.name = name; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDirectedColumn.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDirectedColumn.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDirectedColumn.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDirectedColumn.java index 725e419ac2eb..3cf6e4df91fe 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDirectedColumn.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDirectedColumn.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDistributionInfo.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDistributionInfo.java similarity index 96% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDistributionInfo.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDistributionInfo.java index 332d989d7729..90ed8a61660a 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlDistributionInfo.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlDistributionInfo.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlExternalDataSourceInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlExternalDataSource.java similarity index 76% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlExternalDataSourceInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlExternalDataSource.java index a83abd398741..b7b721d31abc 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlExternalDataSourceInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlExternalDataSource.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * A Data Lake Analytics catalog U-SQL external datasource item. */ -public class USqlExternalDataSourceInner extends CatalogItem { +public class USqlExternalDataSource extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -54,9 +54,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlExternalDataSourceInner object itself. + * @return the USqlExternalDataSource object itself. */ - public USqlExternalDataSourceInner withDatabaseName(String databaseName) { + public USqlExternalDataSource withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -74,9 +74,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlExternalDataSourceInner object itself. + * @return the USqlExternalDataSource object itself. */ - public USqlExternalDataSourceInner withName(String name) { + public USqlExternalDataSource withName(String name) { this.name = name; return this; } @@ -94,9 +94,9 @@ public String provider() { * Set the provider value. * * @param provider the provider value to set - * @return the USqlExternalDataSourceInner object itself. + * @return the USqlExternalDataSource object itself. */ - public USqlExternalDataSourceInner withProvider(String provider) { + public USqlExternalDataSource withProvider(String provider) { this.provider = provider; return this; } @@ -114,9 +114,9 @@ public String providerString() { * Set the providerString value. * * @param providerString the providerString value to set - * @return the USqlExternalDataSourceInner object itself. + * @return the USqlExternalDataSource object itself. */ - public USqlExternalDataSourceInner withProviderString(String providerString) { + public USqlExternalDataSource withProviderString(String providerString) { this.providerString = providerString; return this; } @@ -134,9 +134,9 @@ public List pushdownTypes() { * Set the pushdownTypes value. * * @param pushdownTypes the pushdownTypes value to set - * @return the USqlExternalDataSourceInner object itself. + * @return the USqlExternalDataSource object itself. */ - public USqlExternalDataSourceInner withPushdownTypes(List pushdownTypes) { + public USqlExternalDataSource withPushdownTypes(List pushdownTypes) { this.pushdownTypes = pushdownTypes; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlIndex.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlIndex.java similarity index 98% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlIndex.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlIndex.java index e8fbc40c919c..b98166a85cc8 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlIndex.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlIndex.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import java.util.UUID; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlJobProperties.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlJobProperties.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlJobProperties.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlJobProperties.java index 9c523869b5f0..d933451cbd16 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlJobProperties.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlJobProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import org.joda.time.Period; @@ -26,12 +26,12 @@ public class USqlJobProperties extends JobProperties { /** * Gets or sets the job specific statistics. */ - private JobStatisticsInner statistics; + private JobStatistics statistics; /** * Gets or sets the job specific debug data locations. */ - private JobDataPathInner debugData; + private JobDataPath debugData; /** * Gets or sets the diagnostics for the job. @@ -126,7 +126,7 @@ public USqlJobProperties withResources(List resources) { * * @return the statistics value */ - public JobStatisticsInner statistics() { + public JobStatistics statistics() { return this.statistics; } @@ -136,7 +136,7 @@ public JobStatisticsInner statistics() { * @param statistics the statistics value to set * @return the USqlJobProperties object itself. */ - public USqlJobProperties withStatistics(JobStatisticsInner statistics) { + public USqlJobProperties withStatistics(JobStatistics statistics) { this.statistics = statistics; return this; } @@ -146,7 +146,7 @@ public USqlJobProperties withStatistics(JobStatisticsInner statistics) { * * @return the debugData value */ - public JobDataPathInner debugData() { + public JobDataPath debugData() { return this.debugData; } @@ -156,7 +156,7 @@ public JobDataPathInner debugData() { * @param debugData the debugData value to set * @return the USqlJobProperties object itself. */ - public USqlJobProperties withDebugData(JobDataPathInner debugData) { + public USqlJobProperties withDebugData(JobDataPath debugData) { this.debugData = debugData; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlProcedureInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlProcedure.java similarity index 77% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlProcedureInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlProcedure.java index 566d29e3a200..7c94dbf3a814 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlProcedureInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlProcedure.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL procedure item. */ -public class USqlProcedureInner extends CatalogItem { +public class USqlProcedure extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -47,9 +47,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlProcedureInner object itself. + * @return the USqlProcedure object itself. */ - public USqlProcedureInner withDatabaseName(String databaseName) { + public USqlProcedure withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -67,9 +67,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlProcedureInner object itself. + * @return the USqlProcedure object itself. */ - public USqlProcedureInner withSchemaName(String schemaName) { + public USqlProcedure withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -87,9 +87,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlProcedureInner object itself. + * @return the USqlProcedure object itself. */ - public USqlProcedureInner withName(String name) { + public USqlProcedure withName(String name) { this.name = name; return this; } @@ -107,9 +107,9 @@ public String definition() { * Set the definition value. * * @param definition the definition value to set - * @return the USqlProcedureInner object itself. + * @return the USqlProcedure object itself. */ - public USqlProcedureInner withDefinition(String definition) { + public USqlProcedure withDefinition(String definition) { this.definition = definition; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSchemaInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSchema.java similarity index 76% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSchemaInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSchema.java index e0ed671a2651..f822a5e2f9e0 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSchemaInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSchema.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL schema item. */ -public class USqlSchemaInner extends CatalogItem { +public class USqlSchema extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -36,9 +36,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlSchemaInner object itself. + * @return the USqlSchema object itself. */ - public USqlSchemaInner withDatabaseName(String databaseName) { + public USqlSchema withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -56,9 +56,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlSchemaInner object itself. + * @return the USqlSchema object itself. */ - public USqlSchemaInner withName(String name) { + public USqlSchema withName(String name) { this.name = name; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSecretInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSecret.java similarity index 79% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSecretInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSecret.java index 3d0d4812f21b..81d1a702ddcd 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlSecretInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlSecret.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * A Data Lake Analytics catalog U-SQL secret item. */ -public class USqlSecretInner extends CatalogItem { +public class USqlSecret extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -54,9 +54,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlSecretInner object itself. + * @return the USqlSecret object itself. */ - public USqlSecretInner withDatabaseName(String databaseName) { + public USqlSecret withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -74,9 +74,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlSecretInner object itself. + * @return the USqlSecret object itself. */ - public USqlSecretInner withName(String name) { + public USqlSecret withName(String name) { this.name = name; return this; } @@ -94,9 +94,9 @@ public DateTime creationTime() { * Set the creationTime value. * * @param creationTime the creationTime value to set - * @return the USqlSecretInner object itself. + * @return the USqlSecret object itself. */ - public USqlSecretInner withCreationTime(DateTime creationTime) { + public USqlSecret withCreationTime(DateTime creationTime) { this.creationTime = creationTime; return this; } @@ -114,9 +114,9 @@ public String uri() { * Set the uri value. * * @param uri the uri value to set - * @return the USqlSecretInner object itself. + * @return the USqlSecret object itself. */ - public USqlSecretInner withUri(String uri) { + public USqlSecret withUri(String uri) { this.uri = uri; return this; } @@ -134,9 +134,9 @@ public String password() { * Set the password value. * * @param password the password value to set - * @return the USqlSecretInner object itself. + * @return the USqlSecret object itself. */ - public USqlSecretInner withPassword(String password) { + public USqlSecret withPassword(String password) { this.password = password; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTable.java similarity index 79% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTable.java index 9f9bf55b274c..6e18995c9d50 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTable.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * A Data Lake Analytics catalog U-SQL table item. */ -public class USqlTableInner extends CatalogItem { +public class USqlTable extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -63,9 +63,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withDatabaseName(String databaseName) { + public USqlTable withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -83,9 +83,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withSchemaName(String schemaName) { + public USqlTable withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -103,9 +103,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withName(String name) { + public USqlTable withName(String name) { this.name = name; return this; } @@ -123,9 +123,9 @@ public List columnList() { * Set the columnList value. * * @param columnList the columnList value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withColumnList(List columnList) { + public USqlTable withColumnList(List columnList) { this.columnList = columnList; return this; } @@ -143,9 +143,9 @@ public List indexList() { * Set the indexList value. * * @param indexList the indexList value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withIndexList(List indexList) { + public USqlTable withIndexList(List indexList) { this.indexList = indexList; return this; } @@ -163,9 +163,9 @@ public List partitionKeyList() { * Set the partitionKeyList value. * * @param partitionKeyList the partitionKeyList value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withPartitionKeyList(List partitionKeyList) { + public USqlTable withPartitionKeyList(List partitionKeyList) { this.partitionKeyList = partitionKeyList; return this; } @@ -183,9 +183,9 @@ public ExternalTable externalTable() { * Set the externalTable value. * * @param externalTable the externalTable value to set - * @return the USqlTableInner object itself. + * @return the USqlTable object itself. */ - public USqlTableInner withExternalTable(ExternalTable externalTable) { + public USqlTable withExternalTable(ExternalTable externalTable) { this.externalTable = externalTable; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableColumn.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableColumn.java similarity index 94% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableColumn.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableColumn.java index fd289ea87e94..ef73bb141441 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableColumn.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableColumn.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; /** diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTablePartitionInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTablePartition.java similarity index 76% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTablePartitionInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTablePartition.java index 50ba0f83f687..e4bcac855470 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTablePartitionInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTablePartition.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * A Data Lake Analytics catalog U-SQL table partition item. */ -public class USqlTablePartitionInner extends CatalogItem { +public class USqlTablePartition extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -53,9 +53,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlTablePartitionInner object itself. + * @return the USqlTablePartition object itself. */ - public USqlTablePartitionInner withDatabaseName(String databaseName) { + public USqlTablePartition withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -73,9 +73,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlTablePartitionInner object itself. + * @return the USqlTablePartition object itself. */ - public USqlTablePartitionInner withSchemaName(String schemaName) { + public USqlTablePartition withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -93,9 +93,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlTablePartitionInner object itself. + * @return the USqlTablePartition object itself. */ - public USqlTablePartitionInner withName(String name) { + public USqlTablePartition withName(String name) { this.name = name; return this; } @@ -113,9 +113,9 @@ public Integer indexId() { * Set the indexId value. * * @param indexId the indexId value to set - * @return the USqlTablePartitionInner object itself. + * @return the USqlTablePartition object itself. */ - public USqlTablePartitionInner withIndexId(Integer indexId) { + public USqlTablePartition withIndexId(Integer indexId) { this.indexId = indexId; return this; } @@ -133,9 +133,9 @@ public List label() { * Set the label value. * * @param label the label value to set - * @return the USqlTablePartitionInner object itself. + * @return the USqlTablePartition object itself. */ - public USqlTablePartitionInner withLabel(List label) { + public USqlTablePartition withLabel(List label) { this.label = label; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableStatisticsInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableStatistics.java similarity index 77% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableStatisticsInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableStatistics.java index 8b8ed6f13e23..a6933f6788b6 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableStatisticsInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableStatistics.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import org.joda.time.DateTime; import java.util.List; @@ -13,7 +13,7 @@ /** * A Data Lake Analytics catalog U-SQL table statistics item. */ -public class USqlTableStatisticsInner extends CatalogItem { +public class USqlTableStatistics extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -95,9 +95,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withDatabaseName(String databaseName) { + public USqlTableStatistics withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -115,9 +115,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withSchemaName(String schemaName) { + public USqlTableStatistics withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -135,9 +135,9 @@ public String tableName() { * Set the tableName value. * * @param tableName the tableName value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withTableName(String tableName) { + public USqlTableStatistics withTableName(String tableName) { this.tableName = tableName; return this; } @@ -155,9 +155,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withName(String name) { + public USqlTableStatistics withName(String name) { this.name = name; return this; } @@ -175,9 +175,9 @@ public String userStatName() { * Set the userStatName value. * * @param userStatName the userStatName value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withUserStatName(String userStatName) { + public USqlTableStatistics withUserStatName(String userStatName) { this.userStatName = userStatName; return this; } @@ -195,9 +195,9 @@ public String statDataPath() { * Set the statDataPath value. * * @param statDataPath the statDataPath value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withStatDataPath(String statDataPath) { + public USqlTableStatistics withStatDataPath(String statDataPath) { this.statDataPath = statDataPath; return this; } @@ -215,9 +215,9 @@ public DateTime createTime() { * Set the createTime value. * * @param createTime the createTime value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withCreateTime(DateTime createTime) { + public USqlTableStatistics withCreateTime(DateTime createTime) { this.createTime = createTime; return this; } @@ -235,9 +235,9 @@ public DateTime updateTime() { * Set the updateTime value. * * @param updateTime the updateTime value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withUpdateTime(DateTime updateTime) { + public USqlTableStatistics withUpdateTime(DateTime updateTime) { this.updateTime = updateTime; return this; } @@ -255,9 +255,9 @@ public Boolean isUserCreated() { * Set the isUserCreated value. * * @param isUserCreated the isUserCreated value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withIsUserCreated(Boolean isUserCreated) { + public USqlTableStatistics withIsUserCreated(Boolean isUserCreated) { this.isUserCreated = isUserCreated; return this; } @@ -275,9 +275,9 @@ public Boolean isAutoCreated() { * Set the isAutoCreated value. * * @param isAutoCreated the isAutoCreated value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withIsAutoCreated(Boolean isAutoCreated) { + public USqlTableStatistics withIsAutoCreated(Boolean isAutoCreated) { this.isAutoCreated = isAutoCreated; return this; } @@ -295,9 +295,9 @@ public Boolean hasFilter() { * Set the hasFilter value. * * @param hasFilter the hasFilter value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withHasFilter(Boolean hasFilter) { + public USqlTableStatistics withHasFilter(Boolean hasFilter) { this.hasFilter = hasFilter; return this; } @@ -315,9 +315,9 @@ public String filterDefinition() { * Set the filterDefinition value. * * @param filterDefinition the filterDefinition value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withFilterDefinition(String filterDefinition) { + public USqlTableStatistics withFilterDefinition(String filterDefinition) { this.filterDefinition = filterDefinition; return this; } @@ -335,9 +335,9 @@ public List colNames() { * Set the colNames value. * * @param colNames the colNames value to set - * @return the USqlTableStatisticsInner object itself. + * @return the USqlTableStatistics object itself. */ - public USqlTableStatisticsInner withColNames(List colNames) { + public USqlTableStatistics withColNames(List colNames) { this.colNames = colNames; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableValuedFunctionInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableValuedFunction.java similarity index 75% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableValuedFunctionInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableValuedFunction.java index f350a56d76b2..d34a224be5c9 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTableValuedFunctionInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlTableValuedFunction.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL table valued function item. */ -public class USqlTableValuedFunctionInner extends CatalogItem { +public class USqlTableValuedFunction extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -46,9 +46,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlTableValuedFunctionInner object itself. + * @return the USqlTableValuedFunction object itself. */ - public USqlTableValuedFunctionInner withDatabaseName(String databaseName) { + public USqlTableValuedFunction withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -66,9 +66,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlTableValuedFunctionInner object itself. + * @return the USqlTableValuedFunction object itself. */ - public USqlTableValuedFunctionInner withSchemaName(String schemaName) { + public USqlTableValuedFunction withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -86,9 +86,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlTableValuedFunctionInner object itself. + * @return the USqlTableValuedFunction object itself. */ - public USqlTableValuedFunctionInner withName(String name) { + public USqlTableValuedFunction withName(String name) { this.name = name; return this; } @@ -106,9 +106,9 @@ public String definition() { * Set the definition value. * * @param definition the definition value to set - * @return the USqlTableValuedFunctionInner object itself. + * @return the USqlTableValuedFunction object itself. */ - public USqlTableValuedFunctionInner withDefinition(String definition) { + public USqlTableValuedFunction withDefinition(String definition) { this.definition = definition; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTypeInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlType.java similarity index 80% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTypeInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlType.java index 281b4b00e11a..f2d1a19a8f90 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlTypeInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlType.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL type item. */ -public class USqlTypeInner extends CatalogItem { +public class USqlType extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -102,9 +102,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withDatabaseName(String databaseName) { + public USqlType withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -122,9 +122,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withSchemaName(String schemaName) { + public USqlType withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -142,9 +142,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withName(String name) { + public USqlType withName(String name) { this.name = name; return this; } @@ -162,9 +162,9 @@ public String typeFamily() { * Set the typeFamily value. * * @param typeFamily the typeFamily value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withTypeFamily(String typeFamily) { + public USqlType withTypeFamily(String typeFamily) { this.typeFamily = typeFamily; return this; } @@ -182,9 +182,9 @@ public String cSharpName() { * Set the cSharpName value. * * @param cSharpName the cSharpName value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withCSharpName(String cSharpName) { + public USqlType withCSharpName(String cSharpName) { this.cSharpName = cSharpName; return this; } @@ -202,9 +202,9 @@ public String fullCSharpName() { * Set the fullCSharpName value. * * @param fullCSharpName the fullCSharpName value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withFullCSharpName(String fullCSharpName) { + public USqlType withFullCSharpName(String fullCSharpName) { this.fullCSharpName = fullCSharpName; return this; } @@ -222,9 +222,9 @@ public Integer systemTypeId() { * Set the systemTypeId value. * * @param systemTypeId the systemTypeId value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withSystemTypeId(Integer systemTypeId) { + public USqlType withSystemTypeId(Integer systemTypeId) { this.systemTypeId = systemTypeId; return this; } @@ -242,9 +242,9 @@ public Integer userTypeId() { * Set the userTypeId value. * * @param userTypeId the userTypeId value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withUserTypeId(Integer userTypeId) { + public USqlType withUserTypeId(Integer userTypeId) { this.userTypeId = userTypeId; return this; } @@ -262,9 +262,9 @@ public Integer schemaId() { * Set the schemaId value. * * @param schemaId the schemaId value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withSchemaId(Integer schemaId) { + public USqlType withSchemaId(Integer schemaId) { this.schemaId = schemaId; return this; } @@ -282,9 +282,9 @@ public Integer principalId() { * Set the principalId value. * * @param principalId the principalId value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withPrincipalId(Integer principalId) { + public USqlType withPrincipalId(Integer principalId) { this.principalId = principalId; return this; } @@ -302,9 +302,9 @@ public Boolean isNullable() { * Set the isNullable value. * * @param isNullable the isNullable value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withIsNullable(Boolean isNullable) { + public USqlType withIsNullable(Boolean isNullable) { this.isNullable = isNullable; return this; } @@ -322,9 +322,9 @@ public Boolean isUserDefined() { * Set the isUserDefined value. * * @param isUserDefined the isUserDefined value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withIsUserDefined(Boolean isUserDefined) { + public USqlType withIsUserDefined(Boolean isUserDefined) { this.isUserDefined = isUserDefined; return this; } @@ -342,9 +342,9 @@ public Boolean isAssemblyType() { * Set the isAssemblyType value. * * @param isAssemblyType the isAssemblyType value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withIsAssemblyType(Boolean isAssemblyType) { + public USqlType withIsAssemblyType(Boolean isAssemblyType) { this.isAssemblyType = isAssemblyType; return this; } @@ -362,9 +362,9 @@ public Boolean isTableType() { * Set the isTableType value. * * @param isTableType the isTableType value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withIsTableType(Boolean isTableType) { + public USqlType withIsTableType(Boolean isTableType) { this.isTableType = isTableType; return this; } @@ -382,9 +382,9 @@ public Boolean isComplexType() { * Set the isComplexType value. * * @param isComplexType the isComplexType value to set - * @return the USqlTypeInner object itself. + * @return the USqlType object itself. */ - public USqlTypeInner withIsComplexType(Boolean isComplexType) { + public USqlType withIsComplexType(Boolean isComplexType) { this.isComplexType = isComplexType; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlViewInner.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlView.java similarity index 78% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlViewInner.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlView.java index 0dbe4d57b27d..4960aeab2ddc 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/USqlViewInner.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/USqlView.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A Data Lake Analytics catalog U-SQL view item. */ -public class USqlViewInner extends CatalogItem { +public class USqlView extends CatalogItem { /** * Gets or sets the name of the database. */ @@ -47,9 +47,9 @@ public String databaseName() { * Set the databaseName value. * * @param databaseName the databaseName value to set - * @return the USqlViewInner object itself. + * @return the USqlView object itself. */ - public USqlViewInner withDatabaseName(String databaseName) { + public USqlView withDatabaseName(String databaseName) { this.databaseName = databaseName; return this; } @@ -67,9 +67,9 @@ public String schemaName() { * Set the schemaName value. * * @param schemaName the schemaName value to set - * @return the USqlViewInner object itself. + * @return the USqlView object itself. */ - public USqlViewInner withSchemaName(String schemaName) { + public USqlView withSchemaName(String schemaName) { this.schemaName = schemaName; return this; } @@ -87,9 +87,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the USqlViewInner object itself. + * @return the USqlView object itself. */ - public USqlViewInner withName(String name) { + public USqlView withName(String name) { this.name = name; return this; } @@ -107,9 +107,9 @@ public String definition() { * Set the definition value. * * @param definition the definition value to set - * @return the USqlViewInner object itself. + * @return the USqlView object itself. */ - public USqlViewInner withDefinition(String definition) { + public USqlView withDefinition(String definition) { this.definition = definition; return this; } diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/package-info.java b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/package-info.java similarity index 55% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/package-info.java rename to azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/package-info.java index a69ecb4fe0a1..f8cf7404b92b 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/package-info.java +++ b/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/package-info.java @@ -3,7 +3,7 @@ // license information. /** - * This package contains the implementation.api classes for DataLakeAnalyticsCatalogManagementClient. + * This package contains the models classes for DataLakeAnalyticsCatalogManagementClient. * Creates an Azure Data Lake Analytics catalog client. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.analytics.models; diff --git a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountOperationsTests.java b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountOperationsTests.java index 720afc030d9b..19e6017cefed 100644 --- a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountOperationsTests.java +++ b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsAccountOperationsTests.java @@ -1,18 +1,17 @@ package com.microsoft.azure.management.datalake.analytics; -import com.microsoft.azure.management.datalake.analytics.implementation.api.AddDataLakeStoreParametersInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.AddStorageAccountParametersInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountProperties; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeStoreAccountInfoInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeStoreAccountInfoProperties; -import com.microsoft.azure.management.datalake.analytics.implementation.api.StorageAccountInfoInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.StorageAccountProperties; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; +import com.microsoft.azure.management.datalake.analytics.models.AddDataLakeStoreParameters; +import com.microsoft.azure.management.datalake.analytics.models.AddStorageAccountParameters; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccountProperties; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfoProperties; +import com.microsoft.azure.management.datalake.analytics.models.StorageAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.StorageAccountProperties; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import com.microsoft.azure.management.storage.implementation.api.AccountType; import com.microsoft.azure.management.storage.implementation.api.StorageAccountCreateParametersInner; - import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; @@ -39,7 +38,7 @@ public static void setup() throws Exception { group.withLocation(location); resourceManagementClient.resourceGroups().createOrUpdate(rgName, group); // create storage and ADLS accounts, setting the accessKey - DataLakeStoreAccountInner adlsAccount = new DataLakeStoreAccountInner(); + DataLakeStoreAccount adlsAccount = new DataLakeStoreAccount(); adlsAccount.withLocation(location); adlsAccount.withName(adlsAcct); dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, adlsAccount); @@ -67,22 +66,22 @@ public static void cleanup() throws Exception { public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { // Create DataLakeAnalyticsAccountProperties createProperties = new DataLakeAnalyticsAccountProperties(); - List adlsAccts = new ArrayList(); - DataLakeStoreAccountInfoInner adlsInfo = new DataLakeStoreAccountInfoInner(); + List adlsAccts = new ArrayList(); + DataLakeStoreAccountInfo adlsInfo = new DataLakeStoreAccountInfo(); adlsInfo.withName(adlsAcct); adlsAccts.add(adlsInfo); createProperties.withDataLakeStoreAccounts(adlsAccts); createProperties.withDefaultDataLakeStoreAccount(adlsAcct); - DataLakeAnalyticsAccountInner createParams = new DataLakeAnalyticsAccountInner(); + DataLakeAnalyticsAccount createParams = new DataLakeAnalyticsAccount(); createParams.withLocation(location); createParams.withName(adlaAcct); createParams.withProperties(createProperties); createParams.withTags(new HashMap()); createParams.tags().put("testkey", "testvalue"); - DataLakeAnalyticsAccountInner createResponse = dataLakeAnalyticsAccountManagementClient.accounts().create(rgName, adlaAcct, createParams).getBody(); + DataLakeAnalyticsAccount createResponse = dataLakeAnalyticsAccountManagementClient.accounts().create(rgName, adlaAcct, createParams).getBody(); Assert.assertEquals(location, createResponse.location()); Assert.assertEquals("Microsoft.DataLakeAnalytics/accounts", createResponse.type()); Assert.assertNotNull(createResponse.id()); @@ -94,7 +93,7 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { // update the tags createParams.tags().put("testkey2", "testvalue2"); createParams.withProperties(null); - DataLakeAnalyticsAccountInner updateResponse = dataLakeAnalyticsAccountManagementClient.accounts().update(rgName, adlaAcct, createParams).getBody(); + DataLakeAnalyticsAccount updateResponse = dataLakeAnalyticsAccountManagementClient.accounts().update(rgName, adlaAcct, createParams).getBody(); Assert.assertEquals(location, updateResponse.location()); Assert.assertEquals("Microsoft.DataLakeAnalytics/accounts", updateResponse.type()); Assert.assertNotNull(updateResponse.id()); @@ -104,7 +103,7 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { Assert.assertEquals(adlsAcct, updateResponse.properties().dataLakeStoreAccounts().get(0).name()); // get the account - DataLakeAnalyticsAccountInner getResponse = dataLakeAnalyticsAccountManagementClient.accounts().get(rgName, adlaAcct).getBody(); + DataLakeAnalyticsAccount getResponse = dataLakeAnalyticsAccountManagementClient.accounts().get(rgName, adlaAcct).getBody(); Assert.assertEquals(location, getResponse.location()); Assert.assertEquals("Microsoft.DataLakeAnalytics/accounts", getResponse.type()); Assert.assertNotNull(getResponse.id()); @@ -114,9 +113,9 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { Assert.assertEquals(adlsAcct, getResponse.properties().dataLakeStoreAccounts().get(0).name()); // list all accounts and make sure there is one. - List listResult = dataLakeAnalyticsAccountManagementClient.accounts().list().getBody(); - DataLakeAnalyticsAccountInner discoveredAcct = null; - for (DataLakeAnalyticsAccountInner acct : listResult) { + List listResult = dataLakeAnalyticsAccountManagementClient.accounts().list().getBody(); + DataLakeAnalyticsAccount discoveredAcct = null; + for (DataLakeAnalyticsAccount acct : listResult) { if (acct.name().equals(adlaAcct)) { discoveredAcct = acct; break; @@ -136,7 +135,7 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { // list within a resource group listResult = dataLakeAnalyticsAccountManagementClient.accounts().listByResourceGroup(rgName).getBody(); discoveredAcct = null; - for (DataLakeAnalyticsAccountInner acct : listResult) { + for (DataLakeAnalyticsAccount acct : listResult) { if (acct.name().equals(adlaAcct)) { discoveredAcct = acct; break; @@ -154,18 +153,18 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { Assert.assertNull(discoveredAcct.properties().dataLakeStoreAccounts()); // Add, list, get and remove a data lake store account - AddDataLakeStoreParametersInner addAdlsParams = new AddDataLakeStoreParametersInner(); + AddDataLakeStoreParameters addAdlsParams = new AddDataLakeStoreParameters(); // This needs to be set and empty for now due to the front end expecting a valid json body addAdlsParams.withProperties(new DataLakeStoreAccountInfoProperties()); dataLakeAnalyticsAccountManagementClient.accounts().addDataLakeStoreAccount(rgName, adlaAcct, adlsAcct2, addAdlsParams); // list ADLS accounts - List adlsListResult = dataLakeAnalyticsAccountManagementClient.accounts().listDataLakeStoreAccounts(rgName, adlaAcct).getBody(); + List adlsListResult = dataLakeAnalyticsAccountManagementClient.accounts().listDataLakeStoreAccounts(rgName, adlaAcct).getBody(); Assert.assertEquals(2, adlsListResult.size()); // get the one we just added - DataLakeStoreAccountInfoInner adlsGetResult = dataLakeAnalyticsAccountManagementClient.accounts().getDataLakeStoreAccount(rgName, adlaAcct, adlsAcct2).getBody(); + DataLakeStoreAccountInfo adlsGetResult = dataLakeAnalyticsAccountManagementClient.accounts().getDataLakeStoreAccount(rgName, adlaAcct, adlsAcct2).getBody(); Assert.assertEquals(adlsAcct2, adlsGetResult.name()); // Remove the data source @@ -176,7 +175,7 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { Assert.assertEquals(1, adlsListResult.size()); // Add, list get and remove an azure blob account - AddStorageAccountParametersInner addStoreParams = new AddStorageAccountParametersInner(); + AddStorageAccountParameters addStoreParams = new AddStorageAccountParameters(); StorageAccountProperties storageAccountProperties = new StorageAccountProperties(); storageAccountProperties.withAccessKey(storageAccessKey); @@ -184,11 +183,11 @@ public void canCreateGetUpdateDeleteAdlaAccount() throws Exception { dataLakeAnalyticsAccountManagementClient.accounts().addStorageAccount(rgName, adlaAcct, storageAcct, addStoreParams); // list ADLS accounts - List storeListResult = dataLakeAnalyticsAccountManagementClient.accounts().listStorageAccounts(rgName, adlaAcct).getBody(); + List storeListResult = dataLakeAnalyticsAccountManagementClient.accounts().listStorageAccounts(rgName, adlaAcct).getBody(); Assert.assertEquals(1, storeListResult.size()); // get the one we just added - StorageAccountInfoInner storageGetResult = dataLakeAnalyticsAccountManagementClient.accounts().getStorageAccount(rgName, adlaAcct, storageAcct).getBody(); + StorageAccountInfo storageGetResult = dataLakeAnalyticsAccountManagementClient.accounts().getStorageAccount(rgName, adlaAcct, storageAcct).getBody(); Assert.assertEquals(storageAcct, storageGetResult.name()); // Remove the data source diff --git a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogOperationsTests.java b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogOperationsTests.java index 71956666e3d8..0c6289f4b2ce 100644 --- a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogOperationsTests.java +++ b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsCatalogOperationsTests.java @@ -1,18 +1,18 @@ package com.microsoft.azure.management.datalake.analytics; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountProperties; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeStoreAccountInfoInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlCredentialInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlDatabaseInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlProcedureInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlSecretInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlTableInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlTableValuedFunctionInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlTypeInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlViewInner; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccountProperties; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.USqlCredential; +import com.microsoft.azure.management.datalake.analytics.models.USqlDatabase; +import com.microsoft.azure.management.datalake.analytics.models.USqlProcedure; +import com.microsoft.azure.management.datalake.analytics.models.USqlSecret; +import com.microsoft.azure.management.datalake.analytics.models.USqlTable; +import com.microsoft.azure.management.datalake.analytics.models.USqlTableValuedFunction; +import com.microsoft.azure.management.datalake.analytics.models.USqlType; +import com.microsoft.azure.management.datalake.analytics.models.USqlView; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import org.junit.AfterClass; import org.junit.Assert; @@ -140,22 +140,22 @@ public static void setup() throws Exception { group.withLocation(location); resourceManagementClient.resourceGroups().createOrUpdate(rgName, group); // create storage and ADLS accounts, setting the accessKey - DataLakeStoreAccountInner adlsAccount = new DataLakeStoreAccountInner(); + DataLakeStoreAccount adlsAccount = new DataLakeStoreAccount(); adlsAccount.withLocation(location); adlsAccount.withName(adlsAcct); dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, adlsAccount); // Create the ADLA acct to use. DataLakeAnalyticsAccountProperties createProperties = new DataLakeAnalyticsAccountProperties(); - List adlsAccts = new ArrayList(); - DataLakeStoreAccountInfoInner adlsInfo = new DataLakeStoreAccountInfoInner(); + List adlsAccts = new ArrayList(); + DataLakeStoreAccountInfo adlsInfo = new DataLakeStoreAccountInfo(); adlsInfo.withName(adlsAcct); adlsAccts.add(adlsInfo); createProperties.withDataLakeStoreAccounts(adlsAccts); createProperties.withDefaultDataLakeStoreAccount(adlsAcct); - DataLakeAnalyticsAccountInner createParams = new DataLakeAnalyticsAccountInner(); + DataLakeAnalyticsAccount createParams = new DataLakeAnalyticsAccount(); createParams.withLocation(location); createParams.withName(adlaAcct); createParams.withProperties(createProperties); @@ -180,12 +180,12 @@ public static void cleanup() throws Exception { } @Test public void canGetCatalogItems() throws Exception { - List dbListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listDatabases(adlaAcct).getBody(); + List dbListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listDatabases(adlaAcct).getBody(); Assert.assertTrue(dbListResponse.size() >= 1); // look for the DB we created boolean foundCatalogElement = false; - for (USqlDatabaseInner db: dbListResponse) { + for (USqlDatabase db: dbListResponse) { if (db.name().equals(dbName)) { foundCatalogElement = true; break; @@ -194,18 +194,18 @@ public void canGetCatalogItems() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific Database as well - USqlDatabaseInner dbGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getDatabase(adlaAcct, dbName).getBody(); + USqlDatabase dbGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getDatabase(adlaAcct, dbName).getBody(); Assert.assertEquals(dbName, dbGetResponse.name()); // Get the table list - List tableListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTables(adlaAcct, dbName, "dbo").getBody(); + List tableListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTables(adlaAcct, dbName, "dbo").getBody(); Assert.assertTrue(tableListResponse.size() >= 1); // look for the table we created foundCatalogElement = false; - for (USqlTableInner table: tableListResponse) { + for (USqlTable table: tableListResponse) { if (table.name().equals(tableName)) { foundCatalogElement = true; break; @@ -214,19 +214,19 @@ public void canGetCatalogItems() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific table as well - USqlTableInner tableGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getTable( + USqlTable tableGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getTable( adlaAcct, dbName, "dbo", tableName).getBody(); Assert.assertEquals(tableName, tableGetResponse.name()); // Get the TVF list - List tvfListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTableValuedFunctions(adlaAcct, dbName, "dbo").getBody(); + List tvfListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTableValuedFunctions(adlaAcct, dbName, "dbo").getBody(); Assert.assertTrue(tvfListResponse.size() >= 1); // look for the tvf we created foundCatalogElement = false; - for (USqlTableValuedFunctionInner tvf: tvfListResponse) { + for (USqlTableValuedFunction tvf: tvfListResponse) { if (tvf.name().equals(tvfName)) { foundCatalogElement = true; break; @@ -235,19 +235,19 @@ public void canGetCatalogItems() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific TVF as well - USqlTableValuedFunctionInner tvfGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getTableValuedFunction( + USqlTableValuedFunction tvfGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getTableValuedFunction( adlaAcct, dbName, "dbo", tvfName).getBody(); Assert.assertEquals(tvfName, tvfGetResponse.name()); // Get the View list - List viewListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listViews(adlaAcct, dbName, "dbo").getBody(); + List viewListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listViews(adlaAcct, dbName, "dbo").getBody(); Assert.assertTrue(viewListResponse.size() >= 1); // look for the view we created foundCatalogElement = false; - for (USqlViewInner view: viewListResponse) { + for (USqlView view: viewListResponse) { if (view.name().equals(viewName)) { foundCatalogElement = true; break; @@ -256,20 +256,20 @@ public void canGetCatalogItems() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific view as well - USqlViewInner viewGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getView( + USqlView viewGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getView( adlaAcct, dbName, "dbo", viewName).getBody(); Assert.assertEquals(viewName, viewGetResponse.name()); // Get the Procedure list - List procListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listProcedures( + List procListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listProcedures( adlaAcct, dbName, "dbo").getBody(); Assert.assertTrue(procListResponse.size() >= 1); // look for the procedure we created foundCatalogElement = false; - for (USqlProcedureInner proc: procListResponse) { + for (USqlProcedure proc: procListResponse) { if (proc.name().equals(procName)) { foundCatalogElement = true; break; @@ -278,13 +278,13 @@ public void canGetCatalogItems() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific procedure as well - USqlProcedureInner procGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getProcedure( + USqlProcedure procGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getProcedure( adlaAcct, dbName, "dbo", procName).getBody(); Assert.assertEquals(procName, procGetResponse.name()); // Get all the types - List typeGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTypes( + List typeGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listTypes( adlaAcct, dbName, "dbo").getBody(); @@ -299,7 +299,7 @@ public void canGetCatalogItems() throws Exception { Assert.assertNotNull(typeGetResponse); Assert.assertTrue(typeGetResponse.size() > 0); foundCatalogElement = false; - for (USqlTypeInner type: typeGetResponse) { + for (USqlType type: typeGetResponse) { if (type.isComplexType()) { foundCatalogElement = true; break; @@ -311,16 +311,16 @@ public void canGetCatalogItems() throws Exception { @Test public void canCreateUpdateDeleteSecretsAndCredentials() throws Exception { // create the secret - DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner createParams = new DataLakeAnalyticsCatalogSecretCreateOrUpdateParametersInner(); + DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters createParams = new DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters(); createParams.withPassword(secretPwd); createParams.withUri("https://adlasecrettest.contoso.com:443"); - USqlSecretInner secretCreateResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().createSecret( + USqlSecret secretCreateResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().createSecret( adlaAcct, dbName, secretName, createParams).getBody(); // Attempt to create the secret again, which should throw try { - USqlSecretInner secondTry = dataLakeAnalyticsCatalogManagementClient.catalogs().createSecret( + USqlSecret secondTry = dataLakeAnalyticsCatalogManagementClient.catalogs().createSecret( adlaAcct, dbName, secretName, createParams).getBody(); @@ -332,7 +332,7 @@ public void canCreateUpdateDeleteSecretsAndCredentials() throws Exception { } // Get the secret and ensure the response contains a date. - USqlSecretInner secretGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getSecret( + USqlSecret secretGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getSecret( adlaAcct, dbName, secretName).getBody(); Assert.assertNotNull(secretGetResponse); @@ -346,13 +346,13 @@ public void canCreateUpdateDeleteSecretsAndCredentials() throws Exception { runJobToCompletion(dataLakeAnalyticsJobManagementClient, adlaAcct, UUID.randomUUID(), credentialCreationScript); // Get the Credential list - List credListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listCredentials( + List credListResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().listCredentials( adlaAcct, dbName).getBody(); Assert.assertTrue(credListResponse.size() >= 1); // look for the credential we created boolean foundCatalogElement = false; - for (USqlCredentialInner cred: credListResponse) { + for (USqlCredential cred: credListResponse) { if (cred.name().equals(credentialName)) { foundCatalogElement = true; break; @@ -361,7 +361,7 @@ public void canCreateUpdateDeleteSecretsAndCredentials() throws Exception { Assert.assertTrue(foundCatalogElement); // Get the specific credential as well - USqlCredentialInner credGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getCredential( + USqlCredential credGetResponse = dataLakeAnalyticsCatalogManagementClient.catalogs().getCredential( adlaAcct, dbName, credentialName).getBody(); Assert.assertEquals(credentialName, credGetResponse.name()); diff --git a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobOperationsTests.java b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobOperationsTests.java index 8627ff3487a1..5766386f2c51 100644 --- a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobOperationsTests.java +++ b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsJobOperationsTests.java @@ -1,14 +1,14 @@ package com.microsoft.azure.management.datalake.analytics; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountProperties; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeStoreAccountInfoInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobInformationInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobResult; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobState; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobType; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlJobProperties; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccountProperties; +import com.microsoft.azure.management.datalake.analytics.models.DataLakeStoreAccountInfo; +import com.microsoft.azure.management.datalake.analytics.models.JobInformation; +import com.microsoft.azure.management.datalake.analytics.models.JobResult; +import com.microsoft.azure.management.datalake.analytics.models.JobState; +import com.microsoft.azure.management.datalake.analytics.models.JobType; +import com.microsoft.azure.management.datalake.analytics.models.USqlJobProperties; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import org.junit.AfterClass; import org.junit.Assert; @@ -34,22 +34,22 @@ public static void setup() throws Exception { group.withLocation(location); resourceManagementClient.resourceGroups().createOrUpdate(rgName, group); // create storage and ADLS accounts, setting the accessKey - DataLakeStoreAccountInner adlsAccount = new DataLakeStoreAccountInner(); + DataLakeStoreAccount adlsAccount = new DataLakeStoreAccount(); adlsAccount.withLocation(location); adlsAccount.withName(adlsAcct); dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, adlsAccount); // Create the ADLA acct to use. DataLakeAnalyticsAccountProperties createProperties = new DataLakeAnalyticsAccountProperties(); - List adlsAccts = new ArrayList(); - DataLakeStoreAccountInfoInner adlsInfo = new DataLakeStoreAccountInfoInner(); + List adlsAccts = new ArrayList(); + DataLakeStoreAccountInfo adlsInfo = new DataLakeStoreAccountInfo(); adlsInfo.withName(adlsAcct); adlsAccts.add(adlsInfo); createProperties.withDataLakeStoreAccounts(adlsAccts); createProperties.withDefaultDataLakeStoreAccount(adlsAcct); - DataLakeAnalyticsAccountInner createParams = new DataLakeAnalyticsAccountInner(); + DataLakeAnalyticsAccount createParams = new DataLakeAnalyticsAccount(); createParams.withLocation(location); createParams.withName(adlaAcct); createParams.withProperties(createProperties); @@ -71,7 +71,7 @@ public static void cleanup() throws Exception { @Test public void canSubmitGetListAndCancelJobs() throws Exception { // submit a job - JobInformationInner jobToSubmit = new JobInformationInner(); + JobInformation jobToSubmit = new JobInformation(); USqlJobProperties jobProperties = new USqlJobProperties(); jobProperties.withScript(jobScript); jobToSubmit.withName("java azure sdk data lake analytics job"); @@ -81,14 +81,14 @@ public void canSubmitGetListAndCancelJobs() throws Exception { UUID jobId = UUID.randomUUID(); UUID secondJobId = UUID.randomUUID(); - JobInformationInner jobCreateResponse = dataLakeAnalyticsJobManagementClient.jobs().create(adlaAcct, jobId, jobToSubmit).getBody(); + JobInformation jobCreateResponse = dataLakeAnalyticsJobManagementClient.jobs().create(adlaAcct, jobId, jobToSubmit).getBody(); Assert.assertNotNull(jobCreateResponse); // cancel the job dataLakeAnalyticsJobManagementClient.jobs().cancel(adlaAcct, jobId); // Get the job and ensure it was cancelled - JobInformationInner cancelledJobResponse = dataLakeAnalyticsJobManagementClient.jobs().get(adlaAcct, jobId).getBody(); + JobInformation cancelledJobResponse = dataLakeAnalyticsJobManagementClient.jobs().get(adlaAcct, jobId).getBody(); Assert.assertEquals(JobResult.CANCELLED, cancelledJobResponse.result()); Assert.assertNotNull(cancelledJobResponse.errorMessage()); Assert.assertTrue(cancelledJobResponse.errorMessage().size() >= 1); @@ -97,7 +97,7 @@ public void canSubmitGetListAndCancelJobs() throws Exception { jobCreateResponse = dataLakeAnalyticsJobManagementClient.jobs().create(adlaAcct, secondJobId, jobToSubmit).getBody(); Assert.assertNotNull(jobCreateResponse); - JobInformationInner getJobResponse = dataLakeAnalyticsJobManagementClient.jobs().get(adlaAcct, jobCreateResponse.jobId()).getBody(); + JobInformation getJobResponse = dataLakeAnalyticsJobManagementClient.jobs().get(adlaAcct, jobCreateResponse.jobId()).getBody(); Assert.assertNotNull(getJobResponse); int maxWaitInSeconds = 180; // 3 minutes should be long enough @@ -120,10 +120,10 @@ public void canSubmitGetListAndCancelJobs() throws Exception { getJobResponse.jobId(), getJobResponse.state(), getJobResponse.result(), getJobResponse.errorMessage()), getJobResponse.state() == JobState.ENDED && getJobResponse.result() == JobResult.SUCCEEDED); - List listJobResponse = dataLakeAnalyticsJobManagementClient.jobs().list(adlaAcct, null, null, null, null, null, null, null, null, null).getBody(); + List listJobResponse = dataLakeAnalyticsJobManagementClient.jobs().list(adlaAcct, null, null, null, null, null, null, null, null, null).getBody(); Assert.assertNotNull(listJobResponse); boolean foundJob = false; - for(JobInformationInner eachJob : listJobResponse) { + for(JobInformation eachJob : listJobResponse) { if (eachJob.jobId().equals(secondJobId)) { foundJob = true; break; @@ -134,7 +134,7 @@ public void canSubmitGetListAndCancelJobs() throws Exception { // Just compile the job, which requires a jobId in the job object. jobToSubmit.withJobId(getJobResponse.jobId()); - JobInformationInner compileResponse = dataLakeAnalyticsJobManagementClient.jobs().build(adlaAcct, jobToSubmit).getBody(); + JobInformation compileResponse = dataLakeAnalyticsJobManagementClient.jobs().build(adlaAcct, jobToSubmit).getBody(); Assert.assertNotNull(compileResponse); // list the jobs both with a hand crafted query string and using the parameters @@ -142,7 +142,7 @@ public void canSubmitGetListAndCancelJobs() throws Exception { Assert.assertNotNull(listJobResponse); foundJob = false; - for(JobInformationInner eachJob : listJobResponse) { + for(JobInformation eachJob : listJobResponse) { if (eachJob.jobId().equals(secondJobId)) { foundJob = true; break; diff --git a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsManagementTestBase.java b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsManagementTestBase.java index 6801ea914c4f..a196fa962e23 100644 --- a/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsManagementTestBase.java +++ b/azure-mgmt-datalake-analytics/src/test/java/com/microsoft/azure/management/datalake/analytics/DataLakeAnalyticsManagementTestBase.java @@ -2,15 +2,15 @@ import com.microsoft.azure.credentials.AzureEnvironment; import com.microsoft.azure.credentials.UserTokenCredentials; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsAccountManagementClientImpl; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsCatalogManagementClientImpl; -import com.microsoft.azure.management.datalake.analytics.implementation.api.DataLakeAnalyticsJobManagementClientImpl; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobInformationInner; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobResult; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobState; -import com.microsoft.azure.management.datalake.analytics.implementation.api.JobType; -import com.microsoft.azure.management.datalake.analytics.implementation.api.USqlJobProperties; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountManagementClientImpl; +import com.microsoft.azure.management.datalake.analytics.implementation.DataLakeAnalyticsAccountManagementClientImpl; +import com.microsoft.azure.management.datalake.analytics.implementation.DataLakeAnalyticsCatalogManagementClientImpl; +import com.microsoft.azure.management.datalake.analytics.implementation.DataLakeAnalyticsJobManagementClientImpl; +import com.microsoft.azure.management.datalake.analytics.models.JobInformation; +import com.microsoft.azure.management.datalake.analytics.models.JobResult; +import com.microsoft.azure.management.datalake.analytics.models.JobState; +import com.microsoft.azure.management.datalake.analytics.models.JobType; +import com.microsoft.azure.management.datalake.analytics.models.USqlJobProperties; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreAccountManagementClientImpl; import com.microsoft.azure.management.resources.implementation.api.ResourceManagementClientImpl; import com.microsoft.azure.management.storage.implementation.api.StorageManagementClientImpl; @@ -99,7 +99,7 @@ public static void createClients() { public static void runJobToCompletion(DataLakeAnalyticsJobManagementClientImpl jobClient, String adlaAcct, UUID jobId, String scriptToRun) throws Exception { // submit a job - JobInformationInner jobToSubmit = new JobInformationInner(); + JobInformation jobToSubmit = new JobInformation(); USqlJobProperties jobProperties = new USqlJobProperties(); jobProperties.withScript(scriptToRun); jobToSubmit.withName("java azure sdk data lake analytics job"); @@ -107,10 +107,10 @@ public static void runJobToCompletion(DataLakeAnalyticsJobManagementClientImpl j jobToSubmit.withType(JobType.USQL); jobToSubmit.withProperties(jobProperties); - JobInformationInner jobCreateResponse = jobClient.jobs().create(adlaAcct, jobId, jobToSubmit).getBody(); + JobInformation jobCreateResponse = jobClient.jobs().create(adlaAcct, jobId, jobToSubmit).getBody(); Assert.assertNotNull(jobCreateResponse); - JobInformationInner getJobResponse = jobClient.jobs().get(adlaAcct, jobCreateResponse.jobId()).getBody(); + JobInformation getJobResponse = jobClient.jobs().get(adlaAcct, jobCreateResponse.jobId()).getBody(); Assert.assertNotNull(getJobResponse); int maxWaitInSeconds = 2700; // giving it 45 minutes for now. diff --git a/azure-mgmt-datalake-store-uploader/src/main/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeStoreFrontEndAdapterImpl.java b/azure-mgmt-datalake-store-uploader/src/main/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeStoreFrontEndAdapterImpl.java index d8d90ae8bc7c..4a3a8a92132e 100644 --- a/azure-mgmt-datalake-store-uploader/src/main/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeStoreFrontEndAdapterImpl.java +++ b/azure-mgmt-datalake-store-uploader/src/main/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeStoreFrontEndAdapterImpl.java @@ -5,10 +5,10 @@ */ package com.microsoft.azure.management.datalake.store.uploader; -import com.microsoft.azure.management.datalake.store.implementation.api.AdlsErrorException; +import com.microsoft.azure.management.datalake.store.models.AdlsErrorException; import com.microsoft.rest.RestException; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreFileSystemManagementClientImpl; -import com.microsoft.azure.management.datalake.store.implementation.api.FileStatusResultInner; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreFileSystemManagementClientImpl; +import com.microsoft.azure.management.datalake.store.models.FileStatusResult; import org.apache.commons.lang3.StringUtils; import java.io.IOException; @@ -118,7 +118,7 @@ public boolean StreamExists(String streamPath) throws RestException, IOException * @throws RestException */ public long GetStreamLength(String streamPath) throws IOException, RestException { - FileStatusResultInner fileInfoResponse = _client.fileSystems().getFileStatus(_accountName, streamPath).getBody(); + FileStatusResult fileInfoResponse = _client.fileSystems().getFileStatus(_accountName, streamPath).getBody(); return fileInfoResponse.fileStatus().length(); } diff --git a/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeUploaderTestBase.java b/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeUploaderTestBase.java index 0355ccff5e8e..4a52d8cb595d 100644 --- a/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeUploaderTestBase.java +++ b/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/DataLakeUploaderTestBase.java @@ -7,8 +7,8 @@ import com.microsoft.azure.AzureEnvironment; import com.microsoft.azure.credentials.UserTokenCredentials; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountManagementClientImpl; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreFileSystemManagementClientImpl; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreAccountManagementClientImpl; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreFileSystemManagementClientImpl; import com.microsoft.azure.management.resources.implementation.api.ResourceManagementClientImpl; import com.microsoft.rest.RestClient; import okhttp3.logging.HttpLoggingInterceptor; diff --git a/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/PerformanceUploadTests.java b/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/PerformanceUploadTests.java index 656c38d47486..778ad49609af 100644 --- a/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/PerformanceUploadTests.java +++ b/azure-mgmt-datalake-store-uploader/src/test/java/com/microsoft/azure/management/datalake/store/uploader/PerformanceUploadTests.java @@ -6,8 +6,8 @@ package com.microsoft.azure.management.datalake.store.uploader; import com.google.common.base.Stopwatch; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreFileSystemManagementClientImpl; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreFileSystemManagementClientImpl; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import org.junit.AfterClass; import org.junit.BeforeClass; @@ -42,7 +42,7 @@ public static void Setup() throws Exception { resourceManagementClient.resourceGroups().createOrUpdate(rgName, group); // create storage and ADLS accounts, setting the accessKey - DataLakeStoreAccountInner adlsAccount = new DataLakeStoreAccountInner(); + DataLakeStoreAccount adlsAccount = new DataLakeStoreAccount(); adlsAccount.withLocation(location); adlsAccount.withName(adlsAcct); dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, adlsAccount); diff --git a/azure-mgmt-datalake-store/pom.xml b/azure-mgmt-datalake-store/pom.xml index 68d72c736b02..81c37c6da92f 100644 --- a/azure-mgmt-datalake-store/pom.xml +++ b/azure-mgmt-datalake-store/pom.xml @@ -52,7 +52,7 @@ 1.0.0-SNAPSHOT - ${project.groupId} + com.microsoft.azure azure-mgmt-resources 1.0.0-SNAPSHOT test diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/Accounts.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/Accounts.java new file mode 100644 index 000000000000..4afd43e65a2e --- /dev/null +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/Accounts.java @@ -0,0 +1,477 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.store; + +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; +import com.microsoft.azure.management.datalake.store.models.FirewallRule; +import com.microsoft.azure.management.datalake.store.models.PageImpl; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; + +/** + * An instance of this class provides access to all the operations defined + * in Accounts. + */ +public interface Accounts { + /** + * Deletes the specified firewall rule from the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to delete the firewall rule. + * @param firewallRuleName The name of the firewall rule to delete. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse deleteFirewallRule(String resourceGroupName, String accountName, String firewallRuleName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Deletes the specified firewall rule from the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to delete the firewall rule. + * @param firewallRuleName The name of the firewall rule to delete. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteFirewallRuleAsync(String resourceGroupName, String accountName, String firewallRuleName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the specified Data Lake Store firewall rule. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to get the firewall rule. + * @param firewallRuleName The name of the firewall rule to retrieve. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FirewallRule object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getFirewallRule(String resourceGroupName, String accountName, String firewallRuleName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified Data Lake Store firewall rule. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to get the firewall rule. + * @param firewallRuleName The name of the firewall rule to retrieve. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getFirewallRuleAsync(String resourceGroupName, String accountName, String firewallRuleName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store firewall rules within the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to get the firewall rules. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<FirewallRule> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listFirewallRules(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store firewall rules within the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account from which to get the firewall rules. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listFirewallRulesAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates or updates the specified firewall rule. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to which to add the firewall rule. + * @param name The name of the firewall rule to create or update. + * @param parameters Parameters supplied to create the create firewall rule. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FirewallRule object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse createOrUpdateFirewallRule(String resourceGroupName, String accountName, String name, FirewallRule parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Creates or updates the specified firewall rule. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to which to add the firewall rule. + * @param name The name of the firewall rule to create or update. + * @param parameters Parameters supplied to create the create firewall rule. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createOrUpdateFirewallRuleAsync(String resourceGroupName, String accountName, String name, FirewallRule parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to create. + * @param parameters Parameters supplied to create the Data Lake Store account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse create(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Creates the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to create. + * @param parameters Parameters supplied to create the Data Lake Store account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to create. + * @param parameters Parameters supplied to create the Data Lake Store account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Creates the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to create. + * @param parameters Parameters supplied to create the Data Lake Store account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the specified Data Lake Store account information. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to update. + * @param parameters Parameters supplied to update the Data Lake Store account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse update(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Updates the specified Data Lake Store account information. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to update. + * @param parameters Parameters supplied to update the Data Lake Store account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall updateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Updates the specified Data Lake Store account information. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to update. + * @param parameters Parameters supplied to update the Data Lake Store account. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException; + + /** + * Updates the specified Data Lake Store account information. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param name The name of the Data Lake Store account to update. + * @param parameters Parameters supplied to update the Data Lake Store account. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Deletes the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to delete. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @throws InterruptedException exception thrown when long running operation is interrupted + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse delete(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException, InterruptedException; + + /** + * Deletes the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to delete. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Deletes the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to delete. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse beginDelete(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Deletes the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to delete. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall beginDeleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to retrieve. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Gets the specified Data Lake Store account. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account. + * @param accountName The name of the Data Lake Store account to retrieve. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account(s). + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account(s). + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account(s). + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count A Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account(s). + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count A Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException; + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @param filter OData filter. Optional. + * @param top The number of items to return. Optional. + * @param skip The number of items to skip over before returning elements. Optional. + * @param expand OData expansion. Expand related resources in line with the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. + * @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. + * @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. + * @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. + * @param search A free form search. A free-text search expression to match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. + * @param format The desired return format. Return the response in particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store firewall rules within the specified Data Lake Store account. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<FirewallRule> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listFirewallRulesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store firewall rules within the specified Data Lake Store account. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listFirewallRulesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws CloudException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException; + + /** + * Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceCall the ServiceCall object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountManagementClient.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountManagementClient.java new file mode 100644 index 000000000000..172653930311 --- /dev/null +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountManagementClient.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.store; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for DataLakeStoreAccountManagementClient class. + */ +public interface DataLakeStoreAccountManagementClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.. + * + * @return the subscriptionId value. + */ + String subscriptionId(); + + /** + * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + DataLakeStoreAccountManagementClient withSubscriptionId(String subscriptionId); + + /** + * Gets Client Api Version.. + * + * @return the apiVersion value. + */ + String apiVersion(); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + DataLakeStoreAccountManagementClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + DataLakeStoreAccountManagementClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + DataLakeStoreAccountManagementClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the Accounts object to access its operations. + * @return the Accounts object. + */ + Accounts accounts(); + +} diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFileSystemManagementClient.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFileSystemManagementClient.java new file mode 100644 index 000000000000..33addfba08ce --- /dev/null +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFileSystemManagementClient.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.store; + +import com.microsoft.azure.AzureClient; +import com.microsoft.rest.RestClient; + +/** + * The interface for DataLakeStoreFileSystemManagementClient class. + */ +public interface DataLakeStoreFileSystemManagementClient { + /** + * Gets the REST client. + * + * @return the {@link RestClient} object. + */ + RestClient restClient(); + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + AzureClient getAzureClient(); + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + String userAgent(); + + /** + * Gets Client Api Version.. + * + * @return the apiVersion value. + */ + String apiVersion(); + + /** + * Gets Gets the URI used as the base for all cloud service requests.. + * + * @return the adlsFileSystemDnsSuffix value. + */ + String adlsFileSystemDnsSuffix(); + + /** + * Sets Gets the URI used as the base for all cloud service requests.. + * + * @param adlsFileSystemDnsSuffix the adlsFileSystemDnsSuffix value. + * @return the service client itself + */ + DataLakeStoreFileSystemManagementClient withAdlsFileSystemDnsSuffix(String adlsFileSystemDnsSuffix); + + /** + * Gets Gets or sets the preferred language for the response.. + * + * @return the acceptLanguage value. + */ + String acceptLanguage(); + + /** + * Sets Gets or sets the preferred language for the response.. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + DataLakeStoreFileSystemManagementClient withAcceptLanguage(String acceptLanguage); + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @return the longRunningOperationRetryTimeout value. + */ + int longRunningOperationRetryTimeout(); + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + DataLakeStoreFileSystemManagementClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @return the generateClientRequestId value. + */ + boolean generateClientRequestId(); + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + DataLakeStoreFileSystemManagementClient withGenerateClientRequestId(boolean generateClientRequestId); + + /** + * Gets the FileSystems object to access its operations. + * @return the FileSystems object. + */ + FileSystems fileSystems(); + +} diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystems.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystems.java new file mode 100644 index 000000000000..b89549b59674 --- /dev/null +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/FileSystems.java @@ -0,0 +1,711 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.datalake.store; + +import com.microsoft.azure.management.datalake.store.models.AclStatusResult; +import com.microsoft.azure.management.datalake.store.models.AdlsErrorException; +import com.microsoft.azure.management.datalake.store.models.AppendModeType; +import com.microsoft.azure.management.datalake.store.models.ContentSummaryResult; +import com.microsoft.azure.management.datalake.store.models.FileOperationResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusesResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusResult; +import com.microsoft.rest.ServiceCall; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceResponse; +import java.io.InputStream; +import java.io.IOException; +import java.util.List; + +/** + * An instance of this class provides access to all the operations defined + * in FileSystems. + */ +public interface FileSystems { + /** + * Appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file to which to append using concurrent append. + * @param streamContents The file contents to include when appending to the file. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse concurrentAppend(String accountName, String filePath, byte[] streamContents) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file to which to append using concurrent append. + * @param streamContents The file contents to include when appending to the file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall concurrentAppendAsync(String accountName, String filePath, byte[] streamContents, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file to which to append using concurrent append. + * @param streamContents The file contents to include when appending to the file. + * @param appendMode Indicates the concurrent append call should create the file if it doesn't exist or just open the existing file for append. Possible values include: 'autocreate' + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse concurrentAppend(String accountName, String filePath, byte[] streamContents, AppendModeType appendMode) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file to which to append using concurrent append. + * @param streamContents The file contents to include when appending to the file. + * @param appendMode Indicates the concurrent append call should create the file if it doesn't exist or just open the existing file for append. Possible values include: 'autocreate' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall concurrentAppendAsync(String accountName, String filePath, byte[] streamContents, AppendModeType appendMode, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Checks if the specified access is available at the given path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the file or directory for which to check access. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse checkAccess(String accountName, String path) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Checks if the specified access is available at the given path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the file or directory for which to check access. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall checkAccessAsync(String accountName, String path, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Checks if the specified access is available at the given path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the file or directory for which to check access. + * @param fsaction File system operation read/write/execute in string form, matching regex pattern '[rwx-]{3}' + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse checkAccess(String accountName, String path, String fsaction) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Checks if the specified access is available at the given path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the file or directory for which to check access. + * @param fsaction File system operation read/write/execute in string form, matching regex pattern '[rwx-]{3}' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall checkAccessAsync(String accountName, String path, String fsaction, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates a directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the directory to create. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse mkdirs(String accountName, String path) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Creates a directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param path The Data Lake Store path (starting with '/') of the directory to create. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall mkdirsAsync(String accountName, String path, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Concatenates the list of source files into the destination file, removing all source files upon success. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param destinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param sources A list of comma seperated Data Lake Store paths (starting with '/') of the files to concatenate, in the order in which they should be concatenated. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse concat(String accountName, String destinationPath, List sources) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Concatenates the list of source files into the destination file, removing all source files upon success. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param destinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param sources A list of comma seperated Data Lake Store paths (starting with '/') of the files to concatenate, in the order in which they should be concatenated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall concatAsync(String accountName, String destinationPath, List sources, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param msConcatDestinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param streamContents A list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse msConcat(String accountName, String msConcatDestinationPath, byte[] streamContents) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param msConcatDestinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param streamContents A list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall msConcatAsync(String accountName, String msConcatDestinationPath, byte[] streamContents, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param msConcatDestinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param streamContents A list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> + * @param deleteSourceDirectory Indicates that as an optimization instead of deleting each individual source stream, delete the source stream folder if all streams are in the same folder instead. This results in a substantial performance improvement when the only streams in the folder are part of the concatenation operation. WARNING: This includes the deletion of any other files that are not source files. Only set this to true when source files are the only files in the source directory. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse msConcat(String accountName, String msConcatDestinationPath, byte[] streamContents, Boolean deleteSourceDirectory) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param msConcatDestinationPath The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. + * @param streamContents A list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> + * @param deleteSourceDirectory Indicates that as an optimization instead of deleting each individual source stream, delete the source stream folder if all streams are in the same folder instead. This results in a substantial performance improvement when the only streams in the folder are part of the concatenation operation. WARNING: This includes the deletion of any other files that are not source files. Only set this to true when source files are the only files in the source directory. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall msConcatAsync(String accountName, String msConcatDestinationPath, byte[] streamContents, Boolean deleteSourceDirectory, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get the list of file status objects specified by the file path, with optional pagination parameters. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param listFilePath The Data Lake Store path (starting with '/') of the directory to list. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileStatusesResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse listFileStatus(String accountName, String listFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Get the list of file status objects specified by the file path, with optional pagination parameters. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param listFilePath The Data Lake Store path (starting with '/') of the directory to list. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listFileStatusAsync(String accountName, String listFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Get the list of file status objects specified by the file path, with optional pagination parameters. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param listFilePath The Data Lake Store path (starting with '/') of the directory to list. + * @param listSize Gets or sets the number of items to return. Optional. + * @param listAfter Gets or sets the item or lexographical index after which to begin returning results. For example, a file list of 'a','b','d' and listAfter='b' will return 'd', and a listAfter='c' will also return 'd'. Optional. + * @param listBefore Gets or sets the item or lexographical index before which to begin returning results. For example, a file list of 'a','b','d' and listBefore='d' will return 'a','b', and a listBefore='c' will also return 'a','b'. Optional. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileStatusesResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse listFileStatus(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Get the list of file status objects specified by the file path, with optional pagination parameters. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param listFilePath The Data Lake Store path (starting with '/') of the directory to list. + * @param listSize Gets or sets the number of items to return. Optional. + * @param listAfter Gets or sets the item or lexographical index after which to begin returning results. For example, a file list of 'a','b','d' and listAfter='b' will return 'd', and a listAfter='c' will also return 'd'. Optional. + * @param listBefore Gets or sets the item or lexographical index before which to begin returning results. For example, a file list of 'a','b','d' and listBefore='d' will return 'a','b', and a listBefore='c' will also return 'a','b'. Optional. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall listFileStatusAsync(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets the file content summary object specified by the file path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param getContentSummaryFilePath The Data Lake Store path (starting with '/') of the file for which to retrieve the summary. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the ContentSummaryResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getContentSummary(String accountName, String getContentSummaryFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Gets the file content summary object specified by the file path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param getContentSummaryFilePath The Data Lake Store path (starting with '/') of the file for which to retrieve the summary. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getContentSummaryAsync(String accountName, String getContentSummaryFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Get the file status object specified by the file path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param getFilePath The Data Lake Store path (starting with '/') of the file or directory for which to retrieve the status. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileStatusResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getFileStatus(String accountName, String getFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Get the file status object specified by the file path. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param getFilePath The Data Lake Store path (starting with '/') of the file or directory for which to retrieve the status. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getFileStatusAsync(String accountName, String getFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Appends to the specified file. This method does not support multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. Use the ConcurrentAppend option if you would like support for concurrent appends. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to which to append. + * @param streamContents The file contents to include when appending to the file. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse append(String accountName, String directFilePath, byte[] streamContents) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Appends to the specified file. This method does not support multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. Use the ConcurrentAppend option if you would like support for concurrent appends. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to which to append. + * @param streamContents The file contents to include when appending to the file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall appendAsync(String accountName, String directFilePath, byte[] streamContents, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Creates a file with optionally specified content. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to create. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse create(String accountName, String directFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Creates a file with optionally specified content. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to create. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createAsync(String accountName, String directFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Creates a file with optionally specified content. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to create. + * @param streamContents The file contents to include when creating the file. This parameter is optional, resulting in an empty file if not specified. + * @param overwrite The indication of if the file should be overwritten. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse create(String accountName, String directFilePath, byte[] streamContents, Boolean overwrite) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Creates a file with optionally specified content. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to create. + * @param streamContents The file contents to include when creating the file. This parameter is optional, resulting in an empty file if not specified. + * @param overwrite The indication of if the file should be overwritten. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall createAsync(String accountName, String directFilePath, byte[] streamContents, Boolean overwrite, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Opens and reads from the specified file. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to open. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the InputStream object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse open(String accountName, String directFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Opens and reads from the specified file. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to open. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall openAsync(String accountName, String directFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Opens and reads from the specified file. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to open. + * @param length the Long value + * @param offset the Long value + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the InputStream object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse open(String accountName, String directFilePath, Long length, Long offset) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Opens and reads from the specified file. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param directFilePath The Data Lake Store path (starting with '/') of the file to open. + * @param length the Long value + * @param offset the Long value + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall openAsync(String accountName, String directFilePath, Long length, Long offset, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Sets the Access Control List (ACL) for a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setAclFilePath The Data Lake Store path (starting with '/') of the file or directory on which to set the ACL. + * @param aclspec The ACL spec included in ACL creation operations in the format '[default:]user|group|other::r|-w|-x|-' + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse setAcl(String accountName, String setAclFilePath, String aclspec) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Sets the Access Control List (ACL) for a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setAclFilePath The Data Lake Store path (starting with '/') of the file or directory on which to set the ACL. + * @param aclspec The ACL spec included in ACL creation operations in the format '[default:]user|group|other::r|-w|-x|-' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall setAclAsync(String accountName, String setAclFilePath, String aclspec, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Modifies existing Access Control List (ACL) entries on a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param modifyAclFilePath The Data Lake Store path (starting with '/') of the file or directory with the ACL being modified. + * @param aclspec The ACL specification included in ACL modification operations in the format '[default:]user|group|other::r|-w|-x|-' + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse modifyAclEntries(String accountName, String modifyAclFilePath, String aclspec) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Modifies existing Access Control List (ACL) entries on a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param modifyAclFilePath The Data Lake Store path (starting with '/') of the file or directory with the ACL being modified. + * @param aclspec The ACL specification included in ACL modification operations in the format '[default:]user|group|other::r|-w|-x|-' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall modifyAclEntriesAsync(String accountName, String modifyAclFilePath, String aclspec, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Removes existing Access Control List (ACL) entries for a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param removeAclFilePath The Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. + * @param aclspec The ACL spec included in ACL removal operations in the format '[default:]user|group|other' + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse removeAclEntries(String accountName, String removeAclFilePath, String aclspec) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Removes existing Access Control List (ACL) entries for a file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param removeAclFilePath The Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. + * @param aclspec The ACL spec included in ACL removal operations in the format '[default:]user|group|other' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall removeAclEntriesAsync(String accountName, String removeAclFilePath, String aclspec, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Gets Access Control List (ACL) entries for the specified file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param aclFilePath The Data Lake Store path (starting with '/') of the file or directory for which to get the ACL. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the AclStatusResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse getAclStatus(String accountName, String aclFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Gets Access Control List (ACL) entries for the specified file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param aclFilePath The Data Lake Store path (starting with '/') of the file or directory for which to get the ACL. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall getAclStatusAsync(String accountName, String aclFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Deletes the requested file or directory, optionally recursively. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file or directory to delete. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse delete(String accountName, String filePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Deletes the requested file or directory, optionally recursively. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file or directory to delete. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteAsync(String accountName, String filePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Deletes the requested file or directory, optionally recursively. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file or directory to delete. + * @param recursive The optional switch indicating if the delete should be recursive + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse delete(String accountName, String filePath, Boolean recursive) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Deletes the requested file or directory, optionally recursively. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param filePath The Data Lake Store path (starting with '/') of the file or directory to delete. + * @param recursive The optional switch indicating if the delete should be recursive + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall deleteAsync(String accountName, String filePath, Boolean recursive, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Rename a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param renameFilePath The Data Lake Store path (starting with '/') of the file or directory to move/rename. + * @param destination The path to move/rename the file or folder to + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. + */ + ServiceResponse rename(String accountName, String renameFilePath, String destination) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Rename a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param renameFilePath The Data Lake Store path (starting with '/') of the file or directory to move/rename. + * @param destination The path to move/rename the file or folder to + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall renameAsync(String accountName, String renameFilePath, String destination, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Sets the owner of a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setOwnerFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the owner. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse setOwner(String accountName, String setOwnerFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Sets the owner of a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setOwnerFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the owner. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall setOwnerAsync(String accountName, String setOwnerFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Sets the owner of a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setOwnerFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the owner. + * @param owner The AAD Object ID of the user owner of the file or directory. If empty, the property will remain unchanged. + * @param group The AAD Object ID of the group owner of the file or directory. If empty, the property will remain unchanged. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse setOwner(String accountName, String setOwnerFilePath, String owner, String group) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Sets the owner of a file or directory. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setOwnerFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the owner. + * @param owner The AAD Object ID of the user owner of the file or directory. If empty, the property will remain unchanged. + * @param group The AAD Object ID of the group owner of the file or directory. If empty, the property will remain unchanged. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall setOwnerAsync(String accountName, String setOwnerFilePath, String owner, String group, final ServiceCallback serviceCallback) throws IllegalArgumentException; + + /** + * Sets the permission of the file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setPermissionFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the permission. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse setPermission(String accountName, String setPermissionFilePath) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Sets the permission of the file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setPermissionFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the permission. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall setPermissionAsync(String accountName, String setPermissionFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException; + /** + * Sets the permission of the file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setPermissionFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the permission. + * @param permission A string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged. + * @throws AdlsErrorException exception thrown from REST call + * @throws IOException exception thrown from serialization/deserialization + * @throws IllegalArgumentException exception thrown from invalid parameters + * @return the {@link ServiceResponse} object if successful. + */ + ServiceResponse setPermission(String accountName, String setPermissionFilePath, String permission) throws AdlsErrorException, IOException, IllegalArgumentException; + + /** + * Sets the permission of the file or folder. + * + * @param accountName The Azure Data Lake Store account to execute filesystem operations on. + * @param setPermissionFilePath The Data Lake Store path (starting with '/') of the file or directory for which to set the permission. + * @param permission A string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if callback is null + * @return the {@link ServiceCall} object + */ + ServiceCall setPermissionAsync(String accountName, String setPermissionFilePath, String permission, final ServiceCallback serviceCallback) throws IllegalArgumentException; + +} diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AccountsInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/AccountsImpl.java similarity index 87% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AccountsInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/AccountsImpl.java index b0b978cf02b6..7a32aa9bc563 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AccountsInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/AccountsImpl.java @@ -4,13 +4,18 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.implementation; import retrofit2.Retrofit; +import com.microsoft.azure.management.datalake.store.Accounts; +import com.microsoft.azure.management.datalake.store.DataLakeStoreAccountManagementClient; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceResponseBuilder; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; +import com.microsoft.azure.management.datalake.store.models.FirewallRule; +import com.microsoft.azure.management.datalake.store.models.PageImpl; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCall; @@ -39,19 +44,19 @@ * An instance of this class provides access to all the operations defined * in Accounts. */ -public final class AccountsInner { +public final class AccountsImpl implements Accounts { /** The Retrofit service to perform REST calls. */ private AccountsService service; /** The service client containing this operation class. */ - private DataLakeStoreAccountManagementClientImpl client; + private DataLakeStoreAccountManagementClient client; /** - * Initializes an instance of AccountsInner. + * Initializes an instance of AccountsImpl. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public AccountsInner(Retrofit retrofit, DataLakeStoreAccountManagementClientImpl client) { + public AccountsImpl(Retrofit retrofit, DataLakeStoreAccountManagementClient client) { this.service = retrofit.create(AccountsService.class); this.client = client; } @@ -75,23 +80,23 @@ interface AccountsService { @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules/{name}") - Call createOrUpdateFirewallRule(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body FirewallRuleInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call createOrUpdateFirewallRule(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body FirewallRule parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}") - Call create(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call create(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}") - Call beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}") - Call update(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call update(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}") - Call beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccountInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body DataLakeStoreAccount parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}", method = "DELETE", hasBody = true) @@ -223,9 +228,9 @@ private ServiceResponse deleteFirewallRuleDelegate(Response * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FirewallRuleInner object wrapped in {@link ServiceResponse} if successful. + * @return the FirewallRule object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getFirewallRule(String resourceGroupName, String accountName, String firewallRuleName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse getFirewallRule(String resourceGroupName, String accountName, String firewallRuleName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -255,7 +260,7 @@ public ServiceResponse getFirewallRule(String resourceGroupNa * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getFirewallRuleAsync(String resourceGroupName, String accountName, String firewallRuleName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getFirewallRuleAsync(String resourceGroupName, String accountName, String firewallRuleName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -281,7 +286,7 @@ public ServiceCall getFirewallRuleAsync(String resourceGroupName, String account } Call call = service.getFirewallRule(resourceGroupName, accountName, firewallRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -294,9 +299,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getFirewallRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getFirewallRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -309,9 +314,9 @@ private ServiceResponse getFirewallRuleDelegate(Response> listFirewallRules(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listFirewallRules(final String resourceGroupName, final String accountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -325,10 +330,10 @@ public ServiceResponse> listFirewallRules(final Str throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listFirewallRules(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listFirewallRulesDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listFirewallRulesDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listFirewallRulesNext(nextPageLink).getBody(); } }; @@ -344,7 +349,7 @@ public Page nextPage(String nextPageLink) throws CloudExcepti * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listFirewallRulesAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listFirewallRulesAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -366,11 +371,11 @@ public ServiceCall listFirewallRulesAsync(final String resourceGroupName, final } Call call = service.listFirewallRules(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listFirewallRulesDelegate(response); + ServiceResponse> result = listFirewallRulesDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -386,9 +391,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listFirewallRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listFirewallRulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -403,9 +408,9 @@ private ServiceResponse> listFirewallRulesDelegate(R * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FirewallRuleInner object wrapped in {@link ServiceResponse} if successful. + * @return the FirewallRule object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse createOrUpdateFirewallRule(String resourceGroupName, String accountName, String name, FirewallRuleInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse createOrUpdateFirewallRule(String resourceGroupName, String accountName, String name, FirewallRule parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -440,7 +445,7 @@ public ServiceResponse createOrUpdateFirewallRule(String reso * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall createOrUpdateFirewallRuleAsync(String resourceGroupName, String accountName, String name, FirewallRuleInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall createOrUpdateFirewallRuleAsync(String resourceGroupName, String accountName, String name, FirewallRule parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -471,7 +476,7 @@ public ServiceCall createOrUpdateFirewallRuleAsync(String resourceGroupName, Str Validator.validate(parameters, serviceCallback); Call call = service.createOrUpdateFirewallRule(resourceGroupName, accountName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -484,9 +489,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse createOrUpdateFirewallRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse createOrUpdateFirewallRuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -501,9 +506,9 @@ private ServiceResponse createOrUpdateFirewallRuleDelegate(Re * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @throws InterruptedException exception thrown when long running operation is interrupted - * @return the DataLakeStoreAccountInner object wrapped in ServiceResponse if successful. + * @return the DataLakeStoreAccount object wrapped in ServiceResponse if successful. */ - public ServiceResponse create(String resourceGroupName, String name, DataLakeStoreAccountInner parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { + public ServiceResponse create(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -521,7 +526,7 @@ public ServiceResponse create(String resourceGroupNam } Validator.validate(parameters); Response result = service.create(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()).execute(); - return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); } /** @@ -534,7 +539,7 @@ public ServiceResponse create(String resourceGroupNam * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - public ServiceCall createAsync(String resourceGroupName, String name, DataLakeStoreAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall createAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -563,7 +568,7 @@ public void onFailure(Call call, Throwable t) { } @Override public void onResponse(Call call, Response response) { - client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); + client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); } }); return serviceCall; @@ -578,9 +583,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeStoreAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeStoreAccountInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse beginCreate(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -611,7 +616,7 @@ public ServiceResponse beginCreate(String resourceGro * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeStoreAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -638,7 +643,7 @@ public ServiceCall beginCreateAsync(String resourceGroupName, String name, DataL Validator.validate(parameters, serviceCallback); Call call = service.beginCreate(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -651,10 +656,10 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(201, new TypeToken() { }.getType()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(201, new TypeToken() { }.getType()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -669,9 +674,9 @@ private ServiceResponse beginCreateDelegate(Response< * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters * @throws InterruptedException exception thrown when long running operation is interrupted - * @return the DataLakeStoreAccountInner object wrapped in ServiceResponse if successful. + * @return the DataLakeStoreAccount object wrapped in ServiceResponse if successful. */ - public ServiceResponse update(String resourceGroupName, String name, DataLakeStoreAccountInner parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { + public ServiceResponse update(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException, InterruptedException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -689,7 +694,7 @@ public ServiceResponse update(String resourceGroupNam } Validator.validate(parameters); Response result = service.update(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()).execute(); - return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); + return client.getAzureClient().getPutOrPatchResult(result, new TypeToken() { }.getType()); } /** @@ -702,7 +707,7 @@ public ServiceResponse update(String resourceGroupNam * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */ - public ServiceCall updateAsync(String resourceGroupName, String name, DataLakeStoreAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall updateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -731,7 +736,7 @@ public void onFailure(Call call, Throwable t) { } @Override public void onResponse(Call call, Response response) { - client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); + client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken() { }.getType(), serviceCall, serviceCallback); } }); return serviceCall; @@ -746,9 +751,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeStoreAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeStoreAccountInner parameters) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse beginUpdate(String resourceGroupName, String name, DataLakeStoreAccount parameters) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -779,7 +784,7 @@ public ServiceResponse beginUpdate(String resourceGro * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeStoreAccountInner parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataLakeStoreAccount parameters, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -806,7 +811,7 @@ public ServiceCall beginUpdateAsync(String resourceGroupName, String name, DataL Validator.validate(parameters, serviceCallback); Call call = service.beginUpdate(resourceGroupName, name, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -819,10 +824,10 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse beginUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(201, new TypeToken() { }.getType()) + private ServiceResponse beginUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -983,9 +988,9 @@ private ServiceResponse beginDeleteDelegate(Response respons * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the DataLakeStoreAccountInner object wrapped in {@link ServiceResponse} if successful. + * @return the DataLakeStoreAccount object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse get(String resourceGroupName, String accountName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1011,7 +1016,7 @@ public ServiceResponse get(String resourceGroupName, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1033,7 +1038,7 @@ public ServiceCall getAsync(String resourceGroupName, String accountName, final } Call call = service.get(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1046,9 +1051,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1060,9 +1065,9 @@ private ServiceResponse getDelegate(Response> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroup(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1082,10 +1087,10 @@ public ServiceResponse> listByResourceGroup final String search = null; final String format = null; Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listByResourceGroupDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listByResourceGroupDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listByResourceGroupNext(nextPageLink).getBody(); } }; @@ -1100,7 +1105,7 @@ public Page nextPage(String nextPageLink) throws Clou * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1127,11 +1132,11 @@ public ServiceCall listByResourceGroupAsync(final String resourceGroupName, fina final String format = null; Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1163,9 +1168,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroup(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1176,10 +1181,10 @@ public ServiceResponse> listByResourceGroup throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listByResourceGroupDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listByResourceGroupDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listByResourceGroupNext(nextPageLink).getBody(); } }; @@ -1203,7 +1208,7 @@ public Page nextPage(String nextPageLink) throws Clou * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupAsync(final String resourceGroupName, final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1221,11 +1226,11 @@ public ServiceCall listByResourceGroupAsync(final String resourceGroupName, fina } Call call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupDelegate(response); + ServiceResponse> result = listByResourceGroupDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1241,9 +1246,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1254,9 +1259,9 @@ private ServiceResponse> listByResourceGroup * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list() throws CloudException, IOException, IllegalArgumentException { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -1273,10 +1278,10 @@ public ServiceResponse> list() throws Cloud final String search = null; final String format = null; Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -1290,7 +1295,7 @@ public Page nextPage(String nextPageLink) throws Clou * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1313,11 +1318,11 @@ public ServiceCall listAsync(final ListOperationCallback call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1348,9 +1353,9 @@ public void onResponse(Call call, Response response) * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> list(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format) throws CloudException, IOException, IllegalArgumentException { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -1358,10 +1363,10 @@ public ServiceResponse> list(final String f throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - ServiceResponse> response = listDelegate(call.execute()); - PagedList result = new PagedList(response.getBody()) { + ServiceResponse> response = listDelegate(call.execute()); + PagedList result = new PagedList(response.getBody()) { @Override - public Page nextPage(String nextPageLink) throws CloudException, IOException { + public Page nextPage(String nextPageLink) throws CloudException, IOException { return listNext(nextPageLink).getBody(); } }; @@ -1384,7 +1389,7 @@ public Page nextPage(String nextPageLink) throws Clou * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listAsync(final String filter, final Integer top, final Integer skip, final String expand, final String select, final String orderby, final Boolean count, final String search, final String format, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1398,11 +1403,11 @@ public ServiceCall listAsync(final String filter, final Integer top, final Integ } Call call = service.list(this.client.subscriptionId(), filter, top, skip, expand, select, orderby, count, search, format, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listDelegate(response); + ServiceResponse> result = listDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1418,9 +1423,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1432,9 +1437,9 @@ private ServiceResponse> listDelegate(Respon * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<FirewallRuleInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<FirewallRule> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listFirewallRulesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listFirewallRulesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -1451,7 +1456,7 @@ public ServiceResponse> listFirewallRulesNext(final * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listFirewallRulesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listFirewallRulesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1461,11 +1466,11 @@ public ServiceCall listFirewallRulesNextAsync(final String nextPageLink, final S } Call call = service.listFirewallRulesNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listFirewallRulesNextDelegate(response); + ServiceResponse> result = listFirewallRulesNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1481,9 +1486,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listFirewallRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listFirewallRulesNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1495,9 +1500,9 @@ private ServiceResponse> listFirewallRulesNextDelega * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listByResourceGroupNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -1514,7 +1519,7 @@ public ServiceResponse> listByResourceGroupN * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1524,11 +1529,11 @@ public ServiceCall listByResourceGroupNextAsync(final String nextPageLink, final } Call call = service.listByResourceGroupNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listByResourceGroupNextDelegate(response); + ServiceResponse> result = listByResourceGroupNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1544,9 +1549,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -1558,9 +1563,9 @@ private ServiceResponse> listByResourceGroup * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the List<DataLakeStoreAccountInner> object wrapped in {@link ServiceResponse} if successful. + * @return the List<DataLakeStoreAccount> object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { + public ServiceResponse> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } @@ -1577,7 +1582,7 @@ public ServiceResponse> listNext(final Strin * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1587,11 +1592,11 @@ public ServiceCall listNextAsync(final String nextPageLink, final ServiceCall se } Call call = service.listNext(nextPageLink, this.client.acceptLanguage(), this.client.userAgent()); serviceCall.newCall(call); - call.enqueue(new ServiceResponseCallback>(serviceCallback) { + call.enqueue(new ServiceResponseCallback>(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { - ServiceResponse> result = listNextDelegate(response); + ServiceResponse> result = listNextDelegate(response); serviceCallback.load(result.getBody().getItems()); if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) { @@ -1607,9 +1612,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder, CloudException>(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountManagementClientImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreAccountManagementClientImpl.java similarity index 82% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountManagementClientImpl.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreAccountManagementClientImpl.java index e357d0bf91e6..24b8a30c9ba9 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountManagementClientImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreAccountManagementClientImpl.java @@ -4,10 +4,12 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.management.datalake.store.Accounts; +import com.microsoft.azure.management.datalake.store.DataLakeStoreAccountManagementClient; import com.microsoft.azure.serializer.AzureJacksonMapperAdapter; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -15,7 +17,7 @@ /** * Initializes a new instance of the DataLakeStoreAccountManagementClientImpl class. */ -public final class DataLakeStoreAccountManagementClientImpl extends AzureServiceClient { +public final class DataLakeStoreAccountManagementClientImpl extends AzureServiceClient implements DataLakeStoreAccountManagementClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -43,9 +45,11 @@ public String subscriptionId() { * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * * @param subscriptionId the subscriptionId value. + * @return the service client itself */ - public void withSubscriptionId(String subscriptionId) { + public DataLakeStoreAccountManagementClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; + return this; } /** Client Api Version. */ @@ -76,9 +80,11 @@ public String acceptLanguage() { * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. + * @return the service client itself */ - public void withAcceptLanguage(String acceptLanguage) { + public DataLakeStoreAccountManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; + return this; } /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ @@ -97,9 +103,11 @@ public int longRunningOperationRetryTimeout() { * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself */ - public void withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public DataLakeStoreAccountManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; } /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ @@ -118,21 +126,23 @@ public boolean generateClientRequestId() { * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself */ - public void withGenerateClientRequestId(boolean generateClientRequestId) { + public DataLakeStoreAccountManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; + return this; } /** - * The AccountsInner object to access its operations. + * The Accounts object to access its operations. */ - private AccountsInner accounts; + private Accounts accounts; /** - * Gets the AccountsInner object to access its operations. - * @return the AccountsInner object. + * Gets the Accounts object to access its operations. + * @return the Accounts object. */ - public AccountsInner accounts() { + public Accounts accounts() { return this.accounts; } @@ -173,7 +183,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; - this.accounts = new AccountsInner(restClient().retrofit(), this); + this.accounts = new AccountsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreFileSystemManagementClientImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreFileSystemManagementClientImpl.java similarity index 81% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreFileSystemManagementClientImpl.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreFileSystemManagementClientImpl.java index a1e95c666b51..c4ade41349c1 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreFileSystemManagementClientImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/DataLakeStoreFileSystemManagementClientImpl.java @@ -4,10 +4,12 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.implementation; import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; +import com.microsoft.azure.management.datalake.store.DataLakeStoreFileSystemManagementClient; +import com.microsoft.azure.management.datalake.store.FileSystems; import com.microsoft.azure.serializer.AzureJacksonMapperAdapter; import com.microsoft.rest.credentials.ServiceClientCredentials; import com.microsoft.rest.RestClient; @@ -15,7 +17,7 @@ /** * Initializes a new instance of the DataLakeStoreFileSystemManagementClientImpl class. */ -public final class DataLakeStoreFileSystemManagementClientImpl extends AzureServiceClient { +public final class DataLakeStoreFileSystemManagementClientImpl extends AzureServiceClient implements DataLakeStoreFileSystemManagementClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -55,9 +57,11 @@ public String adlsFileSystemDnsSuffix() { * Sets Gets the URI used as the base for all cloud service requests. * * @param adlsFileSystemDnsSuffix the adlsFileSystemDnsSuffix value. + * @return the service client itself */ - public void withAdlsFileSystemDnsSuffix(String adlsFileSystemDnsSuffix) { + public DataLakeStoreFileSystemManagementClientImpl withAdlsFileSystemDnsSuffix(String adlsFileSystemDnsSuffix) { this.adlsFileSystemDnsSuffix = adlsFileSystemDnsSuffix; + return this; } /** Gets or sets the preferred language for the response. */ @@ -76,9 +80,11 @@ public String acceptLanguage() { * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. + * @return the service client itself */ - public void withAcceptLanguage(String acceptLanguage) { + public DataLakeStoreFileSystemManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; + return this; } /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ @@ -97,9 +103,11 @@ public int longRunningOperationRetryTimeout() { * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself */ - public void withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public DataLakeStoreFileSystemManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; } /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ @@ -118,21 +126,23 @@ public boolean generateClientRequestId() { * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself */ - public void withGenerateClientRequestId(boolean generateClientRequestId) { + public DataLakeStoreFileSystemManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; + return this; } /** - * The FileSystemsInner object to access its operations. + * The FileSystems object to access its operations. */ - private FileSystemsInner fileSystems; + private FileSystems fileSystems; /** - * Gets the FileSystemsInner object to access its operations. - * @return the FileSystemsInner object. + * Gets the FileSystems object to access its operations. + * @return the FileSystems object. */ - public FileSystemsInner fileSystems() { + public FileSystems fileSystems() { return this.fileSystems; } @@ -174,7 +184,7 @@ protected void initialize() { this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; - this.fileSystems = new FileSystemsInner(restClient().retrofit(), this); + this.fileSystems = new FileSystemsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileSystemsInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/FileSystemsImpl.java similarity index 86% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileSystemsInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/FileSystemsImpl.java index 6b758f904b50..87503c06397e 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileSystemsInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/FileSystemsImpl.java @@ -4,11 +4,21 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.implementation; import retrofit2.Retrofit; +import com.microsoft.azure.management.datalake.store.FileSystems; +import com.microsoft.azure.management.datalake.store.DataLakeStoreFileSystemManagementClient; +import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceResponseBuilder; +import com.microsoft.azure.management.datalake.store.models.AclStatusResult; +import com.microsoft.azure.management.datalake.store.models.AdlsErrorException; +import com.microsoft.azure.management.datalake.store.models.AppendModeType; +import com.microsoft.azure.management.datalake.store.models.ContentSummaryResult; +import com.microsoft.azure.management.datalake.store.models.FileOperationResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusesResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusResult; import com.microsoft.rest.serializer.CollectionFormat; import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; @@ -38,19 +48,19 @@ * An instance of this class provides access to all the operations defined * in FileSystems. */ -public final class FileSystemsInner { +public final class FileSystemsImpl implements FileSystems { /** The Retrofit service to perform REST calls. */ private FileSystemsService service; /** The service client containing this operation class. */ - private DataLakeStoreFileSystemManagementClientImpl client; + private DataLakeStoreFileSystemManagementClient client; /** - * Initializes an instance of FileSystemsInner. + * Initializes an instance of FileSystemsImpl. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public FileSystemsInner(Retrofit retrofit, DataLakeStoreFileSystemManagementClientImpl client) { + public FileSystemsImpl(Retrofit retrofit, DataLakeStoreFileSystemManagementClient client) { this.service = retrofit.create(FileSystemsService.class); this.client = client; } @@ -62,80 +72,80 @@ public FileSystemsInner(Retrofit retrofit, DataLakeStoreFileSystemManagementClie interface FileSystemsService { @Headers("Content-Type: application/octet-stream") @POST("WebHdfsExt/{filePath}") - Call concurrentAppend(@Path("filePath") String filePath, @Body RequestBody streamContents, @Query("appendMode") AppendModeType appendMode, @Query("op") String op, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call concurrentAppend(@Path("filePath") String filePath, @Body RequestBody streamContents, @Query("appendMode") AppendModeType appendMode, @Query("op") String op, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/v1/{path}") - Call checkAccess(@Path("path") String path, @Query("fsaction") String fsaction, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call checkAccess(@Path("path") String path, @Query("fsaction") String fsaction, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{path}") - Call mkdirs(@Path("path") String path, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call mkdirs(@Path("path") String path, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @POST("webhdfs/v1/{destinationPath}") - Call concat(@Path("destinationPath") String destinationPath, @Query("sources") String sources, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call concat(@Path("destinationPath") String destinationPath, @Query("sources") String sources, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/octet-stream") @POST("webhdfs/v1/{msConcatDestinationPath}") - Call msConcat(@Path("msConcatDestinationPath") String msConcatDestinationPath, @Query("deleteSourceDirectory") Boolean deleteSourceDirectory, @Body RequestBody streamContents, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call msConcat(@Path("msConcatDestinationPath") String msConcatDestinationPath, @Query("deleteSourceDirectory") Boolean deleteSourceDirectory, @Body RequestBody streamContents, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/v1/{listFilePath}") - Call listFileStatus(@Path("listFilePath") String listFilePath, @Query("listSize") Integer listSize, @Query("listAfter") String listAfter, @Query("listBefore") String listBefore, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call listFileStatus(@Path("listFilePath") String listFilePath, @Query("listSize") Integer listSize, @Query("listAfter") String listAfter, @Query("listBefore") String listBefore, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/va/{getContentSummaryFilePath}") - Call getContentSummary(@Path("getContentSummaryFilePath") String getContentSummaryFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getContentSummary(@Path("getContentSummaryFilePath") String getContentSummaryFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/v1/{getFilePath}") - Call getFileStatus(@Path("getFilePath") String getFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getFileStatus(@Path("getFilePath") String getFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/octet-stream") @POST("webhdfs/v1/{directFilePath}") - Call append(@Path("directFilePath") String directFilePath, @Body RequestBody streamContents, @Query("op") String op, @Query("append") String append, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call append(@Path("directFilePath") String directFilePath, @Body RequestBody streamContents, @Query("op") String op, @Query("append") String append, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/octet-stream") @PUT("webhdfs/v1/{directFilePath}") - Call create(@Path("directFilePath") String directFilePath, @Body RequestBody streamContents, @Query("overwrite") Boolean overwrite, @Query("op") String op, @Query("write") String write, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call create(@Path("directFilePath") String directFilePath, @Body RequestBody streamContents, @Query("overwrite") Boolean overwrite, @Query("op") String op, @Query("write") String write, @Header("Transfer-Encoding") String transferEncoding, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/v1/{directFilePath}") @Streaming - Call open(@Path("directFilePath") String directFilePath, @Query("length") Long length, @Query("offset") Long offset, @Query("op") String op, @Query("read") String read, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call open(@Path("directFilePath") String directFilePath, @Query("length") Long length, @Query("offset") Long offset, @Query("op") String op, @Query("read") String read, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{setAclFilePath}") - Call setAcl(@Path("setAclFilePath") String setAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call setAcl(@Path("setAclFilePath") String setAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{modifyAclFilePath}") - Call modifyAclEntries(@Path("modifyAclFilePath") String modifyAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call modifyAclEntries(@Path("modifyAclFilePath") String modifyAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{removeAclFilePath}") - Call removeAclEntries(@Path("removeAclFilePath") String removeAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call removeAclEntries(@Path("removeAclFilePath") String removeAclFilePath, @Query("aclspec") String aclspec, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @GET("webhdfs/v1/{aclFilePath}") - Call getAclStatus(@Path("aclFilePath") String aclFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call getAclStatus(@Path("aclFilePath") String aclFilePath, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @HTTP(path = "webhdfs/v1/{filePath}", method = "DELETE", hasBody = true) - Call delete(@Path("filePath") String filePath, @Query("recursive") Boolean recursive, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call delete(@Path("filePath") String filePath, @Query("recursive") Boolean recursive, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{renameFilePath}") - Call rename(@Path("renameFilePath") String renameFilePath, @Query("destination") String destination, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call rename(@Path("renameFilePath") String renameFilePath, @Query("destination") String destination, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{setOwnerFilePath}") - Call setOwner(@Path("setOwnerFilePath") String setOwnerFilePath, @Query("owner") String owner, @Query("group") String group, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call setOwner(@Path("setOwnerFilePath") String setOwnerFilePath, @Query("owner") String owner, @Query("group") String group, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers("Content-Type: application/json; charset=utf-8") @PUT("webhdfs/v1/{setPermissionFilePath}") - Call setPermission(@Path("setPermissionFilePath") String setPermissionFilePath, @Query("permission") String permission, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Call setPermission(@Path("setPermissionFilePath") String setPermissionFilePath, @Query("permission") String permission, @Query("op") String op, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); } @@ -169,9 +179,9 @@ public ServiceResponse concurrentAppend(String accountName, String filePat final String op = "CONCURRENTAPPEND"; final String transferEncoding = "chunked"; final AppendModeType appendMode = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return concurrentAppendDelegate(call.execute()); } @@ -212,9 +222,9 @@ public ServiceCall concurrentAppendAsync(String accountName, String filePath, by final String op = "CONCURRENTAPPEND"; final String transferEncoding = "chunked"; final AppendModeType appendMode = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -259,9 +269,9 @@ public ServiceResponse concurrentAppend(String accountName, String filePat } final String op = "CONCURRENTAPPEND"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return concurrentAppendDelegate(call.execute()); } @@ -302,9 +312,9 @@ public ServiceCall concurrentAppendAsync(String accountName, String filePath, by } final String op = "CONCURRENTAPPEND"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concurrentAppend(filePath, streamContentsConverted, appendMode, op, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -351,8 +361,8 @@ public ServiceResponse checkAccess(String accountName, String path) throws } final String op = "CHECKACCESS"; final String fsaction = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return checkAccessDelegate(call.execute()); } @@ -387,8 +397,8 @@ public ServiceCall checkAccessAsync(String accountName, String path, final Servi } final String op = "CHECKACCESS"; final String fsaction = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -428,8 +438,8 @@ public ServiceResponse checkAccess(String accountName, String path, String throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "CHECKACCESS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return checkAccessDelegate(call.execute()); } @@ -464,8 +474,8 @@ public ServiceCall checkAccessAsync(String accountName, String path, String fsac return null; } final String op = "CHECKACCESS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.checkAccess(path, fsaction, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -495,9 +505,9 @@ private ServiceResponse checkAccessDelegate(Response respons * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FileOperationResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse mkdirs(String accountName, String path) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse mkdirs(String accountName, String path) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -511,8 +521,8 @@ public ServiceResponse mkdirs(String accountName, Stri throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "MKDIRS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.mkdirs(path, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.mkdirs(path, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return mkdirsDelegate(call.execute()); } @@ -525,7 +535,7 @@ public ServiceResponse mkdirs(String accountName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall mkdirsAsync(String accountName, String path, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall mkdirsAsync(String accountName, String path, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -546,10 +556,10 @@ public ServiceCall mkdirsAsync(String accountName, String path, final ServiceCal return null; } final String op = "MKDIRS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.mkdirs(path, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.mkdirs(path, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -562,9 +572,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse mkdirsDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse mkdirsDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -598,9 +608,9 @@ public ServiceResponse concat(String accountName, String destinationPath, } Validator.validate(sources); final String op = "CONCAT"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); String sourcesConverted = this.client.restClient().mapperAdapter().serializeList(sources, CollectionFormat.CSV); - Call call = service.concat(destinationPath, sourcesConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concat(destinationPath, sourcesConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return concatDelegate(call.execute()); } @@ -640,9 +650,9 @@ public ServiceCall concatAsync(String accountName, String destinationPath, List< } Validator.validate(sources, serviceCallback); final String op = "CONCAT"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); String sourcesConverted = this.client.restClient().mapperAdapter().serializeList(sources, CollectionFormat.CSV); - Call call = service.concat(destinationPath, sourcesConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.concat(destinationPath, sourcesConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -693,9 +703,9 @@ public ServiceResponse msConcat(String accountName, String msConcatDestina } final String op = "MSCONCAT"; final Boolean deleteSourceDirectory = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return msConcatDelegate(call.execute()); } @@ -735,9 +745,9 @@ public ServiceCall msConcatAsync(String accountName, String msConcatDestinationP } final String op = "MSCONCAT"; final Boolean deleteSourceDirectory = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -781,9 +791,9 @@ public ServiceResponse msConcat(String accountName, String msConcatDestina throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "MSCONCAT"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return msConcatDelegate(call.execute()); } @@ -823,9 +833,9 @@ public ServiceCall msConcatAsync(String accountName, String msConcatDestinationP return null; } final String op = "MSCONCAT"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.msConcat(msConcatDestinationPath, deleteSourceDirectory, streamContentsConverted, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -855,9 +865,9 @@ private ServiceResponse msConcatDelegate(Response response) * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FileStatusesResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the FileStatusesResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse listFileStatus(String accountName, String listFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse listFileStatus(String accountName, String listFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -874,8 +884,8 @@ public ServiceResponse listFileStatus(String accountNam final Integer listSize = null; final String listAfter = null; final String listBefore = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return listFileStatusDelegate(call.execute()); } @@ -888,7 +898,7 @@ public ServiceResponse listFileStatus(String accountNam * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listFileStatusAsync(String accountName, String listFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listFileStatusAsync(String accountName, String listFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -912,10 +922,10 @@ public ServiceCall listFileStatusAsync(String accountName, String listFilePath, final Integer listSize = null; final String listAfter = null; final String listBefore = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -939,9 +949,9 @@ public void onResponse(Call call, Response response) * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FileStatusesResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the FileStatusesResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse listFileStatus(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse listFileStatus(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -955,8 +965,8 @@ public ServiceResponse listFileStatus(String accountNam throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "MSLISTSTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return listFileStatusDelegate(call.execute()); } @@ -972,7 +982,7 @@ public ServiceResponse listFileStatus(String accountNam * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall listFileStatusAsync(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall listFileStatusAsync(String accountName, String listFilePath, Integer listSize, String listAfter, String listBefore, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -993,10 +1003,10 @@ public ServiceCall listFileStatusAsync(String accountName, String listFilePath, return null; } final String op = "MSLISTSTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.listFileStatus(listFilePath, listSize, listAfter, listBefore, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1009,9 +1019,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse listFileStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse listFileStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -1024,9 +1034,9 @@ private ServiceResponse listFileStatusDelegate(Response * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the ContentSummaryResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the ContentSummaryResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getContentSummary(String accountName, String getContentSummaryFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse getContentSummary(String accountName, String getContentSummaryFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1040,8 +1050,8 @@ public ServiceResponse getContentSummary(String accou throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "GETCONTENTSUMMARY"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getContentSummary(getContentSummaryFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getContentSummary(getContentSummaryFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getContentSummaryDelegate(call.execute()); } @@ -1054,7 +1064,7 @@ public ServiceResponse getContentSummary(String accou * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getContentSummaryAsync(String accountName, String getContentSummaryFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getContentSummaryAsync(String accountName, String getContentSummaryFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1075,10 +1085,10 @@ public ServiceCall getContentSummaryAsync(String accountName, String getContentS return null; } final String op = "GETCONTENTSUMMARY"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getContentSummary(getContentSummaryFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getContentSummary(getContentSummaryFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1091,9 +1101,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getContentSummaryDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getContentSummaryDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -1106,9 +1116,9 @@ private ServiceResponse getContentSummaryDelegate(Res * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FileStatusResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the FileStatusResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getFileStatus(String accountName, String getFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse getFileStatus(String accountName, String getFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1122,8 +1132,8 @@ public ServiceResponse getFileStatus(String accountName, throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "GETFILESTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getFileStatus(getFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getFileStatus(getFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getFileStatusDelegate(call.execute()); } @@ -1136,7 +1146,7 @@ public ServiceResponse getFileStatus(String accountName, * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getFileStatusAsync(String accountName, String getFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getFileStatusAsync(String accountName, String getFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1157,10 +1167,10 @@ public ServiceCall getFileStatusAsync(String accountName, String getFilePath, fi return null; } final String op = "GETFILESTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getFileStatus(getFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getFileStatus(getFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1173,9 +1183,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getFileStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getFileStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -1210,9 +1220,9 @@ public ServiceResponse append(String accountName, String directFilePath, b final String op = "APPEND"; final String append = "true"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.append(directFilePath, streamContentsConverted, op, append, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.append(directFilePath, streamContentsConverted, op, append, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return appendDelegate(call.execute()); } @@ -1253,9 +1263,9 @@ public ServiceCall appendAsync(String accountName, String directFilePath, byte[] final String op = "APPEND"; final String append = "true"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); - Call call = service.append(directFilePath, streamContentsConverted, op, append, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.append(directFilePath, streamContentsConverted, op, append, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1303,10 +1313,14 @@ public ServiceResponse create(String accountName, String directFilePath) t final String op = "CREATE"; final String write = "true"; final String transferEncoding = "chunked"; - final RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); + final byte[] streamContents = new byte[0]; final Boolean overwrite = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); + if (streamContents != null) { + streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + } + Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return createDelegate(call.execute()); } @@ -1342,10 +1356,14 @@ public ServiceCall createAsync(String accountName, String directFilePath, final final String op = "CREATE"; final String write = "true"; final String transferEncoding = "chunked"; - final RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); + final byte[] streamContents = new byte[0]; final Boolean overwrite = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); + if (streamContents != null) { + streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); + } + Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1388,12 +1406,12 @@ public ServiceResponse create(String accountName, String directFilePath, b final String op = "CREATE"; final String write = "true"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); if (streamContents != null) { streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); } - Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return createDelegate(call.execute()); } @@ -1431,12 +1449,12 @@ public ServiceCall createAsync(String accountName, String directFilePath, byte[] final String op = "CREATE"; final String write = "true"; final String transferEncoding = "chunked"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); RequestBody streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), new byte[0]); if (streamContents != null) { streamContentsConverted = RequestBody.create(MediaType.parse("application/octet-stream"), streamContents); } - Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Call call = service.create(directFilePath, streamContentsConverted, overwrite, op, write, transferEncoding, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1485,8 +1503,8 @@ public ServiceResponse open(String accountName, String directFilePa final String read = "true"; final Long length = null; final Long offset = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return openDelegate(call.execute()); } @@ -1523,8 +1541,8 @@ public ServiceCall openAsync(String accountName, String directFilePath, final Se final String read = "true"; final Long length = null; final Long offset = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1566,8 +1584,8 @@ public ServiceResponse open(String accountName, String directFilePa } final String op = "OPEN"; final String read = "true"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return openDelegate(call.execute()); } @@ -1604,8 +1622,8 @@ public ServiceCall openAsync(String accountName, String directFilePath, Long len } final String op = "OPEN"; final String read = "true"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.open(directFilePath, length, offset, op, read, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1655,8 +1673,8 @@ public ServiceResponse setAcl(String accountName, String setAclFilePath, S throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "SETACL"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setAcl(setAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setAcl(setAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return setAclDelegate(call.execute()); } @@ -1695,8 +1713,8 @@ public ServiceCall setAclAsync(String accountName, String setAclFilePath, String return null; } final String op = "SETACL"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setAcl(setAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setAcl(setAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1746,8 +1764,8 @@ public ServiceResponse modifyAclEntries(String accountName, String modifyA throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "MODIFYACLENTRIES"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.modifyAclEntries(modifyAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.modifyAclEntries(modifyAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return modifyAclEntriesDelegate(call.execute()); } @@ -1786,8 +1804,8 @@ public ServiceCall modifyAclEntriesAsync(String accountName, String modifyAclFil return null; } final String op = "MODIFYACLENTRIES"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.modifyAclEntries(modifyAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.modifyAclEntries(modifyAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1837,8 +1855,8 @@ public ServiceResponse removeAclEntries(String accountName, String removeA throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "REMOVEACLENTRIES"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.removeAclEntries(removeAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.removeAclEntries(removeAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return removeAclEntriesDelegate(call.execute()); } @@ -1877,8 +1895,8 @@ public ServiceCall removeAclEntriesAsync(String accountName, String removeAclFil return null; } final String op = "REMOVEACLENTRIES"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.removeAclEntries(removeAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.removeAclEntries(removeAclFilePath, aclspec, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -1908,9 +1926,9 @@ private ServiceResponse removeAclEntriesDelegate(Response re * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the AclStatusResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the AclStatusResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse getAclStatus(String accountName, String aclFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse getAclStatus(String accountName, String aclFilePath) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -1924,8 +1942,8 @@ public ServiceResponse getAclStatus(String accountName, St throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "GETACLSTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getAclStatus(aclFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getAclStatus(aclFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return getAclStatusDelegate(call.execute()); } @@ -1938,7 +1956,7 @@ public ServiceResponse getAclStatus(String accountName, St * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall getAclStatusAsync(String accountName, String aclFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall getAclStatusAsync(String accountName, String aclFilePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -1959,10 +1977,10 @@ public ServiceCall getAclStatusAsync(String accountName, String aclFilePath, fin return null; } final String op = "GETACLSTATUS"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.getAclStatus(aclFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.getAclStatus(aclFilePath, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -1975,9 +1993,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse getAclStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getAclStatusDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -1990,9 +2008,9 @@ private ServiceResponse getAclStatusDelegate(Response delete(String accountName, String filePath) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse delete(String accountName, String filePath) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2007,8 +2025,8 @@ public ServiceResponse delete(String accountName, Stri } final String op = "DELETE"; final Boolean recursive = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return deleteDelegate(call.execute()); } @@ -2021,7 +2039,7 @@ public ServiceResponse delete(String accountName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall deleteAsync(String accountName, String filePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall deleteAsync(String accountName, String filePath, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2043,10 +2061,10 @@ public ServiceCall deleteAsync(String accountName, String filePath, final Servic } final String op = "DELETE"; final Boolean recursive = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2068,9 +2086,9 @@ public void onResponse(Call call, Response response) * @throws AdlsErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentException exception thrown from invalid parameters - * @return the FileOperationResultInner object wrapped in {@link ServiceResponse} if successful. + * @return the FileOperationResult object wrapped in {@link ServiceResponse} if successful. */ - public ServiceResponse delete(String accountName, String filePath, Boolean recursive) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse delete(String accountName, String filePath, Boolean recursive) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2084,8 +2102,8 @@ public ServiceResponse delete(String accountName, Stri throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "DELETE"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return deleteDelegate(call.execute()); } @@ -2099,7 +2117,7 @@ public ServiceResponse delete(String accountName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall deleteAsync(String accountName, String filePath, Boolean recursive, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall deleteAsync(String accountName, String filePath, Boolean recursive, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2120,10 +2138,10 @@ public ServiceCall deleteAsync(String accountName, String filePath, Boolean recu return null; } final String op = "DELETE"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.delete(filePath, recursive, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2136,9 +2154,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse deleteDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse deleteDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -2152,9 +2170,9 @@ private ServiceResponse deleteDelegate(Response rename(String accountName, String renameFilePath, String destination) throws AdlsErrorException, IOException, IllegalArgumentException { + public ServiceResponse rename(String accountName, String renameFilePath, String destination) throws AdlsErrorException, IOException, IllegalArgumentException { if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } @@ -2171,8 +2189,8 @@ public ServiceResponse rename(String accountName, Stri throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "RENAME"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.rename(renameFilePath, destination, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.rename(renameFilePath, destination, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return renameDelegate(call.execute()); } @@ -2186,7 +2204,7 @@ public ServiceResponse rename(String accountName, Stri * @throws IllegalArgumentException thrown if callback is null * @return the {@link Call} object */ - public ServiceCall renameAsync(String accountName, String renameFilePath, String destination, final ServiceCallback serviceCallback) throws IllegalArgumentException { + public ServiceCall renameAsync(String accountName, String renameFilePath, String destination, final ServiceCallback serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); } @@ -2211,10 +2229,10 @@ public ServiceCall renameAsync(String accountName, String renameFilePath, String return null; } final String op = "RENAME"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.rename(renameFilePath, destination, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.rename(renameFilePath, destination, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); - call.enqueue(new ServiceResponseCallback(serviceCallback) { + call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override public void onResponse(Call call, Response response) { try { @@ -2227,9 +2245,9 @@ public void onResponse(Call call, Response response) return serviceCall; } - private ServiceResponse renameDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { - return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse renameDelegate(Response response) throws AdlsErrorException, IOException, IllegalArgumentException { + return new AzureServiceResponseBuilder(this.client.restClient().mapperAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(AdlsErrorException.class) .build(response); } @@ -2260,8 +2278,8 @@ public ServiceResponse setOwner(String accountName, String setOwnerFilePat final String op = "SETOWNER"; final String owner = null; final String group = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return setOwnerDelegate(call.execute()); } @@ -2297,8 +2315,8 @@ public ServiceCall setOwnerAsync(String accountName, String setOwnerFilePath, fi final String op = "SETOWNER"; final String owner = null; final String group = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -2339,8 +2357,8 @@ public ServiceResponse setOwner(String accountName, String setOwnerFilePat throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "SETOWNER"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return setOwnerDelegate(call.execute()); } @@ -2376,8 +2394,8 @@ public ServiceCall setOwnerAsync(String accountName, String setOwnerFilePath, St return null; } final String op = "SETOWNER"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setOwner(setOwnerFilePath, owner, group, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -2424,8 +2442,8 @@ public ServiceResponse setPermission(String accountName, String setPermiss } final String op = "SETPERMISSION"; final String permission = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return setPermissionDelegate(call.execute()); } @@ -2460,8 +2478,8 @@ public ServiceCall setPermissionAsync(String accountName, String setPermissionFi } final String op = "SETPERMISSION"; final String permission = null; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override @@ -2501,8 +2519,8 @@ public ServiceResponse setPermission(String accountName, String setPermiss throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String op = "SETPERMISSION"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); return setPermissionDelegate(call.execute()); } @@ -2537,8 +2555,8 @@ public ServiceCall setPermissionAsync(String accountName, String setPermissionFi return null; } final String op = "SETPERMISSION"; - this.client.restClient().setBaseUrl("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); - Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + String parameterizedHost = Joiner.on(", ").join("{accountName}", accountName, "{adlsFileSystemDnsSuffix}", this.client.adlsFileSystemDnsSuffix()); + Call call = service.setPermission(setPermissionFilePath, permission, op, this.client.apiVersion(), this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()); final ServiceCall serviceCall = new ServiceCall(call); call.enqueue(new ServiceResponseCallback(serviceCallback) { @Override diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatus.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatus.java similarity index 96% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatus.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatus.java index 12afdb7e2028..5b048b874118 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatus.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatus.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import java.util.List; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatusResultInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatusResult.java similarity index 77% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatusResultInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatusResult.java index dad1685fce3a..7f87dfa73b25 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AclStatusResultInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AclStatusResult.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store file or directory Access Control List information. */ -public class AclStatusResultInner { +public class AclStatusResult { /** * Gets or sets the AclStatus object for a given file or directory. */ @@ -31,9 +31,9 @@ public AclStatus aclStatus() { * Set the aclStatus value. * * @param aclStatus the aclStatus value to set - * @return the AclStatusResultInner object itself. + * @return the AclStatusResult object itself. */ - public AclStatusResultInner withAclStatus(AclStatus aclStatus) { + public AclStatusResult withAclStatus(AclStatus aclStatus) { this.aclStatus = aclStatus; return this; } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsAccessControlException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsAccessControlException.java similarity index 90% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsAccessControlException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsAccessControlException.java index 532b2ced8ec6..b3152b7bf1ea 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsAccessControlException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsAccessControlException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsError.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsError.java similarity index 91% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsError.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsError.java index 3afdccd44d29..f03c7784dce4 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsError.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsError.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsErrorException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsErrorException.java similarity index 96% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsErrorException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsErrorException.java index 107a6a4203a8..d51d6657cfc9 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsErrorException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsErrorException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.microsoft.rest.RestException; import retrofit2.Response; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsFileNotFoundException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsFileNotFoundException.java similarity index 89% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsFileNotFoundException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsFileNotFoundException.java index c127e879875e..22cab1ea467a 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsFileNotFoundException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsFileNotFoundException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIOException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIOException.java similarity index 89% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIOException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIOException.java index 454405688f74..202eae888235 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIOException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIOException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIllegalArgumentException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIllegalArgumentException.java similarity index 89% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIllegalArgumentException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIllegalArgumentException.java index 5c8986c1ae1a..eb01009c4728 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsIllegalArgumentException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsIllegalArgumentException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRemoteException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRemoteException.java similarity index 96% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRemoteException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRemoteException.java index cf7a70913e45..9d18704c9373 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRemoteException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRemoteException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRuntimeException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRuntimeException.java similarity index 89% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRuntimeException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRuntimeException.java index ddc55a474c56..a0522a4f9111 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsRuntimeException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsRuntimeException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsSecurityException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsSecurityException.java similarity index 89% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsSecurityException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsSecurityException.java index 0614f285f4f7..fc7551e90006 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsSecurityException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsSecurityException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsUnsupportedOperationException.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsUnsupportedOperationException.java similarity index 90% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsUnsupportedOperationException.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsUnsupportedOperationException.java index 4ebcdc82cf57..6c9b007a9ef5 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AdlsUnsupportedOperationException.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AdlsUnsupportedOperationException.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AppendModeType.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AppendModeType.java similarity index 94% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AppendModeType.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AppendModeType.java index a1b8b220e2f6..86daedecbc7a 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AppendModeType.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AppendModeType.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AzureAsyncOperationResult.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AzureAsyncOperationResult.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AzureAsyncOperationResult.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AzureAsyncOperationResult.java index d6fda767294f..1ba308a81069 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/AzureAsyncOperationResult.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/AzureAsyncOperationResult.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummary.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummary.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummary.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummary.java index 5d7ef6e5ac36..d7cbb2da9983 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummary.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummary.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummaryResultInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummaryResult.java similarity index 85% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummaryResultInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummaryResult.java index 93ba2905bb35..15382480ab42 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ContentSummaryResultInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ContentSummaryResult.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store filesystem content summary information response. */ -public class ContentSummaryResultInner { +public class ContentSummaryResult { /** * Gets the content summary for the specified path. */ diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccount.java similarity index 79% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccount.java index e6e2bbe19fd8..f0220050bed5 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccount.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; @@ -12,7 +12,7 @@ /** * Data Lake Store account information. */ -public class DataLakeStoreAccountInner { +public class DataLakeStoreAccount { /** * Gets or sets the account regional location. */ @@ -58,9 +58,9 @@ public String location() { * Set the location value. * * @param location the location value to set - * @return the DataLakeStoreAccountInner object itself. + * @return the DataLakeStoreAccount object itself. */ - public DataLakeStoreAccountInner withLocation(String location) { + public DataLakeStoreAccount withLocation(String location) { this.location = location; return this; } @@ -78,9 +78,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the DataLakeStoreAccountInner object itself. + * @return the DataLakeStoreAccount object itself. */ - public DataLakeStoreAccountInner withName(String name) { + public DataLakeStoreAccount withName(String name) { this.name = name; return this; } @@ -116,9 +116,9 @@ public Map tags() { * Set the tags value. * * @param tags the tags value to set - * @return the DataLakeStoreAccountInner object itself. + * @return the DataLakeStoreAccount object itself. */ - public DataLakeStoreAccountInner withTags(Map tags) { + public DataLakeStoreAccount withTags(Map tags) { this.tags = tags; return this; } @@ -136,9 +136,9 @@ public DataLakeStoreAccountProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the DataLakeStoreAccountInner object itself. + * @return the DataLakeStoreAccount object itself. */ - public DataLakeStoreAccountInner withProperties(DataLakeStoreAccountProperties properties) { + public DataLakeStoreAccount withProperties(DataLakeStoreAccountProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountProperties.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountProperties.java similarity index 97% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountProperties.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountProperties.java index 9b7fb55f6592..27c66f13a9a2 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountProperties.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountState.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountState.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountState.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountState.java index dfe3cfa52092..20ece08edb6b 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountState.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountState.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountStatus.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountStatus.java similarity index 96% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountStatus.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountStatus.java index cb1657bba9d2..b66c18886735 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/DataLakeStoreAccountStatus.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/DataLakeStoreAccountStatus.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/Error.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/Error.java similarity index 96% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/Error.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/Error.java index c17bea07696e..1fb1fbf3c4b8 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/Error.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/Error.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ErrorDetails.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ErrorDetails.java similarity index 94% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ErrorDetails.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ErrorDetails.java index 9561aa2ccea3..816936c153e7 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/ErrorDetails.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/ErrorDetails.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileOperationResultInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileOperationResult.java similarity index 85% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileOperationResultInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileOperationResult.java index e328ab533cba..a0d9db75e593 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileOperationResultInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileOperationResult.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * The result of the request or operation. */ -public class FileOperationResultInner { +public class FileOperationResult { /** * Gets the result of the operation or request. */ diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusProperties.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusProperties.java similarity index 97% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusProperties.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusProperties.java index ff1b73e8431f..32277c762fc2 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusProperties.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusResultInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusResult.java similarity index 86% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusResultInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusResult.java index cfcf21ab2fff..b62531469de7 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusResultInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusResult.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store filesystem file status information response. */ -public class FileStatusResultInner { +public class FileStatusResult { /** * Gets the file status object associated with the specified path. */ diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatuses.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatuses.java similarity index 90% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatuses.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatuses.java index c6a704ef59fb..e6c292e5eada 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatuses.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatuses.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusesResultInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusesResult.java similarity index 85% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusesResultInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusesResult.java index 7b6ba4520bdc..0829de85729f 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileStatusesResultInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileStatusesResult.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store filesystem file status list information response. */ -public class FileStatusesResultInner { +public class FileStatusesResult { /** * Gets the object representing the list of file statuses. */ diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileType.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileType.java similarity index 94% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileType.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileType.java index 923841bbc28e..62268df2ed3f 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FileType.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FileType.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleInner.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRule.java similarity index 79% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleInner.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRule.java index 23b263394fd5..c349d792b699 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleInner.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRule.java @@ -4,14 +4,14 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data Lake Store firewall rule information. */ -public class FirewallRuleInner { +public class FirewallRule { /** * Gets or sets the firewall rule's name. */ @@ -51,9 +51,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the FirewallRuleInner object itself. + * @return the FirewallRule object itself. */ - public FirewallRuleInner withName(String name) { + public FirewallRule withName(String name) { this.name = name; return this; } @@ -80,9 +80,9 @@ public String id() { * Set the id value. * * @param id the id value to set - * @return the FirewallRuleInner object itself. + * @return the FirewallRule object itself. */ - public FirewallRuleInner withId(String id) { + public FirewallRule withId(String id) { this.id = id; return this; } @@ -100,9 +100,9 @@ public String location() { * Set the location value. * * @param location the location value to set - * @return the FirewallRuleInner object itself. + * @return the FirewallRule object itself. */ - public FirewallRuleInner withLocation(String location) { + public FirewallRule withLocation(String location) { this.location = location; return this; } @@ -120,9 +120,9 @@ public FirewallRuleProperties properties() { * Set the properties value. * * @param properties the properties value to set - * @return the FirewallRuleInner object itself. + * @return the FirewallRule object itself. */ - public FirewallRuleInner withProperties(FirewallRuleProperties properties) { + public FirewallRule withProperties(FirewallRuleProperties properties) { this.properties = properties; return this; } diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleProperties.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRuleProperties.java similarity index 95% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleProperties.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRuleProperties.java index 3b4940ddc91e..c26a545d3c05 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/FirewallRuleProperties.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/FirewallRuleProperties.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; /** diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/InnerError.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/InnerError.java similarity index 92% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/InnerError.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/InnerError.java index 2f04899382cd..d9fee249ccbb 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/InnerError.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/InnerError.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/OperationStatus.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/OperationStatus.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/OperationStatus.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/OperationStatus.java index 5df24be3241e..5d146379ed57 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/OperationStatus.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/OperationStatus.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/PageImpl.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/PageImpl.java similarity index 95% rename from azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/PageImpl.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/PageImpl.java index 3935b023e245..dd300b4c640e 100644 --- a/azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/api/PageImpl.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/PageImpl.java @@ -4,7 +4,7 @@ * license information. */ -package com.microsoft.azure.management.datalake.analytics.implementation.api; +package com.microsoft.azure.management.datalake.store.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Page; diff --git a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/package-info.java b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java similarity index 56% rename from azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/package-info.java rename to azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java index 45caf8831ce2..fd951f765542 100644 --- a/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/implementation/api/package-info.java +++ b/azure-mgmt-datalake-store/src/main/java/com/microsoft/azure/management/datalake/store/models/package-info.java @@ -3,7 +3,7 @@ // license information. /** - * This package contains the implementation.api classes for DataLakeStoreFileSystemManagementClient. + * This package contains the models classes for DataLakeStoreFileSystemManagementClient. * Creates an Azure Data Lake Store filesystem client. */ -package com.microsoft.azure.management.datalake.store.implementation.api; +package com.microsoft.azure.management.datalake.store.models; diff --git a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountOperationsTests.java b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountOperationsTests.java index 2057eb51bd88..433e15ce82fb 100644 --- a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountOperationsTests.java +++ b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreAccountOperationsTests.java @@ -1,7 +1,7 @@ package com.microsoft.azure.management.datalake.store; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountProperties; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccountProperties; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import org.junit.AfterClass; import org.junit.Assert; @@ -38,14 +38,14 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception { // Create DataLakeStoreAccountProperties createProperties = new DataLakeStoreAccountProperties(); - DataLakeStoreAccountInner createParams = new DataLakeStoreAccountInner(); + DataLakeStoreAccount createParams = new DataLakeStoreAccount(); createParams.withLocation(location); createParams.withName(adlsAcct); createParams.withProperties(createProperties); createParams.withTags(new HashMap()); createParams.tags().put("testkey", "testvalue"); - DataLakeStoreAccountInner createResponse = dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, createParams).getBody(); + DataLakeStoreAccount createResponse = dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, createParams).getBody(); Assert.assertEquals(location, createResponse.location()); Assert.assertEquals("Microsoft.DataLakeStore/accounts", createResponse.type()); Assert.assertNotNull(createResponse.id()); @@ -55,7 +55,7 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception { // update the tags createParams.tags().put("testkey2", "testvalue2"); createParams.withProperties(null); - DataLakeStoreAccountInner updateResponse = dataLakeStoreAccountManagementClient.accounts().update(rgName, adlsAcct, createParams).getBody(); + DataLakeStoreAccount updateResponse = dataLakeStoreAccountManagementClient.accounts().update(rgName, adlsAcct, createParams).getBody(); Assert.assertEquals(location, updateResponse.location()); Assert.assertEquals("Microsoft.DataLakeStore/accounts", updateResponse.type()); Assert.assertNotNull(updateResponse.id()); @@ -63,7 +63,7 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception { Assert.assertEquals(2, updateResponse.tags().size()); // get the account - DataLakeStoreAccountInner getResponse = dataLakeStoreAccountManagementClient.accounts().get(rgName, adlsAcct).getBody(); + DataLakeStoreAccount getResponse = dataLakeStoreAccountManagementClient.accounts().get(rgName, adlsAcct).getBody(); Assert.assertEquals(location, getResponse.location()); Assert.assertEquals("Microsoft.DataLakeStore/accounts", getResponse.type()); Assert.assertNotNull(getResponse.id()); @@ -71,9 +71,9 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception { Assert.assertEquals(2, getResponse.tags().size()); // list all accounts and make sure there is one. - List listResult = dataLakeStoreAccountManagementClient.accounts().list().getBody(); - DataLakeStoreAccountInner discoveredAcct = null; - for (DataLakeStoreAccountInner acct : listResult) { + List listResult = dataLakeStoreAccountManagementClient.accounts().list().getBody(); + DataLakeStoreAccount discoveredAcct = null; + for (DataLakeStoreAccount acct : listResult) { if (acct.name().equals(adlsAcct)) { discoveredAcct = acct; break; @@ -93,7 +93,7 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception { // list within a resource group listResult = dataLakeStoreAccountManagementClient.accounts().listByResourceGroup(rgName).getBody(); discoveredAcct = null; - for (DataLakeStoreAccountInner acct : listResult) { + for (DataLakeStoreAccount acct : listResult) { if (acct.name().equals(adlsAcct)) { discoveredAcct = acct; break; diff --git a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFilesystemOperationsTests.java b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFilesystemOperationsTests.java index cbb0e81c5972..5331d5eb7085 100644 --- a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFilesystemOperationsTests.java +++ b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreFilesystemOperationsTests.java @@ -1,13 +1,13 @@ package com.microsoft.azure.management.datalake.store; import com.microsoft.azure.CloudException; -import com.microsoft.azure.management.datalake.store.implementation.api.AclStatusResultInner; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountInner; -import com.microsoft.azure.management.datalake.store.implementation.api.FileOperationResultInner; -import com.microsoft.azure.management.datalake.store.implementation.api.FileStatusProperties; -import com.microsoft.azure.management.datalake.store.implementation.api.FileStatusResultInner; -import com.microsoft.azure.management.datalake.store.implementation.api.FileStatusesResultInner; -import com.microsoft.azure.management.datalake.store.implementation.api.FileType; +import com.microsoft.azure.management.datalake.store.models.AclStatusResult; +import com.microsoft.azure.management.datalake.store.models.DataLakeStoreAccount; +import com.microsoft.azure.management.datalake.store.models.FileOperationResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusProperties; +import com.microsoft.azure.management.datalake.store.models.FileStatusResult; +import com.microsoft.azure.management.datalake.store.models.FileStatusesResult; +import com.microsoft.azure.management.datalake.store.models.FileType; import com.microsoft.azure.management.resources.implementation.api.ResourceGroupInner; import org.apache.commons.lang3.StringUtils; import org.junit.AfterClass; @@ -48,7 +48,7 @@ public static void setup() throws Exception { resourceManagementClient.resourceGroups().createOrUpdate(rgName, group); // create storage and ADLS accounts, setting the accessKey - DataLakeStoreAccountInner adlsAccount = new DataLakeStoreAccountInner(); + DataLakeStoreAccount adlsAccount = new DataLakeStoreAccount(); adlsAccount.withLocation(location); adlsAccount.withName(adlsAcct); dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, adlsAccount); @@ -148,7 +148,7 @@ public void DataLakeStoreFileSystemListFolderContents() throws Exception GetAndCompareFileOrFolder(adlsAcct, filePath, FileType.FILE, 0); // List all the contents in the folder - FileStatusesResultInner listFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().listFileStatus(adlsAcct, folderPath).getBody(); + FileStatusesResult listFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().listFileStatus(adlsAcct, folderPath).getBody(); // We know that this directory is brand new, so the contents should only be the one file. Assert.assertEquals(1, listFolderResponse.fileStatuses().fileStatus().size()); @@ -340,7 +340,7 @@ public void DataLakeStoreFileSystemMoveFileAndFolder() throws Exception // Move file first String fileToMove = "SDKTestMoveFile01.txt"; - FileOperationResultInner moveFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().rename( + FileOperationResult moveFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().rename( adlsAcct, filePath, String.format("%s/%s", targetFolder1, fileToMove)).getBody(); @@ -360,7 +360,7 @@ public void DataLakeStoreFileSystemMoveFileAndFolder() throws Exception } // Now move folder completely. - FileOperationResultInner moveFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().rename( + FileOperationResult moveFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().rename( adlsAcct, targetFolder1, targetFolder2).getBody(); @@ -371,7 +371,7 @@ public void DataLakeStoreFileSystemMoveFileAndFolder() throws Exception // ensure all the contents of the folder moved // List all the contents in the folder - FileStatusesResultInner listFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().listFileStatus( + FileStatusesResult listFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().listFileStatus( adlsAcct, targetFolder2).getBody(); @@ -430,7 +430,7 @@ public void DataLakeStoreFileSystemDeleteFile() throws Exception @Test public void DataLakeStoreFileSystemGetAndSetAcl() throws Exception { - AclStatusResultInner currentAcl = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); + AclStatusResult currentAcl = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); List aclToReplaceWith = new ArrayList(currentAcl.aclStatus().entries()); String originalOther = ""; @@ -451,7 +451,7 @@ public void DataLakeStoreFileSystemGetAndSetAcl() throws Exception dataLakeStoreFileSystemManagementClient.fileSystems().setAcl(adlsAcct, "/", StringUtils.join(aclToReplaceWith, ",")); - AclStatusResultInner newAcl = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); + AclStatusResult newAcl = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); // verify the ACL actually changed // Check the access first and assert that it returns OK (note: this is currently only for the user making the request, so it is not testing "other") @@ -548,7 +548,7 @@ public void DataLakeStoreFileSystemSetFileProperties() throws Exception @Test public void DataLakeStoreFileSystemGetAcl() throws Exception { - AclStatusResultInner aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); + AclStatusResult aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); Assert.assertNotNull(aclGetResponse.aclStatus()); Assert.assertTrue(aclGetResponse.aclStatus().entries().size() > 0); @@ -559,7 +559,7 @@ public void DataLakeStoreFileSystemGetAcl() throws Exception @Test public void DataLakeStoreFileSystemSetAcl() throws Exception { - AclStatusResultInner aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); + AclStatusResult aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); Assert.assertNotNull(aclGetResponse.aclStatus()); Assert.assertTrue(aclGetResponse.aclStatus().entries().size() > 0); @@ -596,7 +596,7 @@ public void DataLakeStoreFileSystemSetAcl() throws Exception @Test public void DataLakeStoreFileSystemSetDeleteAclEntry() throws Exception { - AclStatusResultInner aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); + AclStatusResult aclGetResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getAclStatus(adlsAcct, "/").getBody(); Assert.assertNotNull(aclGetResponse.aclStatus()); Assert.assertTrue(aclGetResponse.aclStatus().entries().size() > 0); @@ -659,7 +659,7 @@ private String CreateFolder(String caboAccountName, boolean randomName) throws E ? generateName(folderToCreate) : folderToCreate; - FileOperationResultInner response = dataLakeStoreFileSystemManagementClient.fileSystems().mkdirs(caboAccountName, folderPath).getBody(); + FileOperationResult response = dataLakeStoreFileSystemManagementClient.fileSystems().mkdirs(caboAccountName, folderPath).getBody(); Assert.assertTrue(response.operationResult()); return folderPath; @@ -688,9 +688,9 @@ private String CreateFile(String caboAccountName, boolean withContents, boolean return filePath; } - private FileStatusResultInner GetAndCompareFileOrFolder(String caboAccountName, String fileOrFolderPath, FileType expectedType, long expectedLength) throws Exception + private FileStatusResult GetAndCompareFileOrFolder(String caboAccountName, String fileOrFolderPath, FileType expectedType, long expectedLength) throws Exception { - FileStatusResultInner getResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getFileStatus(caboAccountName, fileOrFolderPath).getBody(); + FileStatusResult getResponse = dataLakeStoreFileSystemManagementClient.fileSystems().getFileStatus(caboAccountName, fileOrFolderPath).getBody(); Assert.assertEquals(expectedLength, (long) getResponse.fileStatus().length()); Assert.assertEquals(expectedType, getResponse.fileStatus().type()); @@ -726,7 +726,7 @@ private void DeleteFolder(String caboAccountName, String folderPath, boolean rec // try to delete a folder that doesn't exist or should fail try { - FileOperationResultInner deleteFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, folderPath, recursive).getBody(); + FileOperationResult deleteFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, folderPath, recursive).getBody(); Assert.assertTrue(!deleteFolderResponse.operationResult()); } catch (Exception e) @@ -737,7 +737,7 @@ private void DeleteFolder(String caboAccountName, String folderPath, boolean rec else { // Delete a folder - FileOperationResultInner deleteFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, folderPath, recursive).getBody(); + FileOperationResult deleteFolderResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, folderPath, recursive).getBody(); Assert.assertTrue(deleteFolderResponse.operationResult()); } } @@ -749,7 +749,7 @@ private void DeleteFile(String caboAccountName, String filePath, boolean failure // try to delete a file that doesn't exist try { - FileOperationResultInner deleteFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, filePath, false).getBody(); + FileOperationResult deleteFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, filePath, false).getBody(); Assert.assertTrue(!deleteFileResponse.operationResult()); } catch (Exception e) @@ -760,7 +760,7 @@ private void DeleteFile(String caboAccountName, String filePath, boolean failure else { // Delete a file - FileOperationResultInner deleteFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, filePath, false).getBody(); + FileOperationResult deleteFileResponse = dataLakeStoreFileSystemManagementClient.fileSystems().delete(caboAccountName, filePath, false).getBody(); Assert.assertTrue(deleteFileResponse.operationResult()); } } diff --git a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreManagementTestBase.java b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreManagementTestBase.java index 91f18a3f06eb..310b652dbf0d 100644 --- a/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreManagementTestBase.java +++ b/azure-mgmt-datalake-store/src/test/java/com/microsoft/azure/management/datalake/store/DataLakeStoreManagementTestBase.java @@ -2,8 +2,8 @@ import com.microsoft.azure.credentials.AzureEnvironment; import com.microsoft.azure.credentials.UserTokenCredentials; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreAccountManagementClientImpl; -import com.microsoft.azure.management.datalake.store.implementation.api.DataLakeStoreFileSystemManagementClientImpl; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreAccountManagementClientImpl; +import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreFileSystemManagementClientImpl; import com.microsoft.azure.management.resources.implementation.api.ResourceManagementClientImpl; import com.microsoft.rest.RestClient; import okhttp3.logging.HttpLoggingInterceptor; diff --git a/gulpfile.js b/gulpfile.js index 7a1ce8c26b90..20066adb9e1e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -47,27 +47,32 @@ var mappings = { 'datalake.store.filesystem': { 'dir': 'azure-mgmt-datalake-store', 'source': 'arm-datalake-store/filesystem/2015-10-01-preview/swagger/filesystem.json', - 'package': 'com.microsoft.azure.management.datalake.store' + 'package': 'com.microsoft.azure.management.datalake.store', + 'fluent': false }, 'datalake.store.account': { 'dir': 'azure-mgmt-datalake-store', 'source': 'arm-datalake-store/account/2015-10-01-preview/swagger/account.json', - 'package': 'com.microsoft.azure.management.datalake.store' + 'package': 'com.microsoft.azure.management.datalake.store', + 'fluent': false }, 'datalake.analytics.account': { 'dir': 'azure-mgmt-datalake-analytics', 'source': 'arm-datalake-analytics/account/2015-10-01-preview/swagger/account.json', - 'package': 'com.microsoft.azure.management.datalake.analytics' + 'package': 'com.microsoft.azure.management.datalake.analytics', + 'fluent': false }, 'datalake.analytics.job': { 'dir': 'azure-mgmt-datalake-analytics', 'source': 'arm-datalake-analytics/job/2016-03-20-preview/swagger/job.json', - 'package': 'com.microsoft.azure.management.datalake.analytics' + 'package': 'com.microsoft.azure.management.datalake.analytics', + 'fluent': false }, 'datalake.analytics.catalog': { 'dir': 'azure-mgmt-datalake-analytics', 'source': 'arm-datalake-analytics/catalog/2015-10-01-preview/swagger/catalog.json', - 'package': 'com.microsoft.azure.management.datalake.analytics' + 'package': 'com.microsoft.azure.management.datalake.analytics', + 'fluent': false }, 'batchService': { 'dir': 'azure-batch', diff --git a/runtimes/azure-android-client-authentication/build.gradle b/runtimes/azure-android-client-authentication/build.gradle index 24d340936121..2651d8389383 100644 --- a/runtimes/azure-android-client-authentication/build.gradle +++ b/runtimes/azure-android-client-authentication/build.gradle @@ -114,4 +114,4 @@ task javadocJar(type: Jar, dependsOn: [javadoc]) { artifacts { archives sourcesJar archives javadocJar -} \ No newline at end of file +} diff --git a/runtimes/azure-client-authentication/build.gradle b/runtimes/azure-client-authentication/build.gradle index 7c4d070dc10a..2b40ada004e0 100644 --- a/runtimes/azure-client-authentication/build.gradle +++ b/runtimes/azure-client-authentication/build.gradle @@ -95,4 +95,4 @@ test { reports.html.destination = file("${projectDir}/../../../TestResults/JavaAzureRuntime") } -tasks.compileJava.dependsOn 'clean' \ No newline at end of file +tasks.compileJava.dependsOn 'clean' diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java index f6eaecdb4467..62a760acb4a0 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/AzureClient.java @@ -77,7 +77,7 @@ public ServiceResponse getPutOrPatchResult(Response respons int statusCode = response.code(); ResponseBody responseBody; - if (response.isSuccess()) { + if (response.isSuccessful()) { responseBody = response.body(); } else { responseBody = response.errorBody(); @@ -164,7 +164,7 @@ public AsyncPollingTask getPutOrPatchResultAsync(Response r int statusCode = response.code(); ResponseBody responseBody; - if (response.isSuccess()) { + if (response.isSuccessful()) { responseBody = response.body(); } else { responseBody = response.errorBody(); @@ -252,7 +252,7 @@ public ServiceResponse getPostOrDeleteResult(Response respo int statusCode = response.code(); ResponseBody responseBody; - if (response.isSuccess()) { + if (response.isSuccessful()) { responseBody = response.body(); } else { responseBody = response.errorBody(); @@ -337,7 +337,7 @@ public AsyncPollingTask getPostOrDeleteResultAsync(Response int statusCode = response.code(); ResponseBody responseBody; - if (response.isSuccess()) { + if (response.isSuccessful()) { responseBody = response.body(); } else { responseBody = response.errorBody(); @@ -730,7 +730,7 @@ public Integer getLongRunningOperationRetryTimeout() { * * @param longRunningOperationRetryTimeout the time in milliseconds. */ - public void setLongRunningOperationRetryTimeout(Integer longRunningOperationRetryTimeout) { + public void withLongRunningOperationRetryTimeout(Integer longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; } diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGNode.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGNode.java index 438e4d5c8b75..ccc700618e58 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGNode.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGNode.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; import java.util.ArrayList; diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGraph.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGraph.java index 388d5599c59c..8b10bde8b3e3 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGraph.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/DAGraph.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; import java.util.ArrayDeque; diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Graph.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Graph.java index a4f2c03cde59..0cf8e2a7d231 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Graph.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Graph.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; import java.util.HashMap; diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Node.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Node.java index e7c4a83768b0..3dc61d8065f6 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Node.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/Node.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; import java.util.ArrayList; diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroup.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroup.java index cf522afe9e92..94b4628ff70a 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroup.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroup.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; /** diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroupBase.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroupBase.java index e939e9ae2666..d0dc430edc3a 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroupBase.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskGroupBase.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; /** diff --git a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskItem.java b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskItem.java index bd40a810a5fe..7df830f69bb9 100644 --- a/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskItem.java +++ b/runtimes/azure-client-runtime/src/main/java/com/microsoft/azure/TaskItem.java @@ -1,3 +1,10 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + package com.microsoft.azure; /** diff --git a/runtimes/azure-client-runtime/src/test/java/com/microsoft/azure/DAGraphTests.java b/runtimes/azure-client-runtime/src/test/java/com/microsoft/azure/DAGraphTests.java new file mode 100644 index 000000000000..e368b04c89db --- /dev/null +++ b/runtimes/azure-client-runtime/src/test/java/com/microsoft/azure/DAGraphTests.java @@ -0,0 +1,152 @@ +/** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + */ + +package com.microsoft.azure; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +public class DAGraphTests { + @Test + public void testDAGraphGetNext() { + /** + * |-------->[D]------>[B]-----------[A] + * | ^ ^ + * | | | + * [F]------->[E]-------| | + * | | | + * | |------->[G]----->[C]---- + * | + * |-------->[H]-------------------->[I] + */ + List expectedOrder = new ArrayList<>(); + expectedOrder.add("A"); expectedOrder.add("I"); + expectedOrder.add("B"); expectedOrder.add("C"); expectedOrder.add("H"); + expectedOrder.add("D"); expectedOrder.add("G"); + expectedOrder.add("E"); + expectedOrder.add("F"); + + DAGNode nodeA = new DAGNode<>("A", "dataA"); + DAGNode nodeI = new DAGNode<>("I", "dataI"); + + DAGNode nodeB = new DAGNode<>("B", "dataB"); + nodeB.addDependency(nodeA.key()); + + DAGNode nodeC = new DAGNode<>("C", "dataC"); + nodeC.addDependency(nodeA.key()); + + DAGNode nodeH = new DAGNode<>("H", "dataH"); + nodeH.addDependency(nodeI.key()); + + DAGNode nodeG = new DAGNode<>("G", "dataG"); + nodeG.addDependency(nodeC.key()); + + DAGNode nodeE = new DAGNode<>("E", "dataE"); + nodeE.addDependency(nodeB.key()); + nodeE.addDependency(nodeG.key()); + + DAGNode nodeD = new DAGNode<>("D", "dataD"); + nodeD.addDependency(nodeB.key()); + + + DAGNode nodeF = new DAGNode<>("F", "dataF"); + nodeF.addDependency(nodeD.key()); + nodeF.addDependency(nodeE.key()); + nodeF.addDependency(nodeH.key()); + + DAGraph> dag = new DAGraph<>(nodeF); + dag.addNode(nodeA); + dag.addNode(nodeB); + dag.addNode(nodeC); + dag.addNode(nodeD); + dag.addNode(nodeE); + dag.addNode(nodeG); + dag.addNode(nodeH); + dag.addNode(nodeI); + + dag.populateDependentKeys(); + DAGNode nextNode = dag.getNext(); + int i = 0; + while (nextNode != null) { + Assert.assertEquals(nextNode.key(), expectedOrder.get(i)); + dag.reportedCompleted(nextNode); + nextNode = dag.getNext(); + i++; + } + + System.out.println("done"); + } + + @Test + public void testGraphMerge() { + /** + * |-------->[D]------>[B]-----------[A] + * | ^ ^ + * | | | + * [F]------->[E]-------| | + * | | | + * | |------->[G]----->[C]---- + * | + * |-------->[H]-------------------->[I] + */ + List expectedOrder = new ArrayList<>(); + expectedOrder.add("A"); expectedOrder.add("I"); + expectedOrder.add("B"); expectedOrder.add("C"); expectedOrder.add("H"); + expectedOrder.add("D"); expectedOrder.add("G"); + expectedOrder.add("E"); + expectedOrder.add("F"); + + DAGraph> graphA = createGraph("A"); + DAGraph> graphI = createGraph("I"); + + DAGraph> graphB = createGraph("B"); + graphA.merge(graphB); + + DAGraph> graphC = createGraph("C"); + graphA.merge(graphC); + + DAGraph> graphH = createGraph("H"); + graphI.merge(graphH); + + DAGraph> graphG = createGraph("G"); + graphC.merge(graphG); + + DAGraph> graphE = createGraph("E"); + graphB.merge(graphE); + graphG.merge(graphE); + + DAGraph> graphD = createGraph("D"); + graphB.merge(graphD); + + DAGraph> graphF = createGraph("F"); + graphD.merge(graphF); + graphE.merge(graphF); + graphH.merge(graphF); + + DAGraph> dag = graphF; + dag.prepare(); + + DAGNode nextNode = dag.getNext(); + int i = 0; + while (nextNode != null) { + Assert.assertEquals(expectedOrder.get(i), nextNode.key()); + // Process the node + dag.reportedCompleted(nextNode); + nextNode = dag.getNext(); + i++; + } + } + + private DAGraph> createGraph(String resourceName) { + DAGNode node = new DAGNode<>(resourceName, "data" + resourceName); + DAGraph> graph = new DAGraph<>(node); + return graph; + } +} diff --git a/runtimes/client-runtime/build.gradle b/runtimes/client-runtime/build.gradle index a163e9a9f89f..73750c0d3d93 100644 --- a/runtimes/client-runtime/build.gradle +++ b/runtimes/client-runtime/build.gradle @@ -23,14 +23,12 @@ checkstyle { dependencies { compile 'com.google.guava:guava:18.0' - compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4' - compile 'com.squareup.okhttp3:okhttp:3.2.0' - compile 'com.squareup.okio:okio:1.7.0' - compile 'com.squareup.okhttp3:logging-interceptor:3.1.1' - compile 'com.squareup.okhttp3:okhttp-urlconnection:3.1.1' - compile 'com.squareup.retrofit2:converter-jackson:2.0.0-beta4' - compile 'com.fasterxml.jackson.core:jackson-databind:2.7.1' - compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.7.1' + compile 'com.squareup.retrofit2:retrofit:2.0.2' + compile 'com.squareup.okhttp3:okhttp:3.3.1' + compile 'com.squareup.okhttp3:logging-interceptor:3.3.1' + compile 'com.squareup.okhttp3:okhttp-urlconnection:3.3.1' + compile 'com.squareup.retrofit2:converter-jackson:2.0.2' + compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.7.2' compile 'org.apache.commons:commons-lang3:3.4' testCompile 'junit:junit:4.12' testCompile 'junit:junit-dep:4.11' diff --git a/runtimes/client-runtime/pom.xml b/runtimes/client-runtime/pom.xml index a7c0b7441b02..e63a421434b3 100644 --- a/runtimes/client-runtime/pom.xml +++ b/runtimes/client-runtime/pom.xml @@ -59,10 +59,6 @@ com.squareup.okhttp3 okhttp - - com.squareup.okio - okio - com.squareup.okhttp3 logging-interceptor @@ -75,10 +71,6 @@ com.squareup.retrofit2 converter-jackson - - com.fasterxml.jackson.core - jackson-databind - com.fasterxml.jackson.datatype jackson-datatype-joda diff --git a/runtimes/client-runtime/src/main/java/com/microsoft/rest/AutoRestBaseUrl.java b/runtimes/client-runtime/src/main/java/com/microsoft/rest/AutoRestBaseUrl.java deleted file mode 100644 index d89aa6852f4f..000000000000 --- a/runtimes/client-runtime/src/main/java/com/microsoft/rest/AutoRestBaseUrl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - */ - -package com.microsoft.rest; - -import java.util.HashMap; -import java.util.Map; - -import okhttp3.HttpUrl; -import retrofit2.BaseUrl; - -/** - * An instance of this class stores information of the host of a service. - */ -public class AutoRestBaseUrl implements BaseUrl { - /** A template based URL with variables wrapped in {}s. */ - private String template; - /** a mapping from {} wrapped variables in the template and their actual values. */ - private Map mappings; - - @Override - public HttpUrl url() { - String url = template; - for (Map.Entry entry : mappings.entrySet()) { - url = url.replace(entry.getKey(), entry.getValue()); - } - mappings.clear(); - return HttpUrl.parse(url); - } - - /** - * Creates an instance of a template based URL. - * - * @param url the template based URL to use. - */ - public AutoRestBaseUrl(String url) { - this.template = url; - this.mappings = new HashMap<>(); - } - - /** - * Sets the value for the {} wrapped variables in the template URL. - * @param matcher the {} wrapped variable to replace. - * @param value the value to set for the variable. - */ - public void set(CharSequence matcher, String value) { - this.mappings.put(matcher, value); - } -} diff --git a/runtimes/client-runtime/src/main/java/com/microsoft/rest/BaseUrlHandler.java b/runtimes/client-runtime/src/main/java/com/microsoft/rest/BaseUrlHandler.java index f04cbc17edd8..46eacbd472e2 100644 --- a/runtimes/client-runtime/src/main/java/com/microsoft/rest/BaseUrlHandler.java +++ b/runtimes/client-runtime/src/main/java/com/microsoft/rest/BaseUrlHandler.java @@ -15,67 +15,29 @@ import okhttp3.Response; /** - * An instance of class handles dynamic base URLs in the HTTP pipeline. + * Handles dynamic replacements on base URL. The arguments must be in pairs + * with the string in raw URL to replace as replacements[i] and the dynamic + * part as replacements[i+1]. E.g. {subdomain}.microsoft.com can be set + * dynamically by setting header x-ms-parameterized-host: "{subdomain}, azure" */ public class BaseUrlHandler implements Interceptor { - /** The URL template for the dynamic URL. */ - private final String rawUrl; - /** The base URL after applying the variable replacements. */ - private String baseUrl; - - /** - * Creates an instance of this class with a URL template. - * - * @param rawUrl the URL template with variables wrapped in "{" and "}". - */ - public BaseUrlHandler(String rawUrl) { - this.rawUrl = rawUrl; - this.baseUrl = null; - } - - /** - * Gets the base URL. - * - * @return the URL template if it's not a dynamic URL or variables in a - * dynamic URL haven't been set. The compiled URL otherwise. - */ - public String baseUrl() { - if (this.baseUrl == null) { - return rawUrl; - } - return this.baseUrl; - } - - /** - * Handles dynamic replacements on base URL. The arguments must be in pairs - * with the string in raw URL to replace as replacements[i] and the dynamic - * part as replacements[i+1]. E.g. {subdomain}.microsoft.com can be set - * dynamically by calling setBaseUrl("{subdomain}", "azure"). - * - * @param replacements the string replacements in pairs. - */ - public void setBaseUrl(String... replacements) { - if (replacements.length % 2 != 0) { - throw new IllegalArgumentException("Must provide a replacement value for each pattern"); - } - baseUrl = rawUrl; - for (int i = 0; i < replacements.length; i += 2) { - baseUrl = baseUrl.replace(replacements[i], replacements[i + 1]); - } - } - @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request(); - if (baseUrl != null) { + String parameters = request.header("x-ms-parameterized-host"); + if (parameters != null && !parameters.isEmpty()) { + String[] replacements = parameters.split(", "); + if (replacements.length % 2 != 0) { + throw new IllegalArgumentException("Must provide a replacement value for each pattern"); + } + String baseUrl = request.url().toString(); + for (int i = 0; i < replacements.length; i += 2) { + baseUrl = baseUrl.replaceAll("(?i)\\Q" + replacements[i] + "\\E", replacements[i + 1]); + } HttpUrl baseHttpUrl = HttpUrl.parse(baseUrl); - HttpUrl newUrl = request.url().newBuilder() - .host(baseHttpUrl.host()) - .scheme(baseHttpUrl.scheme()) - .port(baseHttpUrl.port()) - .build(); request = request.newBuilder() - .url(newUrl) + .url(baseHttpUrl) + .removeHeader("x-ms-parameterized-host") .build(); } return chain.proceed(request); diff --git a/runtimes/client-runtime/src/main/java/com/microsoft/rest/RestClient.java b/runtimes/client-runtime/src/main/java/com/microsoft/rest/RestClient.java index 0d5436b4fa6e..254639642345 100644 --- a/runtimes/client-runtime/src/main/java/com/microsoft/rest/RestClient.java +++ b/runtimes/client-runtime/src/main/java/com/microsoft/rest/RestClient.java @@ -91,33 +91,6 @@ public Retrofit retrofit() { return retrofit; } - /** - * Get the base URL currently set. If it's a customizable URL, the updated - * URL instead of the raw one might be returned. - * - * @return the base URL. -<<<<<<< HEAD - * @see {@link RestClient#setBaseUrl(String...)} -======= - * @see RestClient#setBaseUrl(String...) ->>>>>>> fddca6a8917951772a65a3e5b47c5e72c1f42fb5 - */ - public String baseUrl() { - return baseUrlHandler.baseUrl(); - } - - /** - * Handles dynamic replacements on base URL. The arguments must be in pairs - * with the string in raw URL to replace as replacements[i] and the dynamic - * part as replacements[i+1]. E.g. {subdomain}.microsoft.com can be set - * dynamically by calling setBaseUrl("{subdomain}", "azure"). - * - * @param replacements the string replacements in pairs. - */ - public void setBaseUrl(String... replacements) { - baseUrlHandler.setBaseUrl(replacements); - } - /** * Get the credentials attached to this REST client. * @@ -175,7 +148,7 @@ public Builder(String baseUrl, OkHttpClient.Builder httpClientBuilder, Retrofit. CookieManager cookieManager = new CookieManager(); cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL); customHeadersInterceptor = new CustomHeadersInterceptor(); - baseUrlHandler = new BaseUrlHandler(baseUrl); + baseUrlHandler = new BaseUrlHandler(); userAgentInterceptor = new UserAgentInterceptor(); // Set up OkHttp client this.httpClientBuilder = httpClientBuilder diff --git a/runtimes/client-runtime/src/main/java/com/microsoft/rest/ServiceResponseBuilder.java b/runtimes/client-runtime/src/main/java/com/microsoft/rest/ServiceResponseBuilder.java index b6e057a0e607..3ad57cb938f4 100644 --- a/runtimes/client-runtime/src/main/java/com/microsoft/rest/ServiceResponseBuilder.java +++ b/runtimes/client-runtime/src/main/java/com/microsoft/rest/ServiceResponseBuilder.java @@ -132,7 +132,7 @@ public ServiceResponse build(Response response) throws E, IOExc int statusCode = response.code(); ResponseBody responseBody; - if (response.isSuccess()) { + if (response.isSuccessful()) { responseBody = response.body(); } else { responseBody = response.errorBody(); @@ -140,7 +140,7 @@ public ServiceResponse build(Response response) throws E, IOExc if (responseTypes.containsKey(statusCode)) { return new ServiceResponse<>((T) buildBody(statusCode, responseBody), response); - } else if (response.isSuccess() && responseTypes.size() == 1) { + } else if (response.isSuccessful() && responseTypes.size() == 1) { return new ServiceResponse<>((T) buildBody(statusCode, responseBody), response); } else { try { @@ -175,7 +175,7 @@ public ServiceResponse buildEmpty(Response response) throws E, IOExcept int statusCode = response.code(); if (responseTypes.containsKey(statusCode)) { return new ServiceResponse<>(response); - } else if (response.isSuccess() && responseTypes.size() == 1) { + } else if (response.isSuccessful() && responseTypes.size() == 1) { return new ServiceResponse<>(response); } else { try { diff --git a/runtimes/pom.xml b/runtimes/pom.xml index 51a8ab8ffdcc..aa77260c5893 100644 --- a/runtimes/pom.xml +++ b/runtimes/pom.xml @@ -79,42 +79,32 @@ com.squareup.retrofit2 retrofit - 2.0.0-beta4 + 2.0.2 com.squareup.okhttp3 okhttp - 3.2.0 - - - com.squareup.okio - okio - 1.7.0 + 3.3.1 com.squareup.okhttp3 logging-interceptor - 3.1.1 + 3.3.1 com.squareup.okhttp3 okhttp-urlconnection - 3.1.1 + 3.3.1 com.squareup.retrofit2 converter-jackson - 2.0.0-beta4 - - - com.fasterxml.jackson.core - jackson-databind - 2.7.1 + 2.0.2 com.fasterxml.jackson.datatype jackson-datatype-joda - 2.7.1 + 2.7.2 org.apache.commons