From 7b9bcd825f685ff36812192eee51225fd0aa646e Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 3 Aug 2020 06:45:27 +0000 Subject: [PATCH] Generated from c3a90c0abee697c4bf35922ccc94f2d43740fd96 Use camel case enum name --- sdk/locks/mgmt-v2016_09_01/pom.xml | 8 +++++--- .../implementation/ManagementLocksImpl.java | 10 +++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sdk/locks/mgmt-v2016_09_01/pom.xml b/sdk/locks/mgmt-v2016_09_01/pom.xml index 6ab29623e1f9..fda6e54aa344 100644 --- a/sdk/locks/mgmt-v2016_09_01/pom.xml +++ b/sdk/locks/mgmt-v2016_09_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.3.0 - ../../parents/azure-arm-parent + 1.1.0 + ../../../pom.management.xml azure-mgmt-locks - 1.0.0-beta-3 + 1.0.0-beta jar Microsoft Azure SDK for Authorization Management This package contains Microsoft Authorization Management SDK. @@ -71,6 +71,8 @@ azure-arm-client-runtime test-jar test + + 1.6.5 diff --git a/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java b/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java index 4ca0f80c12c3..c4e51236b7b7 100644 --- a/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java +++ b/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java @@ -244,10 +244,14 @@ public ManagementLockObject getByResourceGroup(String resourceGroupName, String @Override public Observable getByResourceGroupAsync(String resourceGroupName, String name) { - return this.getInnerAsync(resourceGroupName, name).map(new Func1 () { + return this.getInnerAsync(resourceGroupName, name).flatMap(new Func1> () { @Override - public ManagementLockObject call(ManagementLockObjectInner innerT) { - return wrapModel(innerT); + public Observable call(ManagementLockObjectInner innerT) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((ManagementLockObject)wrapModel(innerT)); + } } }); }