-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add implementation for Azure Container Instance service (#1897)
* Add initial definitions for the Fluent based implementation of Azure Container Instance. * Add get method for log content; refactor some of the Fluent interfaces based on private feedback. * Add implementation for the Impl classes, test case and test session record * changed Beta tags to reference 1.3 add sample scheleton for container instance * Address review feedback Implement auto creation for Azure file share referenced as mounted volumes inside the container instance. Add samples * version changes * Address review feedback. Add tests for the new samples and recordings. * address review feedbacl plus skip some of the sample tests due to HTTP calls into the data plane which can not be properly recorded at this time. * fix for unit test * small tweaks to comments
- Loading branch information
1 parent
b97c802
commit 2ffb89e
Showing
54 changed files
with
7,130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
<parent> | ||
<groupId>com.microsoft.azure</groupId> | ||
<artifactId>azure-parent</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>azure-mgmt-containerinstance</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<name>Microsoft Azure SDK for Container Instance Management</name> | ||
<description>This package contains Microsoft Azure Container Instance 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:[email protected]: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-mgmt-resources</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
</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-storage</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.microsoft.azure</groupId> | ||
<artifactId>azure-mgmt-resources</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.microsoft.azure</groupId> | ||
<artifactId>azure-mgmt-storage</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.microsoft.azure</groupId> | ||
<artifactId>azure-storage</artifactId> | ||
<version>4.4.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<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.storage</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> |
121 changes: 121 additions & 0 deletions
121
...tance/src/main/java/com/microsoft/azure/management/containerinstance/AzureFileVolume.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
/** | ||
* 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.containerinstance; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The Azure file volume. | ||
*/ | ||
public class AzureFileVolume { | ||
/** | ||
* The Azure file share name. | ||
*/ | ||
@JsonProperty(value = "shareName", required = true) | ||
private String shareName; | ||
|
||
/** | ||
* The flag indicating whether the Azure file volume is read only. | ||
*/ | ||
@JsonProperty(value = "readOnly") | ||
private Boolean readOnly; | ||
|
||
/** | ||
* The storage account name to access to the Azure file. | ||
*/ | ||
@JsonProperty(value = "storageAccountName", required = true) | ||
private String storageAccountName; | ||
|
||
/** | ||
* The storage account key to access to the Azure file. | ||
*/ | ||
@JsonProperty(value = "storageAccountKey") | ||
private String storageAccountKey; | ||
|
||
/** | ||
* Get the shareName value. | ||
* | ||
* @return the shareName value | ||
*/ | ||
public String shareName() { | ||
return this.shareName; | ||
} | ||
|
||
/** | ||
* Set the shareName value. | ||
* | ||
* @param shareName the shareName value to set | ||
* @return the AzureFileVolume object itself. | ||
*/ | ||
public AzureFileVolume withShareName(String shareName) { | ||
this.shareName = shareName; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the readOnly value. | ||
* | ||
* @return the readOnly value | ||
*/ | ||
public Boolean readOnly() { | ||
return this.readOnly; | ||
} | ||
|
||
/** | ||
* Set the readOnly value. | ||
* | ||
* @param readOnly the readOnly value to set | ||
* @return the AzureFileVolume object itself. | ||
*/ | ||
public AzureFileVolume withReadOnly(Boolean readOnly) { | ||
this.readOnly = readOnly; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the storageAccountName value. | ||
* | ||
* @return the storageAccountName value | ||
*/ | ||
public String storageAccountName() { | ||
return this.storageAccountName; | ||
} | ||
|
||
/** | ||
* Set the storageAccountName value. | ||
* | ||
* @param storageAccountName the storageAccountName value to set | ||
* @return the AzureFileVolume object itself. | ||
*/ | ||
public AzureFileVolume withStorageAccountName(String storageAccountName) { | ||
this.storageAccountName = storageAccountName; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the storageAccountKey value. | ||
* | ||
* @return the storageAccountKey value | ||
*/ | ||
public String storageAccountKey() { | ||
return this.storageAccountKey; | ||
} | ||
|
||
/** | ||
* Set the storageAccountKey value. | ||
* | ||
* @param storageAccountKey the storageAccountKey value to set | ||
* @return the AzureFileVolume object itself. | ||
*/ | ||
public AzureFileVolume withStorageAccountKey(String storageAccountKey) { | ||
this.storageAccountKey = storageAccountKey; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.