Skip to content

Commit

Permalink
Generated from 286a116acf24a1d9213a1075d7544aa7d7985a2e
Browse files Browse the repository at this point in the history
added extension
  • Loading branch information
SDK Automation committed Jan 31, 2020
1 parent 42e3e90 commit d325a7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions sdk/locks/mgmt-v2016_09_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-locks</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Authorization Management</name>
<description>This package contains Microsoft Authorization Management SDK.</description>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,14 @@ public ManagementLockObject getByResourceGroup(String resourceGroupName, String

@Override
public Observable<ManagementLockObject> getByResourceGroupAsync(String resourceGroupName, String name) {
return this.getInnerAsync(resourceGroupName, name).map(new Func1<ManagementLockObjectInner, ManagementLockObject> () {
return this.getInnerAsync(resourceGroupName, name).flatMap(new Func1<ManagementLockObjectInner, Observable<ManagementLockObject>> () {
@Override
public ManagementLockObject call(ManagementLockObjectInner innerT) {
return wrapModel(innerT);
public Observable<ManagementLockObject> call(ManagementLockObjectInner innerT) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((ManagementLockObject)wrapModel(innerT));
}
}
});
}
Expand Down

0 comments on commit d325a7e

Please sign in to comment.