Skip to content

Commit

Permalink
Generated from b7fa71077406ef102eee82870ab0165773076a8f
Browse files Browse the repository at this point in the history
Merge pull request #35 from leonardbf/ANF-440-2019-10-01

ANF-440 correct 2019-10-01 API
  • Loading branch information
SDK Automation committed Dec 5, 2019
1 parent 02692b6 commit 0764405
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
4 changes: 3 additions & 1 deletion sdk/netapp/mgmt-v2017_08_15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<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-netapp</artifactId>
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 @@ -64,10 +64,14 @@ public CapacityPool call(CapacityPoolInner inner) {
public Observable<CapacityPool> getAsync(String resourceGroupName, String accountName, String poolName) {
PoolsInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, poolName)
.map(new Func1<CapacityPoolInner, CapacityPool>() {
.flatMap(new Func1<CapacityPoolInner, Observable<CapacityPool>>() {
@Override
public CapacityPool call(CapacityPoolInner inner) {
return wrapModel(inner);
public Observable<CapacityPool> call(CapacityPoolInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((CapacityPool)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public Snapshot call(SnapshotInner inner) {
public Observable<Snapshot> getAsync(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName) {
SnapshotsInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName)
.map(new Func1<SnapshotInner, Snapshot>() {
.flatMap(new Func1<SnapshotInner, Observable<Snapshot>>() {
@Override
public Snapshot call(SnapshotInner inner) {
return wrapModel(inner);
public Observable<Snapshot> call(SnapshotInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Snapshot)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public Volume call(VolumeInner inner) {
public Observable<Volume> getAsync(String resourceGroupName, String accountName, String poolName, String volumeName) {
VolumesInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, poolName, volumeName)
.map(new Func1<VolumeInner, Volume>() {
.flatMap(new Func1<VolumeInner, Observable<Volume>>() {
@Override
public Volume call(VolumeInner inner) {
return wrapModel(inner);
public Observable<Volume> call(VolumeInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Volume)wrapModel(inner));
}
}
});
}
Expand Down

0 comments on commit 0764405

Please sign in to comment.