Skip to content

Commit

Permalink
Update to 1.0.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwu1 committed Feb 23, 2017
1 parent 2af9a96 commit 939af5b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#Azure Batch Libraries for Java

This README is based on the latest released preview version Azure Batch SDK (1.0.0-beta2). If you are looking for other releases, see [More Information](#more-information)
This README is based on the latest released version Azure Batch SDK (1.0.0). If you are looking for other releases, see [More Information](#more-information)

The Azure Batch Libraries for Java is a higher-level, object-oriented API for interacting with the Azure Batch service.


> **1.0.0-beta2** is a developer preview that supports major parts of Azure Batch. The next preview version of the Azure Batch Libraries for Java is a work in-progress. We will be adding support for more new featuresand tweaking the API over the next few months.
> **1.0.0** is a release that supports all features of Azure Batch service with API version "2017-01-01.4.0". We will be adding support for more new features and tweaking the API associated with Azure Batch service newer release.
**Azure Batch Authentication**

Expand All @@ -16,7 +16,7 @@ The `BatchClient` class is the simplest entry point for creating and interacting

```java
BatchSharedKeyCredentials cred = new BatchSharedKeyCredentials(batchUri, batchAccount, batchKey);
BatchClient client = BatchClient.Open(cred);
BatchClient client = BatchClient.open(cred);
```

**Create a pool using an Azure Marketplace image**
Expand All @@ -27,8 +27,8 @@ You can create a pool of Azure virtual machines which can be used to execute tas
System.out.println("Created a pool using an Azure Marketplace image.");

VirtualMachineConfiguration configuration = new VirtualMachineConfiguration();
configuration.setNodeAgentSKUId(skuId).setImageReference(imageRef);
client.getPoolOperations().createPool(poolId, poolVMSize, configuration, poolVMCount);
configuration.withNodeAgentSKUId(skuId).withImageReference(imageRef);
client.poolOperations().createPool(poolId, poolVMSize, configuration, poolVMCount);

System.out.println("Created a Pool: " + poolId);
```
Expand All @@ -39,8 +39,8 @@ You can create a job by using the recently created pool.

```java
PoolInformation poolInfo = new PoolInformation();
poolInfo.setPoolId(poolId);
client.getJobOperations().createJob(jobId, poolInfo);
poolInfo.withPoolId(poolId);
client.jobOperations().createJob(jobId, poolInfo);
```

#Sample Code
Expand All @@ -51,25 +51,25 @@ You can find sample code that illustrates Batch usage scenarios in https://githu
# Download


**1.0.0-beta2**
**1.0.0**

If you are using released builds from 1.0.0-beta2, add the following to your POM file:
If you are using released builds from 1.0.0, add the following to your POM file:

```xml
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-batch</artifactId>
<version>1.0.0-beta2</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.rest</groupId>
<artifactId>client-runtime</artifactId>
<version>1.0.0-beta2</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.0.0-beta2</version>
<version>1.0.0</version>
</dependency>
```

Expand Down Expand Up @@ -103,11 +103,8 @@ If you would like to become an active contributor to this project please follow

| Version | SHA1 | Remarks |
|-------------------|-------------------------------------------------------------------------------------------|-------------------------------------------------------|
| 1.0.0-beta2 | [1.0.0-beta2](https://github.com/Azure/azure-sdk-for-java/tree/1.0.0-beta2) | Tagged release for 1.0.0-beta2 version of Azure management libraries |
| 1.0.0-beta1 | [1.0.0-beta1](https://github.com/Azure/azure-sdk-for-java/tree/1.0.0-beta1) | Maintenance branch for AutoRest generated raw clients |
| 1.0.0-beta1+fixes | [v1.0.0-beta1+fixes](https://github.com/Azure/azure-sdk-for-java/tree/v1.0.0-beta1+fixes) | Stable build for AutoRest generated raw clients |
| 0.9.x-SNAPSHOTS | [0.9](https://github.com/Azure/azure-sdk-for-java/tree/0.9) | Maintenance branch for service management libraries |
| 0.9.3 | [v0.9.3](https://github.com/Azure/azure-sdk-for-java/tree/v0.9.3) | Latest release for service management libraries |
| 1.0.0 | [1.0.0](https://github.com/Azure/azure-sdk-for-java/tree/master) | Tagged release for 1.0.0 version of Azure Batch libraries |
| 1.0.0-beta2 | [1.0.0-beta2](https://github.com/Azure/azure-sdk-for-java/tree/1.0.0-beta2) | Tagged release for 1.0.0-beta2 version of Azure Batch libraries |

---

Expand Down
17 changes: 2 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-batch</artifactId>
<packaging>jar</packaging>
<version>1.0.0-beta6-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>

<name>Microsoft Azure Batch SDK Root</name>
<description>This package contains the root module of Microsoft Azure Batch SDK.</description>
Expand Down Expand Up @@ -40,24 +40,11 @@
</developer>
</developers>

<repositories>
<repository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.0.0-rc-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand Down

0 comments on commit 939af5b

Please sign in to comment.