Skip to content

Commit

Permalink
CodeGen from PR 11712 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 90ef14ad8206b370768344c6a98fb77681e76114 into 22f1bcd60133ac06ec9aaa109758237b7506c9f8
  • Loading branch information
SDKAuto committed Nov 23, 2020
1 parent 87d97a9 commit 2452d2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 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.3.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-locks</artifactId>
<version>1.0.0-beta-3</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 2452d2e

Please sign in to comment.