Skip to content

Commit c5477e1

Browse files
committed
Merge pull request Azure#533 from Azure/dev
[Release 0.8.3] Merge dev into master
2 parents 8bd5952 + 78287b7 commit c5477e1

File tree

916 files changed

+25467
-8936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

916 files changed

+25467
-8936
lines changed

ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2015.9.22 Version 0.8.3
2+
* Fix unexpected exceptions thrown in some long running operations
3+
4+
2015.9.22 Version 0.8.2
5+
* Revert a previous breaking change on enum casing
6+
* Fix string comparison on long running operation status
7+
18
2015.9.15 Version 0.8.1
29
* Use commons library for Base64 encoding
310

azure-mgmt-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>com.microsoft.azure</groupId>
1919
<artifactId>azure</artifactId>
20-
<version>0.8.2-SNAPSHOT</version>
20+
<version>0.8.4-SNAPSHOT</version>
2121
<relativePath>../azure/pom.xml</relativePath>
2222
</parent>
2323

azure-mgmt-samples/src/main/java/com/microsoft/azure/samples/storage/StorageAccountExample.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,24 @@
1616

1717
package com.microsoft.azure.samples.storage;
1818

19-
import com.microsoft.azure.management.storage.models.*;
19+
import com.microsoft.azure.management.storage.StorageManagementClient;
20+
import com.microsoft.azure.management.storage.StorageManagementService;
21+
import com.microsoft.azure.management.storage.models.AccountType;
22+
import com.microsoft.azure.management.storage.models.KeyName;
23+
import com.microsoft.azure.management.storage.models.StorageAccount;
24+
import com.microsoft.azure.management.storage.models.StorageAccountCreateParameters;
25+
import com.microsoft.azure.management.storage.models.StorageAccountKeys;
26+
import com.microsoft.azure.management.storage.models.StorageAccountRegenerateKeyResponse;
27+
import com.microsoft.azure.management.storage.models.StorageAccountUpdateResponse;
2028
import com.microsoft.azure.utility.AuthHelper;
21-
import com.microsoft.azure.utility.StorageHelper;
2229
import com.microsoft.azure.utility.ResourceContext;
23-
30+
import com.microsoft.azure.utility.StorageHelper;
2431
import com.microsoft.windowsazure.Configuration;
2532
import com.microsoft.windowsazure.management.configuration.ManagementConfiguration;
2633

27-
import com.microsoft.azure.management.storage.StorageManagementClient;
28-
import com.microsoft.azure.management.storage.StorageManagementService;
29-
30-
import java.net.SocketTimeoutException;
34+
import java.net.URI;
3135
import java.util.HashMap;
3236
import java.util.List;
33-
import java.util.Map;
34-
import java.net.URI;
3537

3638
public class StorageAccountExample {
3739
/**
@@ -130,9 +132,9 @@ public static void main(String[] args) throws Exception {
130132
} else {
131133
KeyName keyName = null;
132134
if (args[3].toLowerCase().equals("primary")) {
133-
keyName = KeyName.KEY1;
135+
keyName = KeyName.Key1;
134136
} else if (args[3].toLowerCase().equals("secondary")) {
135-
keyName = KeyName.KEY2;
137+
keyName = KeyName.Key2;
136138
}
137139
if (keyName == null) {
138140
result = -1;
@@ -210,15 +212,15 @@ private static void displayUsageAndExit(String command) {
210212

211213
private static AccountType accountTypeStrToVal(String accountType) {
212214
if(accountType.toLowerCase().equals("standard_grs")) {
213-
return AccountType.STANDARDGRS;
215+
return AccountType.StandardGRS;
214216
} else if(accountType.toLowerCase().equals("standard_ragrs")) {
215-
return AccountType.STANDARDRAGRS;
217+
return AccountType.StandardRAGRS;
216218
} else if(accountType.toLowerCase().equals("standard_lrs")) {
217-
return AccountType.STANDARDLRS;
219+
return AccountType.StandardLRS;
218220
} else if(accountType.toLowerCase().equals("standard_zrs")) {
219-
return AccountType.STANDARDZRS;
221+
return AccountType.StandardZRS;
220222
} else if(accountType.toLowerCase().equals("premium_lrs")) {
221-
return AccountType.PREMIUMLRS;
223+
return AccountType.PremiumLRS;
222224
}
223225

224226
return null;
@@ -337,9 +339,9 @@ private static int regenerateStorageAccountKey(StorageManagementClient client,
337339
StorageAccountRegenerateKeyResponse response = StorageHelper.regenerateStorageAccountKey(client, context,
338340
keyName);
339341
if(response != null) {
340-
System.out.println("Key " + (keyName == KeyName.KEY1 ? "Primary" : "Secondary") + " regenerated.");
342+
System.out.println("Key " + (keyName == KeyName.Key1 ? "Primary" : "Secondary") + " regenerated.");
341343
StorageAccountKeys keys = response.getStorageAccountKeys();
342-
System.out.println("Key Value: " + (keyName == KeyName.KEY1 ? keys.getKey1() : keys.getKey2()));
344+
System.out.println("Key Value: " + (keyName == KeyName.Key1 ? keys.getKey1() : keys.getKey2()));
343345
}
344346

345347
return (response == null ? 1 : 0);

azure-mgmt-samples/src/main/java/com/microsoft/azure/samples/templatedeployments/CreateTemplateDeploymentExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static void main(String[] args) {
8080
DeploymentExtended deployment = ResourceHelper.createTemplateDeploymentFromURI(
8181
resourceManagementClient,
8282
resourceGroupName,
83-
DeploymentMode.INCREMENTAL,
83+
DeploymentMode.Incremental,
8484
deploymentName,
8585
TEMPLATE_URI,
8686
"1.0.0.0",

azure-mgmt-samples/src/main/java/com/microsoft/azure/samples/templatedeployments/ListTemplateDeploymentExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.microsoft.azure.management.resources.ResourceManagementClient;
55
import com.microsoft.azure.management.resources.ResourceManagementService;
66
import com.microsoft.azure.management.resources.models.DeploymentExtended;
7-
import com.microsoft.azure.management.resources.models.DeploymentListResult;
87
import com.microsoft.azure.management.resources.models.ResourceGroupExtended;
98
import com.microsoft.azure.utility.AuthHelper;
109
import com.microsoft.windowsazure.Configuration;

azure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<modelVersion>4.0.0</modelVersion>
1717
<parent>
1818
<groupId>com.microsoft.azure</groupId>
19-
<version>0.8.2-SNAPSHOT</version>
19+
<version>0.8.4-SNAPSHOT</version>
2020
<artifactId>azure-bom</artifactId>
2121
</parent>
2222

core/azure-core-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>com.microsoft.azure</groupId>
1919
<artifactId>azure</artifactId>
20-
<version>0.8.2-SNAPSHOT</version>
20+
<version>0.8.4-SNAPSHOT</version>
2121
<relativePath>../../azure/pom.xml</relativePath>
2222
</parent>
2323

core/azure-core-test/src/main/java/com/microsoft/windowsazure/MockIntegrationTestBase.java

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
import com.microsoft.windowsazure.core.pipeline.filter.ServiceResponseFilter;
1515
import com.microsoft.windowsazure.management.configuration.ManagementConfiguration;
1616
import org.apache.commons.io.IOUtils;
17-
import org.apache.http.*;
17+
import org.apache.http.Header;
18+
import org.apache.http.HttpRequest;
19+
import org.apache.http.HttpRequestInterceptor;
20+
import org.apache.http.HttpResponse;
21+
import org.apache.http.HttpResponseInterceptor;
22+
import org.apache.http.HttpStatus;
1823
import org.apache.http.entity.BufferedHttpEntity;
1924
import org.apache.http.impl.client.HttpClientBuilder;
2025
import org.apache.http.protocol.HttpContext;
@@ -29,14 +34,25 @@
2934
import java.lang.reflect.Field;
3035
import java.net.URI;
3136
import java.net.URL;
32-
import java.util.*;
37+
import java.util.ArrayList;
38+
import java.util.HashMap;
39+
import java.util.LinkedList;
40+
import java.util.List;
41+
import java.util.Map;
3342
import java.util.Map.Entry;
3443
import java.util.concurrent.Callable;
3544
import java.util.regex.Matcher;
3645
import java.util.regex.Pattern;
3746
import java.util.zip.GZIPInputStream;
3847

39-
import static com.github.tomakehurst.wiremock.client.WireMock.*;
48+
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
49+
import static com.github.tomakehurst.wiremock.client.WireMock.delete;
50+
import static com.github.tomakehurst.wiremock.client.WireMock.get;
51+
import static com.github.tomakehurst.wiremock.client.WireMock.patch;
52+
import static com.github.tomakehurst.wiremock.client.WireMock.post;
53+
import static com.github.tomakehurst.wiremock.client.WireMock.put;
54+
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
55+
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
4056

4157
public class MockIntegrationTestBase {
4258
protected final static Boolean IS_MOCKED = System.getenv(ManagementConfiguration.AZURE_TEST_MODE) == null ||

core/azure-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>com.microsoft.azure</groupId>
1919
<artifactId>azure</artifactId>
20-
<version>0.8.2-SNAPSHOT</version>
20+
<version>0.8.4-SNAPSHOT</version>
2121
<relativePath>../../azure/pom.xml</relativePath>
2222
</parent>
2323

core/azure-core/src/main/java/com/microsoft/windowsazure/Configuration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
import com.microsoft.windowsazure.core.Builder;
1919
import com.microsoft.windowsazure.core.DefaultBuilder;
20+
import org.apache.commons.logging.Log;
21+
import org.apache.commons.logging.LogFactory;
22+
2023
import java.io.IOException;
2124
import java.io.InputStream;
2225
import java.util.HashMap;
2326
import java.util.Map;
2427
import java.util.Properties;
2528

26-
import org.apache.commons.logging.Log;
27-
import org.apache.commons.logging.LogFactory;
28-
2929
public class Configuration {
3030
/**
3131
* Property name for socket connection timeout used by services created with

0 commit comments

Comments
 (0)