use of com.microsoft.azure.management.appservice.SkuName in project azure-sdk-for-java by Azure.
the class WebSiteManagementClientImpl method listGeoRegionsSinglePageAsync.
/**
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<GeoRegionInner> object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<GeoRegionInner>>> listGeoRegionsSinglePageAsync() {
if (this.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2016-03-01";
final SkuName sku = null;
final Boolean linuxWorkersEnabled = null;
return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, apiVersion, this.acceptLanguage(), this.userAgent()).flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<GeoRegionInner>>>>() {
@Override
public Observable<ServiceResponse<Page<GeoRegionInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<GeoRegionInner>> result = listGeoRegionsDelegate(response);
return Observable.just(new ServiceResponse<Page<GeoRegionInner>>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
}
}
});
}
Aggregations