Skip to content

Commit

Permalink
Add data lake analytics and store (#2477)
Browse files Browse the repository at this point in the history
* Add data lake analytics and store

* Update poms for data lake libraries
  • Loading branch information
jianghaolu authored Oct 10, 2018
1 parent c9cf6a2 commit 3615a8d
Show file tree
Hide file tree
Showing 238 changed files with 36,174 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
"source": "specification/containerregistry/resource-manager/readme.md",
"args": "--multiapi=true --fluent=true"
},
"datalakeanalytics/resource-manager": {
"source": "specification/datalake-analytics/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"datalakestore/resource-manager": {
"source": "specification/datalake-store/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
"dns/resource-manager": {
"source": "specification/dns/resource-manager/readme.md",
"args": "--multiapi --fluent"
Expand Down
133 changes: 133 additions & 0 deletions datalakeanalytics/resource-manager/v2015_10_01_preview/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!--
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure.datalakeanalytics.v2015_10_01_preview</groupId>
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-datalakeanalytics</artifactId>
<version>1.0.0-beta-2</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DataLakeAnalytics Management</name>
<description>This package contains Microsoft DataLakeAnalytics Management SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-mgmt-resources</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<annotationProcessors>
<annotationProcessor>
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
</annotationProcessor>
</annotationProcessors>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
<bottom>
<![CDATA[<code>
/**
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
<br />* Licensed under the MIT License. See License.txt in the project root for
<br />* license information.
<br />*/
</code>]]>
</bottom>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview;

import com.microsoft.azure.arm.collection.SupportsCreating;
import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
import rx.Completable;
import com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview.implementation.AccountsInner;
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview.StorageAccountInfo;
import com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview.BlobContainer;
import com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview.DataLakeStoreAccountInfo;

/**
* Type representing Accounts.
*/
public interface Accounts extends SupportsCreating<DataLakeAnalyticsAccount.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<DataLakeAnalyticsAccount>, SupportsListingByResourceGroup<DataLakeAnalyticsAccount>, SupportsListing<DataLakeAnalyticsAccount>, HasInner<AccountsInner> {
/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable addStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable addDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, AddDataLakeStoreParameters parameters);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<StorageAccountInfo> getStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<StorageAccountInfo> listStorageAccountsAsync(final String resourceGroupName, final String accountName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName);

/**
* Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
*
* @param resourceGroupName The name of the Azure resource group 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable updateStorageAccountAsync(String resourceGroupName, String accountName, String storageAccountName, AddStorageAccountParameters parameters);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BlobContainer> getStorageContainerAsync(String resourceGroupName, String accountName, String storageAccountName, String containerName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BlobContainer> listStorageContainersAsync(final String resourceGroupName, final String accountName, final String storageAccountName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SasTokenInfo> listSasTokensAsync(final String resourceGroupName, final String accountName, final String storageAccountName, final String containerName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DataLakeStoreAccountInfo> getDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<DataLakeStoreAccountInfo> listDataLakeStoreAccountsAsync(final String resourceGroupName, final String accountName);

/**
* 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 IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteDataLakeStoreAccountAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datalakeanalytics.v2015_10_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Additional Data Lake Store parameters.
*/
public class AddDataLakeStoreParameters {
/**
* the properties for the Data Lake Store account being added.
*/
@JsonProperty(value = "properties", required = true)
private DataLakeStoreAccountInfoProperties properties;

/**
* Get the properties for the Data Lake Store account being added.
*
* @return the properties value
*/
public DataLakeStoreAccountInfoProperties properties() {
return this.properties;
}

/**
* Set the properties for the Data Lake Store account being added.
*
* @param properties the properties value to set
* @return the AddDataLakeStoreParameters object itself.
*/
public AddDataLakeStoreParameters withProperties(DataLakeStoreAccountInfoProperties properties) {
this.properties = properties;
return this;
}

}
Loading

0 comments on commit 3615a8d

Please sign in to comment.