Skip to content

Commit

Permalink
updated azure-arm-client-runtime test jar dependency (Azure#4219)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored Jul 2, 2019
1 parent 0e9a985 commit 69f562b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 2 additions & 0 deletions netapp/resource-manager/v2019_06_01/pom.xml
Original file line number Diff line number Diff line change
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 69f562b

Please sign in to comment.