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.cdn.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.cdn.AFDEndpointUpdateParameters; import com.microsoft.azure.management.cdn.AfdErrorResponseException; import com.microsoft.azure.management.cdn.AfdPurgeParameters; import com.microsoft.azure.management.cdn.ValidateCustomDomainInput; 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 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 AFDEndpoints.
/** * An instance of this class provides access to all the operations defined * in AFDEndpoints. */
public class AFDEndpointsInner {
The Retrofit service to perform REST calls.
/** The Retrofit service to perform REST calls. */
private AFDEndpointsService service;
The service client containing this operation class.
/** The service client containing this operation class. */
private CdnManagementClientImpl client;
Initializes an instance of AFDEndpointsInner.
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 AFDEndpointsInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */
public AFDEndpointsInner(Retrofit retrofit, CdnManagementClientImpl client) { this.service = retrofit.create(AFDEndpointsService.class); this.client = client; }
The interface defining all the services for AFDEndpoints to be used by Retrofit to perform actually REST calls.
/** * The interface defining all the services for AFDEndpoints to be * used by Retrofit to perform actually REST calls. */
interface AFDEndpointsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.AFDEndpoints listByProfile" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints") Observable<Response<ResponseBody>> listByProfile(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @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.cdn.AFDEndpoints get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}") Observable<Response<ResponseBody>> get(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @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.cdn.AFDEndpoints create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}") Observable<Response<ResponseBody>> create(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Body AFDEndpointInner endpoint, @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.cdn.AFDEndpoints beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}") Observable<Response<ResponseBody>> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Body AFDEndpointInner endpoint, @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.cdn.AFDEndpoints update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}") Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Body AFDEndpointUpdateParameters endpointUpdateProperties, @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.cdn.AFDEndpoints beginUpdate" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}") Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Body AFDEndpointUpdateParameters endpointUpdateProperties, @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.cdn.AFDEndpoints delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> delete(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @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.cdn.AFDEndpoints beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @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.cdn.AFDEndpoints purgeContent" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge") Observable<Response<ResponseBody>> purgeContent(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body AfdPurgeParameters contents, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.AFDEndpoints beginPurgeContent" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge") Observable<Response<ResponseBody>> beginPurgeContent(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body AfdPurgeParameters contents, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.AFDEndpoints listResourceUsage" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/usages") Observable<Response<ResponseBody>> listResourceUsage(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @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.cdn.AFDEndpoints validateCustomDomain" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/validateCustomDomain") Observable<Response<ResponseBody>> validateCustomDomain(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ValidateCustomDomainInput customDomainProperties, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.AFDEndpoints listByProfileNext" }) @GET Observable<Response<ResponseBody>> listByProfileNext(@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.cdn.AFDEndpoints listResourceUsageNext" }) @GET Observable<Response<ResponseBody>> listResourceUsageNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); }
Lists existing AzureFrontDoor endpoints.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
Throws:
Returns:the PagedList<AFDEndpointInner> object if successful.
/** * Lists existing AzureFrontDoor endpoints. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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;AFDEndpointInner&gt; object if successful. */
public PagedList<AFDEndpointInner> listByProfile(final String resourceGroupName, final String profileName) { ServiceResponse<Page<AFDEndpointInner>> response = listByProfileSinglePageAsync(resourceGroupName, profileName).toBlocking().single(); return new PagedList<AFDEndpointInner>(response.body()) { @Override public Page<AFDEndpointInner> nextPage(String nextPageLink) { return listByProfileNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists existing AzureFrontDoor endpoints.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Lists existing AzureFrontDoor endpoints. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within 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<AFDEndpointInner>> listByProfileAsync(final String resourceGroupName, final String profileName, final ListOperationCallback<AFDEndpointInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByProfileSinglePageAsync(resourceGroupName, profileName), new Func1<String, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(String nextPageLink) { return listByProfileNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists existing AzureFrontDoor endpoints.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
Throws:
Returns:the observable to the PagedList<AFDEndpointInner> object
/** * Lists existing AzureFrontDoor endpoints. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;AFDEndpointInner&gt; object */
public Observable<Page<AFDEndpointInner>> listByProfileAsync(final String resourceGroupName, final String profileName) { return listByProfileWithServiceResponseAsync(resourceGroupName, profileName) .map(new Func1<ServiceResponse<Page<AFDEndpointInner>>, Page<AFDEndpointInner>>() { @Override public Page<AFDEndpointInner> call(ServiceResponse<Page<AFDEndpointInner>> response) { return response.body(); } }); }
Lists existing AzureFrontDoor endpoints.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
Throws:
Returns:the observable to the PagedList<AFDEndpointInner> object
/** * Lists existing AzureFrontDoor endpoints. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;AFDEndpointInner&gt; object */
public Observable<ServiceResponse<Page<AFDEndpointInner>>> listByProfileWithServiceResponseAsync(final String resourceGroupName, final String profileName) { return listByProfileSinglePageAsync(resourceGroupName, profileName) .concatMap(new Func1<ServiceResponse<Page<AFDEndpointInner>>, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(ServiceResponse<Page<AFDEndpointInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByProfileNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists existing AzureFrontDoor endpoints. ServiceResponse> * @param resourceGroupName Name of the Resource group within the Azure subscription. ServiceResponse> * @param profileName Name of the CDN profile which is unique within the resource group.
Throws:
Returns:the PagedList<AFDEndpointInner> object wrapped in ServiceResponse if successful.
/** * Lists existing AzureFrontDoor endpoints. * ServiceResponse<PageImpl<AFDEndpointInner>> * @param resourceGroupName Name of the Resource group within the Azure subscription. ServiceResponse<PageImpl<AFDEndpointInner>> * @param profileName Name of the CDN profile which is unique within the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;AFDEndpointInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<AFDEndpointInner>>> listByProfileSinglePageAsync(final String resourceGroupName, final String profileName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.listByProfile(resourceGroupName, profileName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<AFDEndpointInner>> result = listByProfileDelegate(response); return Observable.just(new ServiceResponse<Page<AFDEndpointInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<AFDEndpointInner>> listByProfileDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<AFDEndpointInner>, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<AFDEndpointInner>>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the AFDEndpointInner object if successful.
/** * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the AFDEndpointInner object if successful. */
public AFDEndpointInner get(String resourceGroupName, String profileName, String endpointName) { return getWithServiceResponseAsync(resourceGroupName, profileName, endpointName).toBlocking().single().body(); }
Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @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<AFDEndpointInner> getAsync(String resourceGroupName, String profileName, String endpointName, final ServiceCallback<AFDEndpointInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, profileName, endpointName), serviceCallback); }
Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<AFDEndpointInner> getAsync(String resourceGroupName, String profileName, String endpointName) { return getWithServiceResponseAsync(resourceGroupName, profileName, endpointName).map(new Func1<ServiceResponse<AFDEndpointInner>, AFDEndpointInner>() { @Override public AFDEndpointInner call(ServiceResponse<AFDEndpointInner> response) { return response.body(); } }); }
Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Gets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<ServiceResponse<AFDEndpointInner>> getWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.get(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AFDEndpointInner>>>() { @Override public Observable<ServiceResponse<AFDEndpointInner>> call(Response<ResponseBody> response) { try { ServiceResponse<AFDEndpointInner> clientResponse = getDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<AFDEndpointInner> getDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<AFDEndpointInner, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<AFDEndpointInner>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the AFDEndpointInner object if successful.
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the AFDEndpointInner object if successful. */
public AFDEndpointInner create(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { return createWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint).toBlocking().last().body(); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @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<AFDEndpointInner> createAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint, final ServiceCallback<AFDEndpointInner> serviceCallback) { return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint), serviceCallback); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the observable for the request
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<AFDEndpointInner> createAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { return createWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint).map(new Func1<ServiceResponse<AFDEndpointInner>, AFDEndpointInner>() { @Override public AFDEndpointInner call(ServiceResponse<AFDEndpointInner> response) { return response.body(); } }); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the observable for the request
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<AFDEndpointInner>> createWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (endpoint == null) { throw new IllegalArgumentException("Parameter endpoint is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(endpoint); Observable<Response<ResponseBody>> observable = service.create(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), endpoint, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<AFDEndpointInner>() { }.getType()); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the AFDEndpointInner object if successful.
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the AFDEndpointInner object if successful. */
public AFDEndpointInner beginCreate(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { return beginCreateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint).toBlocking().single().body(); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @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<AFDEndpointInner> beginCreateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint, final ServiceCallback<AFDEndpointInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint), serviceCallback); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<AFDEndpointInner> beginCreateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { return beginCreateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpoint).map(new Func1<ServiceResponse<AFDEndpointInner>, AFDEndpointInner>() { @Override public AFDEndpointInner call(ServiceResponse<AFDEndpointInner> response) { return response.body(); } }); }
Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpoint – Endpoint properties
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpoint Endpoint properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<ServiceResponse<AFDEndpointInner>> beginCreateWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointInner endpoint) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (endpoint == null) { throw new IllegalArgumentException("Parameter endpoint is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(endpoint); return service.beginCreate(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), endpoint, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AFDEndpointInner>>>() { @Override public Observable<ServiceResponse<AFDEndpointInner>> call(Response<ResponseBody> response) { try { ServiceResponse<AFDEndpointInner> clientResponse = beginCreateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<AFDEndpointInner> beginCreateDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<AFDEndpointInner, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<AFDEndpointInner>() { }.getType()) .register(201, new TypeToken<AFDEndpointInner>() { }.getType()) .register(202, new TypeToken<AFDEndpointInner>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the AFDEndpointInner object if successful.
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the AFDEndpointInner object if successful. */
public AFDEndpointInner update(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { return updateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).toBlocking().last().body(); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @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<AFDEndpointInner> updateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, final ServiceCallback<AFDEndpointInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties), serviceCallback); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the observable for the request
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<AFDEndpointInner> updateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { return updateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).map(new Func1<ServiceResponse<AFDEndpointInner>, AFDEndpointInner>() { @Override public AFDEndpointInner call(ServiceResponse<AFDEndpointInner> response) { return response.body(); } }); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the observable for the request
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<AFDEndpointInner>> updateWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (endpointUpdateProperties == null) { throw new IllegalArgumentException("Parameter endpointUpdateProperties is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(endpointUpdateProperties); Observable<Response<ResponseBody>> observable = service.update(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), endpointUpdateProperties, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<AFDEndpointInner>() { }.getType()); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the AFDEndpointInner object if successful.
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the AFDEndpointInner object if successful. */
public AFDEndpointInner beginUpdate(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { return beginUpdateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).toBlocking().single().body(); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @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<AFDEndpointInner> beginUpdateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties, final ServiceCallback<AFDEndpointInner> serviceCallback) { return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties), serviceCallback); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<AFDEndpointInner> beginUpdateAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { return beginUpdateWithServiceResponseAsync(resourceGroupName, profileName, endpointName, endpointUpdateProperties).map(new Func1<ServiceResponse<AFDEndpointInner>, AFDEndpointInner>() { @Override public AFDEndpointInner call(ServiceResponse<AFDEndpointInner> response) { return response.body(); } }); }
Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • endpointUpdateProperties – Endpoint update properties
Throws:
Returns:the observable to the AFDEndpointInner object
/** * Updates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update origin groups, use the Update Origin group operation. To update domains, use the Update Custom Domain operation. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param endpointUpdateProperties Endpoint update properties * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AFDEndpointInner object */
public Observable<ServiceResponse<AFDEndpointInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, AFDEndpointUpdateParameters endpointUpdateProperties) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (endpointUpdateProperties == null) { throw new IllegalArgumentException("Parameter endpointUpdateProperties is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Validator.validate(endpointUpdateProperties); return service.beginUpdate(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), endpointUpdateProperties, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AFDEndpointInner>>>() { @Override public Observable<ServiceResponse<AFDEndpointInner>> call(Response<ResponseBody> response) { try { ServiceResponse<AFDEndpointInner> clientResponse = beginUpdateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<AFDEndpointInner> beginUpdateDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<AFDEndpointInner, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<AFDEndpointInner>() { }.getType()) .register(202, new TypeToken<AFDEndpointInner>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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 profileName, String endpointName) { deleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName).toBlocking().last().body(); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @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 profileName, String endpointName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName), serviceCallback); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable for the request
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> deleteAsync(String resourceGroupName, String profileName, String endpointName) { return deleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable for the request
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } Observable<Response<ResponseBody>> observable = service.delete(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType()); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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 profileName, String endpointName) { beginDeleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName).toBlocking().single().body(); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @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 profileName, String endpointName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName), serviceCallback); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginDeleteAsync(String resourceGroupName, String profileName, String endpointName) { return beginDeleteWithServiceResponseAsync(resourceGroupName, profileName, endpointName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.beginDelete(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.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 AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .register(204, new TypeToken<Void>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void purgeContent(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths).toBlocking().last().body(); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @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> purgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths), serviceCallback); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
Returns:the observable for the request
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> purgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { return purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
Returns:the observable for the request
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> purgeContentWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } if (contentPaths == null) { throw new IllegalArgumentException("Parameter contentPaths is required and cannot be null."); } Validator.validate(contentPaths); final String domainsConverted = null; AfdPurgeParameters contents = new AfdPurgeParameters(); contents.withContentPaths(contentPaths); contents.withDomains(null); Observable<Response<ResponseBody>> observable = service.purgeContent(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), contents, this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.AZURE_ASYNC_OPERATION), new TypeToken<Void>() { }.getType()); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void purgeContent(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains).toBlocking().last().body(); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @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> purgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains), serviceCallback); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
Returns:the observable for the request
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> purgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { return purgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
Returns:the observable for the request
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> purgeContentWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } if (contentPaths == null) { throw new IllegalArgumentException("Parameter contentPaths is required and cannot be null."); } Validator.validate(contentPaths); Validator.validate(domains); AfdPurgeParameters contents = new AfdPurgeParameters(); contents.withContentPaths(contentPaths); contents.withDomains(domains); Observable<Response<ResponseBody>> observable = service.purgeContent(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), contents, this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.AZURE_ASYNC_OPERATION), new TypeToken<Void>() { }.getType()); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void beginPurgeContent(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths).toBlocking().single().body(); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @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> beginPurgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths), serviceCallback); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
Returns:the ServiceResponse object if successful.
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginPurgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { return beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
Throws:
Returns:the ServiceResponse object if successful.
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginPurgeContentWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } if (contentPaths == null) { throw new IllegalArgumentException("Parameter contentPaths is required and cannot be null."); } Validator.validate(contentPaths); final List<String> domains = null; AfdPurgeParameters contents = new AfdPurgeParameters(); contents.withContentPaths(contentPaths); contents.withDomains(null); return service.beginPurgeContent(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), contents, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginPurgeContentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void beginPurgeContent(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains).toBlocking().single().body(); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @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> beginPurgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains), serviceCallback); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
Returns:the ServiceResponse object if successful.
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginPurgeContentAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { return beginPurgeContentWithServiceResponseAsync(resourceGroupName, profileName, endpointName, contentPaths, domains).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Removes a content from AzureFrontDoor.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • contentPaths – The path to the content to be purged. Can describe a file path or a wild card directory.
  • domains – List of domains.
Throws:
Returns:the ServiceResponse object if successful.
/** * Removes a content from AzureFrontDoor. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param contentPaths The path to the content to be purged. Can describe a file path or a wild card directory. * @param domains List of domains. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginPurgeContentWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, List<String> contentPaths, List<String> domains) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } if (contentPaths == null) { throw new IllegalArgumentException("Parameter contentPaths is required and cannot be null."); } Validator.validate(contentPaths); Validator.validate(domains); AfdPurgeParameters contents = new AfdPurgeParameters(); contents.withContentPaths(contentPaths); contents.withDomains(domains); return service.beginPurgeContent(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), contents, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginPurgeContentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginPurgeContentDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(202, new TypeToken<Void>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the PagedList<UsageInner> object if successful.
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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;UsageInner&gt; object if successful. */
public PagedList<UsageInner> listResourceUsage(final String resourceGroupName, final String profileName, final String endpointName) { ServiceResponse<Page<UsageInner>> response = listResourceUsageSinglePageAsync(resourceGroupName, profileName, endpointName).toBlocking().single(); return new PagedList<UsageInner>(response.body()) { @Override public Page<UsageInner> nextPage(String nextPageLink) { return listResourceUsageNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @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<UsageInner>> listResourceUsageAsync(final String resourceGroupName, final String profileName, final String endpointName, final ListOperationCallback<UsageInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listResourceUsageSinglePageAsync(resourceGroupName, profileName, endpointName), new Func1<String, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(String nextPageLink) { return listResourceUsageNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable to the PagedList<UsageInner> object
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;UsageInner&gt; object */
public Observable<Page<UsageInner>> listResourceUsageAsync(final String resourceGroupName, final String profileName, final String endpointName) { return listResourceUsageWithServiceResponseAsync(resourceGroupName, profileName, endpointName) .map(new Func1<ServiceResponse<Page<UsageInner>>, Page<UsageInner>>() { @Override public Page<UsageInner> call(ServiceResponse<Page<UsageInner>> response) { return response.body(); } }); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the observable to the PagedList<UsageInner> object
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList&lt;UsageInner&gt; object */
public Observable<ServiceResponse<Page<UsageInner>>> listResourceUsageWithServiceResponseAsync(final String resourceGroupName, final String profileName, final String endpointName) { return listResourceUsageSinglePageAsync(resourceGroupName, profileName, endpointName) .concatMap(new Func1<ServiceResponse<Page<UsageInner>>, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(ServiceResponse<Page<UsageInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listResourceUsageNextWithServiceResponseAsync(nextPageLink)); } }); }
Checks the quota and actual usage of endpoints under the given CDN profile. ServiceResponse> * @param resourceGroupName Name of the Resource group within the Azure subscription. ServiceResponse> * @param profileName Name of the CDN profile which is unique within the resource group. ServiceResponse> * @param endpointName Name of the endpoint under the profile which is unique globally.
Throws:
Returns:the PagedList<UsageInner> object wrapped in ServiceResponse if successful.
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * ServiceResponse<PageImpl<UsageInner>> * @param resourceGroupName Name of the Resource group within the Azure subscription. ServiceResponse<PageImpl<UsageInner>> * @param profileName Name of the CDN profile which is unique within the resource group. ServiceResponse<PageImpl<UsageInner>> * @param endpointName Name of the endpoint under the profile which is unique globally. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;UsageInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<UsageInner>>> listResourceUsageSinglePageAsync(final String resourceGroupName, final String profileName, final String endpointName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.listResourceUsage(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<UsageInner>> result = listResourceUsageDelegate(response); return Observable.just(new ServiceResponse<Page<UsageInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<UsageInner>> listResourceUsageDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<UsageInner>, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<UsageInner>>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • hostName – The host name of the custom domain. Must be a domain name.
Throws:
Returns:the ValidateCustomDomainOutputInner object if successful.
/** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param hostName The host name of the custom domain. Must be a domain name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ValidateCustomDomainOutputInner object if successful. */
public ValidateCustomDomainOutputInner validateCustomDomain(String resourceGroupName, String profileName, String endpointName, String hostName) { return validateCustomDomainWithServiceResponseAsync(resourceGroupName, profileName, endpointName, hostName).toBlocking().single().body(); }
Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • hostName – The host name of the custom domain. Must be a domain name.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param hostName The host name of the custom domain. Must be a domain name. * @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<ValidateCustomDomainOutputInner> validateCustomDomainAsync(String resourceGroupName, String profileName, String endpointName, String hostName, final ServiceCallback<ValidateCustomDomainOutputInner> serviceCallback) { return ServiceFuture.fromResponse(validateCustomDomainWithServiceResponseAsync(resourceGroupName, profileName, endpointName, hostName), serviceCallback); }
Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • hostName – The host name of the custom domain. Must be a domain name.
Throws:
Returns:the observable to the ValidateCustomDomainOutputInner object
/** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param hostName The host name of the custom domain. Must be a domain name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ValidateCustomDomainOutputInner object */
public Observable<ValidateCustomDomainOutputInner> validateCustomDomainAsync(String resourceGroupName, String profileName, String endpointName, String hostName) { return validateCustomDomainWithServiceResponseAsync(resourceGroupName, profileName, endpointName, hostName).map(new Func1<ServiceResponse<ValidateCustomDomainOutputInner>, ValidateCustomDomainOutputInner>() { @Override public ValidateCustomDomainOutputInner call(ServiceResponse<ValidateCustomDomainOutputInner> response) { return response.body(); } }); }
Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS.
Params:
  • resourceGroupName – Name of the Resource group within the Azure subscription.
  • profileName – Name of the CDN profile which is unique within the resource group.
  • endpointName – Name of the endpoint under the profile which is unique globally.
  • hostName – The host name of the custom domain. Must be a domain name.
Throws:
Returns:the observable to the ValidateCustomDomainOutputInner object
/** * Validates the custom domain mapping to ensure it maps to the correct CDN endpoint in DNS. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param profileName Name of the CDN profile which is unique within the resource group. * @param endpointName Name of the endpoint under the profile which is unique globally. * @param hostName The host name of the custom domain. Must be a domain name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ValidateCustomDomainOutputInner object */
public Observable<ServiceResponse<ValidateCustomDomainOutputInner>> validateCustomDomainWithServiceResponseAsync(String resourceGroupName, String profileName, String endpointName, String hostName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (profileName == null) { throw new IllegalArgumentException("Parameter profileName is required and cannot be null."); } if (endpointName == null) { throw new IllegalArgumentException("Parameter endpointName 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 (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } if (hostName == null) { throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); } ValidateCustomDomainInput customDomainProperties = new ValidateCustomDomainInput(); customDomainProperties.withHostName(hostName); return service.validateCustomDomain(resourceGroupName, profileName, endpointName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), customDomainProperties, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ValidateCustomDomainOutputInner>>>() { @Override public Observable<ServiceResponse<ValidateCustomDomainOutputInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ValidateCustomDomainOutputInner> clientResponse = validateCustomDomainDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<ValidateCustomDomainOutputInner> validateCustomDomainDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<ValidateCustomDomainOutputInner, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<ValidateCustomDomainOutputInner>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Lists existing AzureFrontDoor endpoints.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<AFDEndpointInner> object if successful.
/** * Lists existing AzureFrontDoor endpoints. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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;AFDEndpointInner&gt; object if successful. */
public PagedList<AFDEndpointInner> listByProfileNext(final String nextPageLink) { ServiceResponse<Page<AFDEndpointInner>> response = listByProfileNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<AFDEndpointInner>(response.body()) { @Override public Page<AFDEndpointInner> nextPage(String nextPageLink) { return listByProfileNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Lists existing AzureFrontDoor endpoints.
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 existing AzureFrontDoor endpoints. * * @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<AFDEndpointInner>> listByProfileNextAsync(final String nextPageLink, final ServiceFuture<List<AFDEndpointInner>> serviceFuture, final ListOperationCallback<AFDEndpointInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByProfileNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(String nextPageLink) { return listByProfileNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Lists existing AzureFrontDoor endpoints.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<AFDEndpointInner> object
/** * Lists existing AzureFrontDoor endpoints. * * @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;AFDEndpointInner&gt; object */
public Observable<Page<AFDEndpointInner>> listByProfileNextAsync(final String nextPageLink) { return listByProfileNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<AFDEndpointInner>>, Page<AFDEndpointInner>>() { @Override public Page<AFDEndpointInner> call(ServiceResponse<Page<AFDEndpointInner>> response) { return response.body(); } }); }
Lists existing AzureFrontDoor endpoints.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<AFDEndpointInner> object
/** * Lists existing AzureFrontDoor endpoints. * * @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;AFDEndpointInner&gt; object */
public Observable<ServiceResponse<Page<AFDEndpointInner>>> listByProfileNextWithServiceResponseAsync(final String nextPageLink) { return listByProfileNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<AFDEndpointInner>>, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(ServiceResponse<Page<AFDEndpointInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByProfileNextWithServiceResponseAsync(nextPageLink)); } }); }
Lists existing AzureFrontDoor endpoints. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<AFDEndpointInner> object wrapped in ServiceResponse if successful.
/** * Lists existing AzureFrontDoor endpoints. * ServiceResponse<PageImpl<AFDEndpointInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;AFDEndpointInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<AFDEndpointInner>>> listByProfileNextSinglePageAsync(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.listByProfileNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<AFDEndpointInner>>>>() { @Override public Observable<ServiceResponse<Page<AFDEndpointInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<AFDEndpointInner>> result = listByProfileNextDelegate(response); return Observable.just(new ServiceResponse<Page<AFDEndpointInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<AFDEndpointInner>> listByProfileNextDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<AFDEndpointInner>, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<AFDEndpointInner>>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<UsageInner> object if successful.
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws AfdErrorResponseException 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;UsageInner&gt; object if successful. */
public PagedList<UsageInner> listResourceUsageNext(final String nextPageLink) { ServiceResponse<Page<UsageInner>> response = listResourceUsageNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<UsageInner>(response.body()) { @Override public Page<UsageInner> nextPage(String nextPageLink) { return listResourceUsageNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
Checks the quota and actual usage of endpoints under the given CDN profile.
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
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @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<UsageInner>> listResourceUsageNextAsync(final String nextPageLink, final ServiceFuture<List<UsageInner>> serviceFuture, final ListOperationCallback<UsageInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listResourceUsageNextSinglePageAsync(nextPageLink), new Func1<String, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(String nextPageLink) { return listResourceUsageNextSinglePageAsync(nextPageLink); } }, serviceCallback); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<UsageInner> object
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @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;UsageInner&gt; object */
public Observable<Page<UsageInner>> listResourceUsageNextAsync(final String nextPageLink) { return listResourceUsageNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<UsageInner>>, Page<UsageInner>>() { @Override public Page<UsageInner> call(ServiceResponse<Page<UsageInner>> response) { return response.body(); } }); }
Checks the quota and actual usage of endpoints under the given CDN profile.
Params:
  • nextPageLink – The NextLink from the previous successful call to List operation.
Throws:
Returns:the observable to the PagedList<UsageInner> object
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * * @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;UsageInner&gt; object */
public Observable<ServiceResponse<Page<UsageInner>>> listResourceUsageNextWithServiceResponseAsync(final String nextPageLink) { return listResourceUsageNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<UsageInner>>, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(ServiceResponse<Page<UsageInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listResourceUsageNextWithServiceResponseAsync(nextPageLink)); } }); }
Checks the quota and actual usage of endpoints under the given CDN profile. ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
Throws:
Returns:the PagedList<UsageInner> object wrapped in ServiceResponse if successful.
/** * Checks the quota and actual usage of endpoints under the given CDN profile. * ServiceResponse<PageImpl<UsageInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;UsageInner&gt; object wrapped in {@link ServiceResponse} if successful. */
public Observable<ServiceResponse<Page<UsageInner>>> listResourceUsageNextSinglePageAsync(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.listResourceUsageNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<UsageInner>>>>() { @Override public Observable<ServiceResponse<Page<UsageInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl<UsageInner>> result = listResourceUsageNextDelegate(response); return Observable.just(new ServiceResponse<Page<UsageInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl<UsageInner>> listResourceUsageNextDelegate(Response<ResponseBody> response) throws AfdErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl<UsageInner>, AfdErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl<UsageInner>>() { }.getType()) .registerError(AfdErrorResponseException.class) .build(response); } }