Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.network.TagsObject; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List; import java.util.Map; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.PATCH; import retrofit2.http.Path; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Query; import retrofit2.http.Url; import retrofit2.Response; import rx.functions.Func1; import rx.Observable; import com.microsoft.azure.LongRunningFinalState; import com.microsoft.azure.LongRunningOperationOptions;
An instance of this class provides access to all the operations defined in ExpressRouteCrossConnections.
/** * An instance of this class provides access to all the operations defined * in ExpressRouteCrossConnections. */
public class ExpressRouteCrossConnectionsInner implements InnerSupportsGet<ExpressRouteCrossConnectionInner>, InnerSupportsListing<ExpressRouteCrossConnectionInner> {
The Retrofit service to perform REST calls.
/** The Retrofit service to perform REST calls. */
private ExpressRouteCrossConnectionsService service;
The service client containing this operation class.
/** The service client containing this operation class. */
private NetworkManagementClientImpl client;
Initializes an instance of ExpressRouteCrossConnectionsInner.
Params:
  • retrofit – the Retrofit instance built from a Retrofit Builder.
  • client – the instance of the service client containing this operation class.
/** * Initializes an instance of ExpressRouteCrossConnectionsInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */
public ExpressRouteCrossConnectionsInner(Retrofit retrofit, NetworkManagementClientImpl client) { this.service = retrofit.create(ExpressRouteCrossConnectionsService.class); this.client = client; }
The interface defining all the services for ExpressRouteCrossConnections to be used by Retrofit to perform actually REST calls.
/** * The interface defining all the services for ExpressRouteCrossConnections to be * used by Retrofit to perform actually REST calls. */
interface ExpressRouteCrossConnectionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections") Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections") Observable<Response<ResponseBody>> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable<Response<ResponseBody>> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Body ExpressRouteCrossConnectionInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") Observable<Response<ResponseBody>> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject crossConnectionParameters, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}") Observable<Response<ResponseBody>> listArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections beginListArpTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}") Observable<Response<ResponseBody>> beginListArpTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable<Response<ResponseBody>> listRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections beginListRoutesTableSummary" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") Observable<Response<ResponseBody>> beginListRoutesTableSummary(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}") Observable<Response<ResponseBody>> listRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections beginListRoutesTable" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}") Observable<Response<ResponseBody>> beginListRoutesTable(@Path("resourceGroupName") String resourceGroupName, @Path("crossConnectionName") String crossConnectionName, @Path("peeringName") String peeringName, @Path("devicePath") String devicePath, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listNext" }) @GET Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRouteCrossConnections listByResourceGroupNext" }) @GET Observable<Response<ResponseBody>> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
  • CloudException – thrown if the request is rejected by server
  • RuntimeException – all other wrapped checked exceptions if the request fails to be sent
Returns:the PagedList<ExpressRouteCrossConnectionInner> object if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object if successful. */
public PagedList<ExpressRouteCrossConnectionInner> list() { ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response = listSinglePageAsync().toBlocking().single(); return new PagedList<ExpressRouteCrossConnectionInner>(response.body()) { @Override public Page<ExpressRouteCrossConnectionInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<ExpressRouteCrossConnectionInner>> listAsync(final ListOperationCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(), new Func1<String, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<Page<ExpressRouteCrossConnectionInner>> listAsync() { return listWithServiceResponseAsync() .map(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Page<ExpressRouteCrossConnectionInner>>() { @Override public Page<ExpressRouteCrossConnectionInner> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response) { return response.body(); } }); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listWithServiceResponseAsync() { return listSinglePageAsync() .concatMap(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the PagedList<ExpressRouteCrossConnectionInner> object wrapped in ServiceResponse if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> result = listDelegate(response); return Observable.just(new ServiceResponse<Page<ExpressRouteCrossConnectionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ExpressRouteCrossConnectionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ExpressRouteCrossConnectionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object if successful. */
public PagedList<ExpressRouteCrossConnectionInner> listByResourceGroup(final String resourceGroupName) { ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); return new PagedList<ExpressRouteCrossConnectionInner>(response.body()) { @Override public Page<ExpressRouteCrossConnectionInner> nextPage(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param resourceGroupName The name of the resource group. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<ExpressRouteCrossConnectionInner>> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName), new Func1<String, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<Page<ExpressRouteCrossConnectionInner>> listByResourceGroupAsync(final String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName) .map(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Page<ExpressRouteCrossConnectionInner>>() { @Override public Page<ExpressRouteCrossConnectionInner> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response) { return response.body(); } }); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { return listByResourceGroupSinglePageAsync(resourceGroupName) .concatMap(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } }); }
Retrieves all the ExpressRouteCrossConnections in a resource group. ServiceResponse> * @param resourceGroupName The name of the resource group.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object wrapped in ServiceResponse if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse<Page<ExpressRouteCrossConnectionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> listByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ExpressRouteCrossConnectionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ExpressRouteCrossConnectionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets details about the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group (peering location of the circuit).
  • crossConnectionName – The name of the ExpressRouteCrossConnection (service key of the circuit).
Throws:
Returns:the ExpressRouteCrossConnectionInner object if successful.
/** * Gets details about the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionInner object if successful. */
public ExpressRouteCrossConnectionInner getByResourceGroup(String resourceGroupName, String crossConnectionName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, crossConnectionName).toBlocking().single().body(); }
Gets details about the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group (peering location of the circuit).
  • crossConnectionName – The name of the ExpressRouteCrossConnection (service key of the circuit).
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets details about the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionInner> getByResourceGroupAsync(String resourceGroupName, String crossConnectionName, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, crossConnectionName), serviceCallback); }
Gets details about the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group (peering location of the circuit).
  • crossConnectionName – The name of the ExpressRouteCrossConnection (service key of the circuit).
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Gets details about the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ExpressRouteCrossConnectionInner> getByResourceGroupAsync(String resourceGroupName, String crossConnectionName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, crossConnectionName).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionInner>, ExpressRouteCrossConnectionInner>() { @Override public ExpressRouteCrossConnectionInner call(ServiceResponse<ExpressRouteCrossConnectionInner> response) { return response.body(); } }); }
Gets details about the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group (peering location of the circuit).
  • crossConnectionName – The name of the ExpressRouteCrossConnection (service key of the circuit).
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Gets details about the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String crossConnectionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.getByResourceGroup(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCrossConnectionInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCrossConnectionInner> clientResponse = getByResourceGroupDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCrossConnectionInner> getByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCrossConnectionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCrossConnectionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the ExpressRouteCrossConnectionInner object if successful.
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionInner object if successful. */
public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters).toBlocking().last().body(); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionInner> createOrUpdateAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters), serviceCallback); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the observable for the request
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ExpressRouteCrossConnectionInner> createOrUpdateAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionInner>, ExpressRouteCrossConnectionInner>() { @Override public ExpressRouteCrossConnectionInner call(ServiceResponse<ExpressRouteCrossConnectionInner> response) { return response.body(); } }); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the observable for the request
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); final String apiVersion = "2019-11-01"; Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, crossConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ExpressRouteCrossConnectionInner>() { }.getType()); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the ExpressRouteCrossConnectionInner object if successful.
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionInner object if successful. */
public ExpressRouteCrossConnectionInner beginCreateOrUpdate(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters).toBlocking().single().body(); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionInner> beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters), serviceCallback); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ExpressRouteCrossConnectionInner> beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, crossConnectionName, parameters).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionInner>, ExpressRouteCrossConnectionInner>() { @Override public ExpressRouteCrossConnectionInner call(ServiceResponse<ExpressRouteCrossConnectionInner> response) { return response.body(); } }); }
Update the specified ExpressRouteCrossConnection.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • parameters – Parameters supplied to the update express route crossConnection operation.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Update the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); final String apiVersion = "2019-11-01"; return service.beginCreateOrUpdate(resourceGroupName, crossConnectionName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCrossConnectionInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCrossConnectionInner> clientResponse = beginCreateOrUpdateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCrossConnectionInner> beginCreateOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCrossConnectionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCrossConnectionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
Throws:
Returns:the ExpressRouteCrossConnectionInner object if successful.
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionInner object if successful. */
public ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, String crossConnectionName) { return updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName).toBlocking().single().body(); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionInner> updateTagsAsync(String resourceGroupName, String crossConnectionName, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName), serviceCallback); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ExpressRouteCrossConnectionInner> updateTagsAsync(String resourceGroupName, String crossConnectionName) { return updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionInner>, ExpressRouteCrossConnectionInner>() { @Override public ExpressRouteCrossConnectionInner call(ServiceResponse<ExpressRouteCrossConnectionInner> response) { return response.body(); } }); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String crossConnectionName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; final Map<String, String> tags = null; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(null); return service.updateTags(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), crossConnectionParameters, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCrossConnectionInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCrossConnectionInner> clientResponse = updateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
  • tags – Resource tags.
Throws:
Returns:the ExpressRouteCrossConnectionInner object if successful.
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionInner object if successful. */
public ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, String crossConnectionName, Map<String, String> tags) { return updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName, tags).toBlocking().single().body(); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
  • tags – Resource tags.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @param tags Resource tags. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionInner> updateTagsAsync(String resourceGroupName, String crossConnectionName, Map<String, String> tags, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName, tags), serviceCallback); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
  • tags – Resource tags.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ExpressRouteCrossConnectionInner> updateTagsAsync(String resourceGroupName, String crossConnectionName, Map<String, String> tags) { return updateTagsWithServiceResponseAsync(resourceGroupName, crossConnectionName, tags).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionInner>, ExpressRouteCrossConnectionInner>() { @Override public ExpressRouteCrossConnectionInner call(ServiceResponse<ExpressRouteCrossConnectionInner> response) { return response.body(); } }); }
Updates an express route cross connection tags.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the cross connection.
  • tags – Resource tags.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionInner object
/** * Updates an express route cross connection tags. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the cross connection. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionInner object */
public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, Map<String, String> tags) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } Validator.validate(tags); final String apiVersion = "2019-11-01"; TagsObject crossConnectionParameters = new TagsObject(); crossConnectionParameters.withTags(tags); return service.updateTags(resourceGroupName, crossConnectionName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), crossConnectionParameters, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCrossConnectionInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCrossConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCrossConnectionInner> clientResponse = updateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCrossConnectionInner> updateTagsDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCrossConnectionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCrossConnectionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCircuitsArpTableListResultInner object if successful.
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCircuitsArpTableListResultInner object if successful. */
public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().last().body(); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCircuitsArpTableListResultInner> listArpTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCircuitsArpTableListResultInner> serviceCallback) { return ServiceFuture.fromResponse(listArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ExpressRouteCircuitsArpTableListResultInner> listArpTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>, ExpressRouteCircuitsArpTableListResultInner>() { @Override public ExpressRouteCircuitsArpTableListResultInner call(ServiceResponse<ExpressRouteCircuitsArpTableListResultInner> response) { return response.body(); } }); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>> listArpTableWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; Observable<Response<ResponseBody>> observable = service.listArpTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ExpressRouteCircuitsArpTableListResultInner>() { }.getType()); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCircuitsArpTableListResultInner object if successful.
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCircuitsArpTableListResultInner object if successful. */
public ExpressRouteCircuitsArpTableListResultInner beginListArpTable(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().single().body(); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCircuitsArpTableListResultInner> beginListArpTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCircuitsArpTableListResultInner> serviceCallback) { return ServiceFuture.fromResponse(beginListArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCircuitsArpTableListResultInner object
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCircuitsArpTableListResultInner object */
public Observable<ExpressRouteCircuitsArpTableListResultInner> beginListArpTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListArpTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>, ExpressRouteCircuitsArpTableListResultInner>() { @Override public ExpressRouteCircuitsArpTableListResultInner call(ServiceResponse<ExpressRouteCircuitsArpTableListResultInner> response) { return response.body(); } }); }
Gets the currently advertised ARP table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCircuitsArpTableListResultInner object
/** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCircuitsArpTableListResultInner object */
public Observable<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>> beginListArpTableWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.beginListArpTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCircuitsArpTableListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCircuitsArpTableListResultInner> clientResponse = beginListArpTableDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCircuitsArpTableListResultInner> beginListArpTableDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCircuitsArpTableListResultInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCircuitsArpTableListResultInner>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object if successful.
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object if successful. */
public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().last().body(); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> listRoutesTableSummaryAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> serviceCallback) { return ServiceFuture.fromResponse(listRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> listRoutesTableSummaryAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>, ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>() { @Override public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner call(ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> response) { return response.body(); } }); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>> listRoutesTableSummaryWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; Observable<Response<ResponseBody>> observable = service.listRoutesTableSummary(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>() { }.getType()); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object if successful.
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object if successful. */
public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner beginListRoutesTableSummary(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().single().body(); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> beginListRoutesTableSummaryAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> serviceCallback) { return ServiceFuture.fromResponse(beginListRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object */
public Observable<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> beginListRoutesTableSummaryAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListRoutesTableSummaryWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>, ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>() { @Override public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner call(ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> response) { return response.body(); } }); }
Gets the route table summary associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object
/** * Gets the route table summary associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object */
public Observable<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>> beginListRoutesTableSummaryWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.beginListRoutesTableSummary(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> clientResponse = beginListRoutesTableSummaryDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner> beginListRoutesTableSummaryDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCircuitsRoutesTableListResultInner object if successful.
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCircuitsRoutesTableListResultInner object if successful. */
public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().last().body(); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCircuitsRoutesTableListResultInner> listRoutesTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCircuitsRoutesTableListResultInner> serviceCallback) { return ServiceFuture.fromResponse(listRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ExpressRouteCircuitsRoutesTableListResultInner> listRoutesTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return listRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>, ExpressRouteCircuitsRoutesTableListResultInner>() { @Override public ExpressRouteCircuitsRoutesTableListResultInner call(ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner> response) { return response.body(); } }); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable for the request
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>> listRoutesTableWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; Observable<Response<ResponseBody>> observable = service.listRoutesTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ExpressRouteCircuitsRoutesTableListResultInner>() { }.getType()); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the ExpressRouteCircuitsRoutesTableListResultInner object if successful.
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExpressRouteCircuitsRoutesTableListResultInner object if successful. */
public ExpressRouteCircuitsRoutesTableListResultInner beginListRoutesTable(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).toBlocking().single().body(); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<ExpressRouteCircuitsRoutesTableListResultInner> beginListRoutesTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, final ServiceCallback<ExpressRouteCircuitsRoutesTableListResultInner> serviceCallback) { return ServiceFuture.fromResponse(beginListRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath), serviceCallback); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCircuitsRoutesTableListResultInner object
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCircuitsRoutesTableListResultInner object */
public Observable<ExpressRouteCircuitsRoutesTableListResultInner> beginListRoutesTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { return beginListRoutesTableWithServiceResponseAsync(resourceGroupName, crossConnectionName, peeringName, devicePath).map(new Func1<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>, ExpressRouteCircuitsRoutesTableListResultInner>() { @Override public ExpressRouteCircuitsRoutesTableListResultInner call(ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner> response) { return response.body(); } }); }
Gets the currently advertised routes table associated with the express route cross connection in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • crossConnectionName – The name of the ExpressRouteCrossConnection.
  • peeringName – The name of the peering.
  • devicePath – The path of the device.
Throws:
Returns:the observable to the ExpressRouteCircuitsRoutesTableListResultInner object
/** * Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExpressRouteCircuitsRoutesTableListResultInner object */
public Observable<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>> beginListRoutesTableWithServiceResponseAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (crossConnectionName == null) { throw new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null."); } if (peeringName == null) { throw new IllegalArgumentException("Parameter peeringName is required and cannot be null."); } if (devicePath == null) { throw new IllegalArgumentException("Parameter devicePath is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.beginListRoutesTable(resourceGroupName, crossConnectionName, peeringName, devicePath, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>>>() { @Override public Observable<ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner> clientResponse = beginListRoutesTableDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ExpressRouteCircuitsRoutesTableListResultInner> beginListRoutesTableDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ExpressRouteCircuitsRoutesTableListResultInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ExpressRouteCircuitsRoutesTableListResultInner>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object if successful. */
public PagedList<ExpressRouteCrossConnectionInner> listNext(final String nextPageLink) { ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<ExpressRouteCrossConnectionInner>(response.body()) { @Override public Page<ExpressRouteCrossConnectionInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
  • serviceFuture – the ServiceFuture object tracking the Retrofit calls
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<ExpressRouteCrossConnectionInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<ExpressRouteCrossConnectionInner>> serviceFuture, final ListOperationCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<Page<ExpressRouteCrossConnectionInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Page<ExpressRouteCrossConnectionInner>>() { @Override public Page<ExpressRouteCrossConnectionInner> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response) { return response.body(); } }); }
Retrieves all the ExpressRouteCrossConnections in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listNextWithServiceResponseAsync(final String nextPageLink) { return listNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Retrieves all the ExpressRouteCrossConnections in a subscription. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object wrapped in ServiceResponse if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a subscription. * ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } String nextUrl = String.format("%s", nextPageLink); return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> result = listNextDelegate(response); return Observable.just(new ServiceResponse<Page<ExpressRouteCrossConnectionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> listNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ExpressRouteCrossConnectionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ExpressRouteCrossConnectionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object if successful. */
public PagedList<ExpressRouteCrossConnectionInner> listByResourceGroupNext(final String nextPageLink) { ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<ExpressRouteCrossConnectionInner>(response.body()) { @Override public Page<ExpressRouteCrossConnectionInner> nextPage(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
  • serviceFuture – the ServiceFuture object tracking the Retrofit calls
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<List<ExpressRouteCrossConnectionInner>> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture<List<ExpressRouteCrossConnectionInner>> serviceFuture, final ListOperationCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<Page<ExpressRouteCrossConnectionInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Page<ExpressRouteCrossConnectionInner>>() { @Override public Page<ExpressRouteCrossConnectionInner> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> response) { return response.body(); } }); }
Retrieves all the ExpressRouteCrossConnections in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ExpressRouteCrossConnectionInner> object
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(ServiceResponse<Page<ExpressRouteCrossConnectionInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } }); }
Retrieves all the ExpressRouteCrossConnections in a resource group. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ExpressRouteCrossConnectionInner> object wrapped in ServiceResponse if successful.
/** * Retrieves all the ExpressRouteCrossConnections in a resource group. * ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ExpressRouteCrossConnectionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } String nextUrl = String.format("%s", nextPageLink); return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>>>() { @Override public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse<Page<ExpressRouteCrossConnectionInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ExpressRouteCrossConnectionInner>> listByResourceGroupNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ExpressRouteCrossConnectionInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ExpressRouteCrossConnectionInner>>() { }.getType()) .registerError(CloudException.class) .build(response); } }