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.InnerSupportsDelete; 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.ApplicationGatewayOnDemandProbe; import com.microsoft.azure.management.network.ErrorException; 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.HTTP; 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 ApplicationGateways.
/** * An instance of this class provides access to all the operations defined * in ApplicationGateways. */
public class ApplicationGatewaysInner implements InnerSupportsGet<ApplicationGatewayInner>, InnerSupportsDelete<Void>, InnerSupportsListing<ApplicationGatewayInner> {
The Retrofit service to perform REST calls.
/** The Retrofit service to perform REST calls. */
private ApplicationGatewaysService service;
The service client containing this operation class.
/** The service client containing this operation class. */
private NetworkManagementClientImpl client;
Initializes an instance of ApplicationGatewaysInner.
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 ApplicationGatewaysInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */
public ApplicationGatewaysInner(Retrofit retrofit, NetworkManagementClientImpl client) { this.service = retrofit.create(ApplicationGatewaysService.class); this.client = client; }
The interface defining all the services for ApplicationGateways to be used by Retrofit to perform actually REST calls.
/** * The interface defining all the services for ApplicationGateways to be * used by Retrofit to perform actually REST calls. */
interface ApplicationGatewaysService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ApplicationGateways delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> delete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways getByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable<Response<ResponseBody>> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways createOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Body ApplicationGatewayInner 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.ApplicationGateways beginCreateOrUpdate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Body ApplicationGatewayInner 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.ApplicationGateways updateTags" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") Observable<Response<ResponseBody>> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ApplicationGateways listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways") 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.ApplicationGateways list" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways") 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.ApplicationGateways start" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start") Observable<Response<ResponseBody>> start(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways beginStart" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start") Observable<Response<ResponseBody>> beginStart(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways stop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop") Observable<Response<ResponseBody>> stop(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways beginStop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop") Observable<Response<ResponseBody>> beginStop(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @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.ApplicationGateways backendHealth" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth") Observable<Response<ResponseBody>> backendHealth(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.ApplicationGateways beginBackendHealth" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth") Observable<Response<ResponseBody>> beginBackendHealth(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @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.ApplicationGateways backendHealthOnDemand" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand") Observable<Response<ResponseBody>> backendHealthOnDemand(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @Body ApplicationGatewayOnDemandProbe probeRequest, @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.ApplicationGateways beginBackendHealthOnDemand" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand") Observable<Response<ResponseBody>> beginBackendHealthOnDemand(@Path("resourceGroupName") String resourceGroupName, @Path("applicationGatewayName") String applicationGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Query("$expand") String expand, @Body ApplicationGatewayOnDemandProbe probeRequest, @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.ApplicationGateways listAvailableServerVariables" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables") Observable<Response<ResponseBody>> listAvailableServerVariables(@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.ApplicationGateways listAvailableRequestHeaders" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders") Observable<Response<ResponseBody>> listAvailableRequestHeaders(@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.ApplicationGateways listAvailableResponseHeaders" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders") Observable<Response<ResponseBody>> listAvailableResponseHeaders(@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.ApplicationGateways listAvailableWafRuleSets" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets") Observable<Response<ResponseBody>> listAvailableWafRuleSets(@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.ApplicationGateways listAvailableSslOptions" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default") Observable<Response<ResponseBody>> listAvailableSslOptions(@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.ApplicationGateways listAvailableSslPredefinedPolicies" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies") Observable<Response<ResponseBody>> listAvailableSslPredefinedPolicies(@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.ApplicationGateways getSslPredefinedPolicy" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}") Observable<Response<ResponseBody>> getSslPredefinedPolicy(@Path("subscriptionId") String subscriptionId, @Path("predefinedPolicyName") String predefinedPolicyName, @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.ApplicationGateways listByResourceGroupNext" }) @GET Observable<Response<ResponseBody>> listByResourceGroupNext(@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.ApplicationGateways 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.ApplicationGateways listAvailableSslPredefinedPoliciesNext" }) @GET Observable<Response<ResponseBody>> listAvailableSslPredefinedPoliciesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void delete(String resourceGroupName, String applicationGatewayName) { deleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().last().body(); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> deleteAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> deleteAsync(String resourceGroupName, String applicationGatewayName) { return deleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.delete(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType()); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void beginDelete(String resourceGroupName, String applicationGatewayName) { beginDeleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName) { return beginDeleteWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.beginDelete(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginDeleteDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginDeleteDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .register(204, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ApplicationGatewayInner object if successful.
/** * Gets the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 ApplicationGatewayInner object if successful. */
public ApplicationGatewayInner getByResourceGroup(String resourceGroupName, String applicationGatewayName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Gets the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<ApplicationGatewayInner> getByResourceGroupAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<ApplicationGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Gets the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Gets the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ApplicationGatewayInner> getByResourceGroupAsync(String resourceGroupName, String applicationGatewayName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<ApplicationGatewayInner>, ApplicationGatewayInner>() { @Override public ApplicationGatewayInner call(ServiceResponse<ApplicationGatewayInner> response) { return response.body(); } }); }
Gets the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Gets the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ServiceResponse<ApplicationGatewayInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayInner> clientResponse = getByResourceGroupDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayInner> getByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the ApplicationGatewayInner object if successful.
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway 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 ApplicationGatewayInner object if successful. */
public ApplicationGatewayInner createOrUpdate(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters).toBlocking().last().body(); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway 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<ApplicationGatewayInner> createOrUpdateAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters, final ServiceCallback<ApplicationGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters), serviceCallback); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the observable for the request
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ApplicationGatewayInner> createOrUpdateAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters).map(new Func1<ServiceResponse<ApplicationGatewayInner>, ApplicationGatewayInner>() { @Override public ApplicationGatewayInner call(ServiceResponse<ApplicationGatewayInner> response) { return response.body(); } }); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the observable for the request
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ApplicationGatewayInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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, applicationGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ApplicationGatewayInner>() { }.getType()); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the ApplicationGatewayInner object if successful.
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway 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 ApplicationGatewayInner object if successful. */
public ApplicationGatewayInner beginCreateOrUpdate(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters).toBlocking().single().body(); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway 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<ApplicationGatewayInner> beginCreateOrUpdateAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters, final ServiceCallback<ApplicationGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters), serviceCallback); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ApplicationGatewayInner> beginCreateOrUpdateAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, applicationGatewayName, parameters).map(new Func1<ServiceResponse<ApplicationGatewayInner>, ApplicationGatewayInner>() { @Override public ApplicationGatewayInner call(ServiceResponse<ApplicationGatewayInner> response) { return response.body(); } }); }
Creates or updates the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • parameters – Parameters supplied to the create or update application gateway operation.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Creates or updates the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ServiceResponse<ApplicationGatewayInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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, applicationGatewayName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayInner> clientResponse = beginCreateOrUpdateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayInner> beginCreateOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayInner>() { }.getType()) .register(201, new TypeToken<ApplicationGatewayInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ApplicationGatewayInner object if successful.
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 ApplicationGatewayInner object if successful. */
public ApplicationGatewayInner updateTags(String resourceGroupName, String applicationGatewayName) { return updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<ApplicationGatewayInner> updateTagsAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<ApplicationGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ApplicationGatewayInner> updateTagsAsync(String resourceGroupName, String applicationGatewayName) { return updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<ApplicationGatewayInner>, ApplicationGatewayInner>() { @Override public ApplicationGatewayInner call(ServiceResponse<ApplicationGatewayInner> response) { return response.body(); } }); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ServiceResponse<ApplicationGatewayInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 parameters = new TagsObject(); parameters.withTags(null); return service.updateTags(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayInner> clientResponse = updateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • tags – Resource tags.
Throws:
Returns:the ApplicationGatewayInner object if successful.
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 ApplicationGatewayInner object if successful. */
public ApplicationGatewayInner updateTags(String resourceGroupName, String applicationGatewayName, Map<String, String> tags) { return updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName, tags).toBlocking().single().body(); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • tags – Resource tags.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<ApplicationGatewayInner> updateTagsAsync(String resourceGroupName, String applicationGatewayName, Map<String, String> tags, final ServiceCallback<ApplicationGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName, tags), serviceCallback); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • tags – Resource tags.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ApplicationGatewayInner> updateTagsAsync(String resourceGroupName, String applicationGatewayName, Map<String, String> tags) { return updateTagsWithServiceResponseAsync(resourceGroupName, applicationGatewayName, tags).map(new Func1<ServiceResponse<ApplicationGatewayInner>, ApplicationGatewayInner>() { @Override public ApplicationGatewayInner call(ServiceResponse<ApplicationGatewayInner> response) { return response.body(); } }); }
Updates the specified application gateway tags.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • tags – Resource tags.
Throws:
Returns:the observable to the ApplicationGatewayInner object
/** * Updates the specified application gateway tags. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param tags Resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayInner object */
public Observable<ServiceResponse<ApplicationGatewayInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, Map<String, String> tags) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 parameters = new TagsObject(); parameters.withTags(tags); return service.updateTags(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayInner> clientResponse = updateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayInner> updateTagsDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists all application gateways in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object if successful.
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object if successful. */
public PagedList<ApplicationGatewayInner> listByResourceGroup(final String resourceGroupName) { ServiceResponse<Page<ApplicationGatewayInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); return new PagedList<ApplicationGatewayInner>(response.body()) { @Override public Page<ApplicationGatewayInner> nextPage(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists all application gateways 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
/** * Lists all application gateways 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<ApplicationGatewayInner>> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback<ApplicationGatewayInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists all application gateways in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<Page<ApplicationGatewayInner>> listByResourceGroupAsync(final String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName) .map(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Page<ApplicationGatewayInner>>() { @Override public Page<ApplicationGatewayInner> call(ServiceResponse<Page<ApplicationGatewayInner>> response) { return response.body(); } }); }
Lists all application gateways in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { return listByResourceGroupSinglePageAsync(resourceGroupName) .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(ServiceResponse<Page<ApplicationGatewayInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists all application gateways in a resource group. ServiceResponse> * @param resourceGroupName The name of the resource group.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object wrapped in ServiceResponse if successful.
/** * Lists all application gateways in a resource group. * ServiceResponse<PageImpl<ApplicationGatewayInner>> * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewayInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> 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<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewayInner>> result = listByResourceGroupDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewayInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewayInner>> listByResourceGroupDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewayInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewayInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets all the application gateways 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<ApplicationGatewayInner> object if successful.
/** * Gets all the application gateways 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;ApplicationGatewayInner&gt; object if successful. */
public PagedList<ApplicationGatewayInner> list() { ServiceResponse<Page<ApplicationGatewayInner>> response = listSinglePageAsync().toBlocking().single(); return new PagedList<ApplicationGatewayInner>(response.body()) { @Override public Page<ApplicationGatewayInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Gets all the application gateways in a subscription.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets all the application gateways 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<ApplicationGatewayInner>> listAsync(final ListOperationCallback<ApplicationGatewayInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Gets all the application gateways in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Gets all the application gateways in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ApplicationGatewayInner&gt; object */
public Observable<Page<ApplicationGatewayInner>> listAsync() { return listWithServiceResponseAsync() .map(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Page<ApplicationGatewayInner>>() { @Override public Page<ApplicationGatewayInner> call(ServiceResponse<Page<ApplicationGatewayInner>> response) { return response.body(); } }); }
Gets all the application gateways in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Gets all the application gateways in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ApplicationGatewayInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> listWithServiceResponseAsync() { return listSinglePageAsync() .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(ServiceResponse<Page<ApplicationGatewayInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Gets all the application gateways in a subscription.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the PagedList<ApplicationGatewayInner> object wrapped in ServiceResponse if successful.
/** * Gets all the application gateways in a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewayInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> 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<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewayInner>> result = listDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewayInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewayInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewayInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewayInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void start(String resourceGroupName, String applicationGatewayName) { startWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().last().body(); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> startAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(startWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> startAsync(String resourceGroupName, String applicationGatewayName) { return startWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> startWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.start(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<Void>() { }.getType()); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void beginStart(String resourceGroupName, String applicationGatewayName) { beginStartWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> beginStartAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginStartWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginStartAsync(String resourceGroupName, String applicationGatewayName) { return beginStartWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Starts the specified application gateway.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginStartWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.beginStart(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginStartDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginStartDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void stop(String resourceGroupName, String applicationGatewayName) { stopWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().last().body(); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> stopAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(stopWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> stopAsync(String resourceGroupName, String applicationGatewayName) { return stopWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> stopWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.stop(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<Void>() { }.getType()); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 */
public void beginStop(String resourceGroupName, String applicationGatewayName) { beginStopWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<Void> beginStopAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginStopWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginStopAsync(String resourceGroupName, String applicationGatewayName) { return beginStopWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Stops the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ServiceResponse object if successful.
/** * Stops the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginStopWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.beginStop(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginStopDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginStopDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ApplicationGatewayBackendHealthInner object if successful.
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 ApplicationGatewayBackendHealthInner object if successful. */
public ApplicationGatewayBackendHealthInner backendHealth(String resourceGroupName, String applicationGatewayName) { return backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().last().body(); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<ApplicationGatewayBackendHealthInner> backendHealthAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<ApplicationGatewayBackendHealthInner> serviceCallback) { return ServiceFuture.fromResponse(backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ApplicationGatewayBackendHealthInner> backendHealthAsync(String resourceGroupName, String applicationGatewayName) { return backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner>() { @Override public ApplicationGatewayBackendHealthInner call(ServiceResponse<ApplicationGatewayBackendHealthInner> response) { return response.body(); } }); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable for the request
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> backendHealthWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 String expand = null; Observable<Response<ResponseBody>> observable = service.backendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ApplicationGatewayBackendHealthInner>() { }.getType()); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the ApplicationGatewayBackendHealthInner object if successful.
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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 ApplicationGatewayBackendHealthInner object if successful. */
public ApplicationGatewayBackendHealthInner backendHealth(String resourceGroupName, String applicationGatewayName, String expand) { return backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand).toBlocking().last().body(); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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<ApplicationGatewayBackendHealthInner> backendHealthAsync(String resourceGroupName, String applicationGatewayName, String expand, final ServiceCallback<ApplicationGatewayBackendHealthInner> serviceCallback) { return ServiceFuture.fromResponse(backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand), serviceCallback); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable for the request
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ApplicationGatewayBackendHealthInner> backendHealthAsync(String resourceGroupName, String applicationGatewayName, String expand) { return backendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner>() { @Override public ApplicationGatewayBackendHealthInner call(ServiceResponse<ApplicationGatewayBackendHealthInner> response) { return response.body(); } }); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable for the request
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> backendHealthWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.backendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ApplicationGatewayBackendHealthInner>() { }.getType()); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the ApplicationGatewayBackendHealthInner object if successful.
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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 ApplicationGatewayBackendHealthInner object if successful. */
public ApplicationGatewayBackendHealthInner beginBackendHealth(String resourceGroupName, String applicationGatewayName) { return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @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<ApplicationGatewayBackendHealthInner> beginBackendHealthAsync(String resourceGroupName, String applicationGatewayName, final ServiceCallback<ApplicationGatewayBackendHealthInner> serviceCallback) { return ServiceFuture.fromResponse(beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName), serviceCallback); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthInner object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthInner object */
public Observable<ApplicationGatewayBackendHealthInner> beginBackendHealthAsync(String resourceGroupName, String applicationGatewayName) { return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner>() { @Override public ApplicationGatewayBackendHealthInner call(ServiceResponse<ApplicationGatewayBackendHealthInner> response) { return response.body(); } }); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthInner object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthInner object */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> beginBackendHealthWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 String expand = null; return service.beginBackendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayBackendHealthInner> clientResponse = beginBackendHealthDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the ApplicationGatewayBackendHealthInner object if successful.
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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 ApplicationGatewayBackendHealthInner object if successful. */
public ApplicationGatewayBackendHealthInner beginBackendHealth(String resourceGroupName, String applicationGatewayName, String expand) { return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand).toBlocking().single().body(); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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<ApplicationGatewayBackendHealthInner> beginBackendHealthAsync(String resourceGroupName, String applicationGatewayName, String expand, final ServiceCallback<ApplicationGatewayBackendHealthInner> serviceCallback) { return ServiceFuture.fromResponse(beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand), serviceCallback); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthInner object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthInner object */
public Observable<ApplicationGatewayBackendHealthInner> beginBackendHealthAsync(String resourceGroupName, String applicationGatewayName, String expand) { return beginBackendHealthWithServiceResponseAsync(resourceGroupName, applicationGatewayName, expand).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthInner>, ApplicationGatewayBackendHealthInner>() { @Override public ApplicationGatewayBackendHealthInner call(ServiceResponse<ApplicationGatewayBackendHealthInner> response) { return response.body(); } }); }
Gets the backend health of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthInner object
/** * Gets the backend health of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthInner object */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> beginBackendHealthWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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.beginBackendHealth(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayBackendHealthInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayBackendHealthInner> clientResponse = beginBackendHealthDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayBackendHealthInner> beginBackendHealthDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayBackendHealthInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayBackendHealthInner>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the ApplicationGatewayBackendHealthOnDemandInner object if successful.
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe 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 ApplicationGatewayBackendHealthOnDemandInner object if successful. */
public ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { return backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest).toBlocking().last().body(); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe 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<ApplicationGatewayBackendHealthOnDemandInner> backendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, final ServiceCallback<ApplicationGatewayBackendHealthOnDemandInner> serviceCallback) { return ServiceFuture.fromResponse(backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest), serviceCallback); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the observable for the request
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ApplicationGatewayBackendHealthOnDemandInner> backendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { return backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>, ApplicationGatewayBackendHealthOnDemandInner>() { @Override public ApplicationGatewayBackendHealthOnDemandInner call(ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> response) { return response.body(); } }); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the observable for the request
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> backendHealthOnDemandWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 (probeRequest == null) { throw new IllegalArgumentException("Parameter probeRequest is required and cannot be null."); } Validator.validate(probeRequest); final String apiVersion = "2019-11-01"; final String expand = null; Observable<Response<ResponseBody>> observable = service.backendHealthOnDemand(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, probeRequest, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ApplicationGatewayBackendHealthOnDemandInner>() { }.getType()); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the ApplicationGatewayBackendHealthOnDemandInner object if successful.
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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 ApplicationGatewayBackendHealthOnDemandInner object if successful. */
public ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { return backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand).toBlocking().last().body(); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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<ApplicationGatewayBackendHealthOnDemandInner> backendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand, final ServiceCallback<ApplicationGatewayBackendHealthOnDemandInner> serviceCallback) { return ServiceFuture.fromResponse(backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand), serviceCallback); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable for the request
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ApplicationGatewayBackendHealthOnDemandInner> backendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { return backendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>, ApplicationGatewayBackendHealthOnDemandInner>() { @Override public ApplicationGatewayBackendHealthOnDemandInner call(ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> response) { return response.body(); } }); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable for the request
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> backendHealthOnDemandWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 (probeRequest == null) { throw new IllegalArgumentException("Parameter probeRequest is required and cannot be null."); } Validator.validate(probeRequest); final String apiVersion = "2019-11-01"; Observable<Response<ResponseBody>> observable = service.backendHealthOnDemand(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, probeRequest, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken<ApplicationGatewayBackendHealthOnDemandInner>() { }.getType()); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the ApplicationGatewayBackendHealthOnDemandInner object if successful.
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe 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 ApplicationGatewayBackendHealthOnDemandInner object if successful. */
public ApplicationGatewayBackendHealthOnDemandInner beginBackendHealthOnDemand(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { return beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest).toBlocking().single().body(); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe 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<ApplicationGatewayBackendHealthOnDemandInner> beginBackendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, final ServiceCallback<ApplicationGatewayBackendHealthOnDemandInner> serviceCallback) { return ServiceFuture.fromResponse(beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest), serviceCallback); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthOnDemandInner object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthOnDemandInner object */
public Observable<ApplicationGatewayBackendHealthOnDemandInner> beginBackendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { return beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>, ApplicationGatewayBackendHealthOnDemandInner>() { @Override public ApplicationGatewayBackendHealthOnDemandInner call(ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> response) { return response.body(); } }); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthOnDemandInner object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthOnDemandInner object */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> beginBackendHealthOnDemandWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 (probeRequest == null) { throw new IllegalArgumentException("Parameter probeRequest is required and cannot be null."); } Validator.validate(probeRequest); final String apiVersion = "2019-11-01"; final String expand = null; return service.beginBackendHealthOnDemand(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, probeRequest, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> clientResponse = beginBackendHealthOnDemandDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the ApplicationGatewayBackendHealthOnDemandInner object if successful.
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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 ApplicationGatewayBackendHealthOnDemandInner object if successful. */
public ApplicationGatewayBackendHealthOnDemandInner beginBackendHealthOnDemand(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { return beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand).toBlocking().single().body(); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @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<ApplicationGatewayBackendHealthOnDemandInner> beginBackendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand, final ServiceCallback<ApplicationGatewayBackendHealthOnDemandInner> serviceCallback) { return ServiceFuture.fromResponse(beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand), serviceCallback); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthOnDemandInner object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthOnDemandInner object */
public Observable<ApplicationGatewayBackendHealthOnDemandInner> beginBackendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { return beginBackendHealthOnDemandWithServiceResponseAsync(resourceGroupName, applicationGatewayName, probeRequest, expand).map(new Func1<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>, ApplicationGatewayBackendHealthOnDemandInner>() { @Override public ApplicationGatewayBackendHealthOnDemandInner call(ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> response) { return response.body(); } }); }
Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • applicationGatewayName – The name of the application gateway.
  • probeRequest – Request body for on-demand test probe operation.
  • expand – Expands BackendAddressPool and BackendHttpSettings referenced in backend health.
Throws:
Returns:the observable to the ApplicationGatewayBackendHealthOnDemandInner object
/** * Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayBackendHealthOnDemandInner object */
public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> beginBackendHealthOnDemandWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applicationGatewayName == null) { throw new IllegalArgumentException("Parameter applicationGatewayName 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 (probeRequest == null) { throw new IllegalArgumentException("Parameter probeRequest is required and cannot be null."); } Validator.validate(probeRequest); final String apiVersion = "2019-11-01"; return service.beginBackendHealthOnDemand(resourceGroupName, applicationGatewayName, this.client.subscriptionId(), apiVersion, expand, probeRequest, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> clientResponse = beginBackendHealthOnDemandDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayBackendHealthOnDemandInner> beginBackendHealthOnDemandDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayBackendHealthOnDemandInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayBackendHealthOnDemandInner>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists all available server variables.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
  • ErrorException – thrown if the request is rejected by server
  • RuntimeException – all other wrapped checked exceptions if the request fails to be sent
Returns:the List<String> object if successful.
/** * Lists all available server variables. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List&lt;String&gt; object if successful. */
public List<String> listAvailableServerVariables() { return listAvailableServerVariablesWithServiceResponseAsync().toBlocking().single().body(); }
Lists all available server variables.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists all available server variables. * * @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<String>> listAvailableServerVariablesAsync(final ServiceCallback<List<String>> serviceCallback) { return ServiceFuture.fromResponse(listAvailableServerVariablesWithServiceResponseAsync(), serviceCallback); }
Lists all available server variables.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available server variables. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<List<String>> listAvailableServerVariablesAsync() { return listAvailableServerVariablesWithServiceResponseAsync().map(new Func1<ServiceResponse<List<String>>, List<String>>() { @Override public List<String> call(ServiceResponse<List<String>> response) { return response.body(); } }); }
Lists all available server variables.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available server variables. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<ServiceResponse<List<String>>> listAvailableServerVariablesWithServiceResponseAsync() { 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.listAvailableServerVariables(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<String>>>>() { @Override public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) { try { ServiceResponse<List<String>> clientResponse = listAvailableServerVariablesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<List<String>> listAvailableServerVariablesDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<List<String>>() { }.getType()) .registerError(ErrorException.class) .build(response); }
Lists all available request headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
  • ErrorException – thrown if the request is rejected by server
  • RuntimeException – all other wrapped checked exceptions if the request fails to be sent
Returns:the List<String> object if successful.
/** * Lists all available request headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List&lt;String&gt; object if successful. */
public List<String> listAvailableRequestHeaders() { return listAvailableRequestHeadersWithServiceResponseAsync().toBlocking().single().body(); }
Lists all available request headers.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists all available request headers. * * @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<String>> listAvailableRequestHeadersAsync(final ServiceCallback<List<String>> serviceCallback) { return ServiceFuture.fromResponse(listAvailableRequestHeadersWithServiceResponseAsync(), serviceCallback); }
Lists all available request headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available request headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<List<String>> listAvailableRequestHeadersAsync() { return listAvailableRequestHeadersWithServiceResponseAsync().map(new Func1<ServiceResponse<List<String>>, List<String>>() { @Override public List<String> call(ServiceResponse<List<String>> response) { return response.body(); } }); }
Lists all available request headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available request headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<ServiceResponse<List<String>>> listAvailableRequestHeadersWithServiceResponseAsync() { 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.listAvailableRequestHeaders(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<String>>>>() { @Override public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) { try { ServiceResponse<List<String>> clientResponse = listAvailableRequestHeadersDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<List<String>> listAvailableRequestHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<List<String>>() { }.getType()) .registerError(ErrorException.class) .build(response); }
Lists all available response headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
  • ErrorException – thrown if the request is rejected by server
  • RuntimeException – all other wrapped checked exceptions if the request fails to be sent
Returns:the List<String> object if successful.
/** * Lists all available response headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List&lt;String&gt; object if successful. */
public List<String> listAvailableResponseHeaders() { return listAvailableResponseHeadersWithServiceResponseAsync().toBlocking().single().body(); }
Lists all available response headers.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists all available response headers. * * @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<String>> listAvailableResponseHeadersAsync(final ServiceCallback<List<String>> serviceCallback) { return ServiceFuture.fromResponse(listAvailableResponseHeadersWithServiceResponseAsync(), serviceCallback); }
Lists all available response headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available response headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<List<String>> listAvailableResponseHeadersAsync() { return listAvailableResponseHeadersWithServiceResponseAsync().map(new Func1<ServiceResponse<List<String>>, List<String>>() { @Override public List<String> call(ServiceResponse<List<String>> response) { return response.body(); } }); }
Lists all available response headers.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the List<String> object
/** * Lists all available response headers. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;String&gt; object */
public Observable<ServiceResponse<List<String>>> listAvailableResponseHeadersWithServiceResponseAsync() { 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.listAvailableResponseHeaders(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<String>>>>() { @Override public Observable<ServiceResponse<List<String>>> call(Response<ResponseBody> response) { try { ServiceResponse<List<String>> clientResponse = listAvailableResponseHeadersDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<List<String>> listAvailableResponseHeadersDelegate(Response<ResponseBody> response) throws ErrorException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<List<String>, ErrorException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<List<String>>() { }.getType()) .registerError(ErrorException.class) .build(response); }
Lists all available web application firewall rule sets.
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 ApplicationGatewayAvailableWafRuleSetsResultInner object if successful.
/** * Lists all available web application firewall rule sets. * * @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 ApplicationGatewayAvailableWafRuleSetsResultInner object if successful. */
public ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSets() { return listAvailableWafRuleSetsWithServiceResponseAsync().toBlocking().single().body(); }
Lists all available web application firewall rule sets.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists all available web application firewall rule sets. * * @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<ApplicationGatewayAvailableWafRuleSetsResultInner> listAvailableWafRuleSetsAsync(final ServiceCallback<ApplicationGatewayAvailableWafRuleSetsResultInner> serviceCallback) { return ServiceFuture.fromResponse(listAvailableWafRuleSetsWithServiceResponseAsync(), serviceCallback); }
Lists all available web application firewall rule sets.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the ApplicationGatewayAvailableWafRuleSetsResultInner object
/** * Lists all available web application firewall rule sets. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayAvailableWafRuleSetsResultInner object */
public Observable<ApplicationGatewayAvailableWafRuleSetsResultInner> listAvailableWafRuleSetsAsync() { return listAvailableWafRuleSetsWithServiceResponseAsync().map(new Func1<ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner>, ApplicationGatewayAvailableWafRuleSetsResultInner>() { @Override public ApplicationGatewayAvailableWafRuleSetsResultInner call(ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner> response) { return response.body(); } }); }
Lists all available web application firewall rule sets.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the ApplicationGatewayAvailableWafRuleSetsResultInner object
/** * Lists all available web application firewall rule sets. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayAvailableWafRuleSetsResultInner object */
public Observable<ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner>> listAvailableWafRuleSetsWithServiceResponseAsync() { 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.listAvailableWafRuleSets(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner> clientResponse = listAvailableWafRuleSetsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayAvailableWafRuleSetsResultInner> listAvailableWafRuleSetsDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayAvailableWafRuleSetsResultInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayAvailableWafRuleSetsResultInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists available Ssl options for configuring Ssl policy.
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 ApplicationGatewayAvailableSslOptionsInner object if successful.
/** * Lists available Ssl options for configuring Ssl policy. * * @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 ApplicationGatewayAvailableSslOptionsInner object if successful. */
public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { return listAvailableSslOptionsWithServiceResponseAsync().toBlocking().single().body(); }
Lists available Ssl options for configuring Ssl policy.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists available Ssl options for configuring Ssl policy. * * @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<ApplicationGatewayAvailableSslOptionsInner> listAvailableSslOptionsAsync(final ServiceCallback<ApplicationGatewayAvailableSslOptionsInner> serviceCallback) { return ServiceFuture.fromResponse(listAvailableSslOptionsWithServiceResponseAsync(), serviceCallback); }
Lists available Ssl options for configuring Ssl policy.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the ApplicationGatewayAvailableSslOptionsInner object
/** * Lists available Ssl options for configuring Ssl policy. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayAvailableSslOptionsInner object */
public Observable<ApplicationGatewayAvailableSslOptionsInner> listAvailableSslOptionsAsync() { return listAvailableSslOptionsWithServiceResponseAsync().map(new Func1<ServiceResponse<ApplicationGatewayAvailableSslOptionsInner>, ApplicationGatewayAvailableSslOptionsInner>() { @Override public ApplicationGatewayAvailableSslOptionsInner call(ServiceResponse<ApplicationGatewayAvailableSslOptionsInner> response) { return response.body(); } }); }
Lists available Ssl options for configuring Ssl policy.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the ApplicationGatewayAvailableSslOptionsInner object
/** * Lists available Ssl options for configuring Ssl policy. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewayAvailableSslOptionsInner object */
public Observable<ServiceResponse<ApplicationGatewayAvailableSslOptionsInner>> listAvailableSslOptionsWithServiceResponseAsync() { 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.listAvailableSslOptions(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewayAvailableSslOptionsInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewayAvailableSslOptionsInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewayAvailableSslOptionsInner> clientResponse = listAvailableSslOptionsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewayAvailableSslOptionsInner> listAvailableSslOptionsDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewayAvailableSslOptionsInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewayAvailableSslOptionsInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists all SSL predefined policies for configuring Ssl policy.
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<ApplicationGatewaySslPredefinedPolicyInner> object if successful.
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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;ApplicationGatewaySslPredefinedPolicyInner&gt; object if successful. */
public PagedList<ApplicationGatewaySslPredefinedPolicyInner> listAvailableSslPredefinedPolicies() { ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> response = listAvailableSslPredefinedPoliciesSinglePageAsync().toBlocking().single(); return new PagedList<ApplicationGatewaySslPredefinedPolicyInner>(response.body()) { @Override public Page<ApplicationGatewaySslPredefinedPolicyInner> nextPage(String nextPageLink) { return listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists all SSL predefined policies for configuring Ssl policy.
Params:
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesAsync(final ListOperationCallback<ApplicationGatewaySslPredefinedPolicyInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listAvailableSslPredefinedPoliciesSinglePageAsync(), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(String nextPageLink) { return listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists all SSL predefined policies for configuring Ssl policy.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ApplicationGatewaySslPredefinedPolicyInner&gt; object */
public Observable<Page<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesAsync() { return listAvailableSslPredefinedPoliciesWithServiceResponseAsync() .map(new Func1<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>, Page<ApplicationGatewaySslPredefinedPolicyInner>>() { @Override public Page<ApplicationGatewaySslPredefinedPolicyInner> call(ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> response) { return response.body(); } }); }
Lists all SSL predefined policies for configuring Ssl policy.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the observable to the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;ApplicationGatewaySslPredefinedPolicyInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> listAvailableSslPredefinedPoliciesWithServiceResponseAsync() { return listAvailableSslPredefinedPoliciesSinglePageAsync() .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listAvailableSslPredefinedPoliciesNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists all SSL predefined policies for configuring Ssl policy.
Throws:
  • IllegalArgumentException – thrown if parameters fail the validation
Returns:the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object wrapped in ServiceResponse if successful.
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewaySslPredefinedPolicyInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> listAvailableSslPredefinedPoliciesSinglePageAsync() { 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.listAvailableSslPredefinedPolicies(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>> result = listAvailableSslPredefinedPoliciesDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets Ssl predefined policy with the specified policy name.
Params:
  • predefinedPolicyName – Name of Ssl predefined policy.
Throws:
Returns:the ApplicationGatewaySslPredefinedPolicyInner object if successful.
/** * Gets Ssl predefined policy with the specified policy name. * * @param predefinedPolicyName Name of Ssl predefined policy. * @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 ApplicationGatewaySslPredefinedPolicyInner object if successful. */
public ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String predefinedPolicyName) { return getSslPredefinedPolicyWithServiceResponseAsync(predefinedPolicyName).toBlocking().single().body(); }
Gets Ssl predefined policy with the specified policy name.
Params:
  • predefinedPolicyName – Name of Ssl predefined policy.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets Ssl predefined policy with the specified policy name. * * @param predefinedPolicyName Name of Ssl predefined policy. * @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<ApplicationGatewaySslPredefinedPolicyInner> getSslPredefinedPolicyAsync(String predefinedPolicyName, final ServiceCallback<ApplicationGatewaySslPredefinedPolicyInner> serviceCallback) { return ServiceFuture.fromResponse(getSslPredefinedPolicyWithServiceResponseAsync(predefinedPolicyName), serviceCallback); }
Gets Ssl predefined policy with the specified policy name.
Params:
  • predefinedPolicyName – Name of Ssl predefined policy.
Throws:
Returns:the observable to the ApplicationGatewaySslPredefinedPolicyInner object
/** * Gets Ssl predefined policy with the specified policy name. * * @param predefinedPolicyName Name of Ssl predefined policy. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewaySslPredefinedPolicyInner object */
public Observable<ApplicationGatewaySslPredefinedPolicyInner> getSslPredefinedPolicyAsync(String predefinedPolicyName) { return getSslPredefinedPolicyWithServiceResponseAsync(predefinedPolicyName).map(new Func1<ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner>, ApplicationGatewaySslPredefinedPolicyInner>() { @Override public ApplicationGatewaySslPredefinedPolicyInner call(ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner> response) { return response.body(); } }); }
Gets Ssl predefined policy with the specified policy name.
Params:
  • predefinedPolicyName – Name of Ssl predefined policy.
Throws:
Returns:the observable to the ApplicationGatewaySslPredefinedPolicyInner object
/** * Gets Ssl predefined policy with the specified policy name. * * @param predefinedPolicyName Name of Ssl predefined policy. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ApplicationGatewaySslPredefinedPolicyInner object */
public Observable<ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner>> getSslPredefinedPolicyWithServiceResponseAsync(String predefinedPolicyName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (predefinedPolicyName == null) { throw new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null."); } final String apiVersion = "2019-11-01"; return service.getSslPredefinedPolicy(this.client.subscriptionId(), predefinedPolicyName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner>>>() { @Override public Observable<ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner> clientResponse = getSslPredefinedPolicyDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ApplicationGatewaySslPredefinedPolicyInner> getSslPredefinedPolicyDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ApplicationGatewaySslPredefinedPolicyInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ApplicationGatewaySslPredefinedPolicyInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists all application gateways in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object if successful.
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object if successful. */
public PagedList<ApplicationGatewayInner> listByResourceGroupNext(final String nextPageLink) { ServiceResponse<Page<ApplicationGatewayInner>> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<ApplicationGatewayInner>(response.body()) { @Override public Page<ApplicationGatewayInner> nextPage(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists all application gateways 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
/** * Lists all application gateways 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<ApplicationGatewayInner>> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture<List<ApplicationGatewayInner>> serviceFuture, final ListOperationCallback<ApplicationGatewayInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists all application gateways in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<Page<ApplicationGatewayInner>> listByResourceGroupNextAsync(final String nextPageLink) { return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Page<ApplicationGatewayInner>>() { @Override public Page<ApplicationGatewayInner> call(ServiceResponse<Page<ApplicationGatewayInner>> response) { return response.body(); } }); }
Lists all application gateways in a resource group.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Lists all application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { return listByResourceGroupNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(ServiceResponse<Page<ApplicationGatewayInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists all application gateways in a resource group. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object wrapped in ServiceResponse if successful.
/** * Lists all application gateways in a resource group. * ServiceResponse<PageImpl<ApplicationGatewayInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewayInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> 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<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewayInner>> result = listByResourceGroupNextDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewayInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewayInner>> listByResourceGroupNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewayInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewayInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets all the application gateways in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object if successful.
/** * Gets all the application gateways 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;ApplicationGatewayInner&gt; object if successful. */
public PagedList<ApplicationGatewayInner> listNext(final String nextPageLink) { ServiceResponse<Page<ApplicationGatewayInner>> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<ApplicationGatewayInner>(response.body()) { @Override public Page<ApplicationGatewayInner> nextPage(String nextPageLink) { return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Gets all the application gateways 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
/** * Gets all the application gateways 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<ApplicationGatewayInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<ApplicationGatewayInner>> serviceFuture, final ListOperationCallback<ApplicationGatewayInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(String nextPageLink) { return listNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Gets all the application gateways in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Gets all the application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<Page<ApplicationGatewayInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Page<ApplicationGatewayInner>>() { @Override public Page<ApplicationGatewayInner> call(ServiceResponse<Page<ApplicationGatewayInner>> response) { return response.body(); } }); }
Gets all the application gateways in a subscription.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewayInner> object
/** * Gets all the application gateways 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;ApplicationGatewayInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> listNextWithServiceResponseAsync(final String nextPageLink) { return listNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewayInner>>, Observable<ServiceResponse<Page<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(ServiceResponse<Page<ApplicationGatewayInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); } }); }
Gets all the application gateways in a subscription. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewayInner> object wrapped in ServiceResponse if successful.
/** * Gets all the application gateways in a subscription. * ServiceResponse<PageImpl<ApplicationGatewayInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewayInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> 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<ApplicationGatewayInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewayInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewayInner>> result = listNextDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewayInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewayInner>> listNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewayInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewayInner>>() { }.getType()) .registerError(CloudException.class) .build(response); }
Lists all SSL predefined policies for configuring Ssl policy.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object if successful.
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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;ApplicationGatewaySslPredefinedPolicyInner&gt; object if successful. */
public PagedList<ApplicationGatewaySslPredefinedPolicyInner> listAvailableSslPredefinedPoliciesNext(final String nextPageLink) { ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> response = listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<ApplicationGatewaySslPredefinedPolicyInner>(response.body()) { @Override public Page<ApplicationGatewaySslPredefinedPolicyInner> nextPage(String nextPageLink) { return listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists all SSL predefined policies for configuring Ssl policy.
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
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesNextAsync(final String nextPageLink, final ServiceFuture<List<ApplicationGatewaySslPredefinedPolicyInner>> serviceFuture, final ListOperationCallback<ApplicationGatewaySslPredefinedPolicyInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(String nextPageLink) { return listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists all SSL predefined policies for configuring Ssl policy.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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;ApplicationGatewaySslPredefinedPolicyInner&gt; object */
public Observable<Page<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesNextAsync(final String nextPageLink) { return listAvailableSslPredefinedPoliciesNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>, Page<ApplicationGatewaySslPredefinedPolicyInner>>() { @Override public Page<ApplicationGatewaySslPredefinedPolicyInner> call(ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> response) { return response.body(); } }); }
Lists all SSL predefined policies for configuring Ssl policy.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object
/** * Lists all SSL predefined policies for configuring Ssl policy. * * @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;ApplicationGatewaySslPredefinedPolicyInner&gt; object */
public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> listAvailableSslPredefinedPoliciesNextWithServiceResponseAsync(final String nextPageLink) { return listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listAvailableSslPredefinedPoliciesNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists all SSL predefined policies for configuring Ssl policy. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<ApplicationGatewaySslPredefinedPolicyInner> object wrapped in ServiceResponse if successful.
/** * Lists all SSL predefined policies for configuring Ssl policy. * ServiceResponse<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;ApplicationGatewaySslPredefinedPolicyInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> listAvailableSslPredefinedPoliciesNextSinglePageAsync(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.listAvailableSslPredefinedPoliciesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>>>() { @Override public Observable<ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>> result = listAvailableSslPredefinedPoliciesNextDelegate(response); return Observable.just(new ServiceResponse<Page<ApplicationGatewaySslPredefinedPolicyInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>> listAvailableSslPredefinedPoliciesNextDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<ApplicationGatewaySslPredefinedPolicyInner>>() { }.getType()) .registerError(CloudException.class) .build(response); } }