Skip to content

Commit

Permalink
Generated from 13b235cccbe934e60dba491a2a49edcae9c7f275 (#3027)
Browse files Browse the repository at this point in the history
Fix Hosting Environment Network Dependencies pagination
  • Loading branch information
AutorestCI authored Mar 5, 2019
1 parent 8484d9e commit df442bb
Show file tree
Hide file tree
Showing 3 changed files with 370 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public interface AppServiceEnvironments {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<InboundEnvironmentEndpoint> getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name);
Observable<InboundEnvironmentEndpoint> getInboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String name);

/**
* Get global metric definitions of an App Service Environment.
Expand Down Expand Up @@ -423,7 +423,7 @@ public interface AppServiceEnvironments {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<OutboundEnvironmentEndpoint> getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name);
Observable<OutboundEnvironmentEndpoint> getOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String name);

/**
* Get all App Service plans in an App Service Environment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ public HostingEnvironmentDiagnostics call(HostingEnvironmentDiagnosticsInner inn
}

@Override
public Observable<InboundEnvironmentEndpoint> getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) {
public Observable<InboundEnvironmentEndpoint> getInboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String name) {
AppServiceEnvironmentsInner client = this.inner();
return client.getInboundNetworkDependenciesEndpointsAsync(resourceGroupName, name)
.flatMap(new Func1<List<InboundEnvironmentEndpointInner>, Observable<InboundEnvironmentEndpointInner>>() {
.flatMapIterable(new Func1<Page<InboundEnvironmentEndpointInner>, Iterable<InboundEnvironmentEndpointInner>>() {
@Override
public Observable<InboundEnvironmentEndpointInner> call(List<InboundEnvironmentEndpointInner> innerList) {
return Observable.from(innerList);
public Iterable<InboundEnvironmentEndpointInner> call(Page<InboundEnvironmentEndpointInner> page) {
return page.items();
}
})
.map(new Func1<InboundEnvironmentEndpointInner, InboundEnvironmentEndpoint>() {
Expand Down Expand Up @@ -654,13 +654,13 @@ public Operation call(OperationInner inner) {
}

@Override
public Observable<OutboundEnvironmentEndpoint> getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) {
public Observable<OutboundEnvironmentEndpoint> getOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String name) {
AppServiceEnvironmentsInner client = this.inner();
return client.getOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, name)
.flatMap(new Func1<List<OutboundEnvironmentEndpointInner>, Observable<OutboundEnvironmentEndpointInner>>() {
.flatMapIterable(new Func1<Page<OutboundEnvironmentEndpointInner>, Iterable<OutboundEnvironmentEndpointInner>>() {
@Override
public Observable<OutboundEnvironmentEndpointInner> call(List<OutboundEnvironmentEndpointInner> innerList) {
return Observable.from(innerList);
public Iterable<OutboundEnvironmentEndpointInner> call(Page<OutboundEnvironmentEndpointInner> page) {
return page.items();
}
})
.map(new Func1<OutboundEnvironmentEndpointInner, OutboundEnvironmentEndpoint>() {
Expand Down
Loading

0 comments on commit df442bb

Please sign in to comment.