From 6e4fbe8809e68f5755a7853ff5b7afd1da21b9f9 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 14 Feb 2020 03:46:26 +0000 Subject: [PATCH] Generated from b5202928605e36dfe6a8be699e0399a088073792 Add missing properties from list tenants API --- sdk/locks/mgmt-v2016_09_01/pom.xml | 6 ++++-- .../implementation/ManagementLocksImpl.java | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sdk/locks/mgmt-v2016_09_01/pom.xml b/sdk/locks/mgmt-v2016_09_01/pom.xml index 2637e85580679..fda6e54aa3442 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.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-locks - 1.0.0-beta-2 + 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 4ca0f80c12c30..c4e51236b7b79 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)); + } } }); }