Skip to content

Commit

Permalink
Update to Latest Rest API (Azure#30)
Browse files Browse the repository at this point in the history
* Update Java SDK to use latest rest api

* update spacing

* Update changelog

* Update Note in changelog

* Remove extra import

* Infer Batch URL for BatchServiceClient from credentials

* Update invalid javadoc comments

* Update invalid javadoc comments

* Update changelog for blobPrefix
  • Loading branch information
bgklein authored and xingwu1 committed Dec 19, 2018
1 parent 0df7929 commit 94ccd53
Show file tree
Hide file tree
Showing 335 changed files with 4,550 additions and 3,363 deletions.
29 changes: 15 additions & 14 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 version Azure Batch SDK (4.0.1). If you are looking for other releases, see the [More Information](#more-information) section below.
This README is based on the latest released version Azure Batch SDK (5.0.0). If you are looking for other releases, see the [More Information](#more-information) section below.

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


> **4.0.1** is a release that supports all features of Azure Batch service with API version "2018-08-01.7.1". We will be adding support for more new features and tweaking the API associated with Azure Batch service newer release.
> **5.0.0** is a release that supports all features of Azure Batch service with API version "2018-12-01.8.1". We will be adding support for more new features and tweaking the API associated with Azure Batch service newer release.
**Azure Batch Authentication**

Expand Down Expand Up @@ -60,20 +60,20 @@ You can find sample code that illustrates Batch usage scenarios in https://githu
# Download


**4.0.1**
**5.0.0**

If you are using released builds from 4.0.1, add the following to your POM file:
If you are using released builds from 5.0.0, add the following to your POM file:

```xml
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-batch</artifactId>
<version>4.0.1</version>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.6.1</version>
<version>1.6.4</version>
</dependency>
```

Expand Down Expand Up @@ -124,14 +124,15 @@ Then run any test in src/test/java directory.

| Version | SHA1 | Remarks |
|-------------------|-------------------------------------------------------------------------------------------|-------------------------------------------------------|
| 4.0.1 | [4.0.1](https://github.com/Azure/azure-batch-sdk-for-java/tree/master) | Tagged release for 4.0.1 version of Azure Batch libraries |
| 4.0.0 | [4.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v4.0.0) | Tagged release for 4.0.0 version of Azure Batch libraries |
| 3.2.0 | [3.2.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.2.0) | Tagged release for 3.2.0 version of Azure Batch libraries |
| 3.1.0 | [3.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.1.0) | Tagged release for 3.1.0 version of Azure Batch libraries |
| 3.0.0 | [3.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.0.0) | Tagged release for 3.0.0 version of Azure Batch libraries |
| 2.1.0 | [2.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.1.0) | Tagged release for 2.1.0 version of Azure Batch libraries |
| 2.0.0 | [2.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.0.0) | Tagged release for 2.0.0 version of Azure Batch libraries |
| 1.0.0 | [1.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v1.0.0) | Tagged release for 1.0.0 version of Azure Batch libraries |
| 5.0.0 | [5.0.0](https://github.com/Azure/azure-batch-sdk-for-java/tree/master) | Tagged release for 5.0.0 version of Azure Batch libraries |
| 4.0.1 | [4.0.1](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v4.0.1) | Tagged release for 4.0.1 version of Azure Batch libraries |
| 4.0.0 | [4.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v4.0.0) | Tagged release for 4.0.0 version of Azure Batch libraries |
| 3.2.0 | [3.2.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.2.0) | Tagged release for 3.2.0 version of Azure Batch libraries |
| 3.1.0 | [3.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.1.0) | Tagged release for 3.1.0 version of Azure Batch libraries |
| 3.0.0 | [3.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.0.0) | Tagged release for 3.0.0 version of Azure Batch libraries |
| 2.1.0 | [2.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.1.0) | Tagged release for 2.1.0 version of Azure Batch libraries |
| 2.0.0 | [2.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.0.0) | Tagged release for 2.0.0 version of Azure Batch libraries |
| 1.0.0 | [1.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v1.0.0) | 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
26 changes: 26 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Azure Batch SDK for Java release notes

## Changes in 5.0.0
### Features
- **[Breaking]** Removed support for the `ChangeOSVersion` API on `CloudServiceConfiguration` pools.
- Removed `PoolOperations.ChangeOSVersion`.
- Renamed `TargetOSVersion` to `OSVersion` and removed `CurrentOSVersion` on `CloudPool`.
- Removed `PoolState.Upgrading` enum.
- **[Breaking]** Removed `DataEgressGiB` and `DataIngressGiB` from `PoolUsageMetrics`. These properties are no longer supported.
- **[Breaking]** ResourceFile improvements
- Added the ability specify an entire Azure Storage container in `ResourceFile`. There are now three supported modes for `ResourceFile`:
- `ResourceFile.withUrl` creates a `ResourceFile` pointing to a single HTTP URL.
- `ResourceFile.withStorageContainerUrl` creates a `ResourceFile` pointing to an Azure Blob Storage container.
- `ResourceFile.withAutoStorageContainer` creates a `ResourceFile` pointing to an Azure Blob Storage container in the Batch registered auto-storage account.
- The `BlobPrefix` property can be used to filter downloads from a storage container to only those matching the prefix.
- URLs provided to `ResourceFile` via the `ResourceFile.withUrl` method can now be any HTTP URL. Previously, these had to be an Azure Blob Storage URL.
- **[Breaking]** Removed `OSDisk` property from `VirtualMachineConfiguration`. This property is no longer supported.
- Pools which set the `DynamicVNetAssignmentScope` on `NetworkConfiguration` to be `DynamicVNetAssignmentScope.Job` can
now dynamically assign a Virtual Network to each node the job's tasks run on. The specific Virtual Network to join the nodes to is specified in
the new `JobNetworkConfiguration` property on `CloudJob` and `JobSpecification`.
- Note: This feature is in public preview. It is disabled for all Batch accounts except for those which have contacted us and requested to be in the pilot.
- The maximum lifetime of a task is now 180 days (previously it was 7).
- Added support on Windows pools for creating users with a specific login mode (either `Batch` or `Interactive`) via `WindowsUserConfiguration.LoginMode`.
- The default task retention time for all tasks is now 7 days, previously it was infinite.

### REST API version
This version of the Batch .NET client library targets version 2018-12-01.8.0 of the Azure Batch REST API.

## Changes in 4.0.1
### Fixes
- Fix missing signing of 4.0.0 Java SDK binary
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.6.1</version>
<version>1.6.4</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand All @@ -67,7 +67,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>4.0.0</version>
<version>8.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/azure/batch/BatchClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public <T, E extends RestException> ResponseBuilder<T, E> newInstance(Serializer
}
})
.build();
this.protocolLayer = new BatchServiceClientImpl(restClient);
this.protocolLayer = new BatchServiceClientImpl(restClient).withBatchUrl(credentials.baseUrl());
this.customBehaviors = new LinkedList<>();
this.customBehaviors.add(new ClientRequestIdInterceptor());
this.certificateOperations = new CertificateOperations(this, customBehaviors());
Expand Down
Loading

0 comments on commit 94ccd53

Please sign in to comment.