/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the Boolean object */ public Observable<Boolean> checkExistenceAsync(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<Boolean>, Boolean>() { @Override public Boolean call(ServiceResponse<Boolean> response) { return response.body(); } }); }
/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the Boolean object */ public Observable<Boolean> checkExistenceAsync(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).map(new Func1<ServiceResponse<Boolean>, Boolean>() { @Override public Boolean call(ServiceResponse<Boolean> response) { return response.body(); } }); }
/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @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<Boolean> checkExistenceAsync(String resourceGroupName, String deploymentName, final ServiceCallback<Boolean> serviceCallback) { return ServiceFuture.fromResponse(checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName), serviceCallback); }
/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @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<Boolean> checkExistenceAsync(String resourceGroupName, String deploymentName, final ServiceCallback<Boolean> serviceCallback) { return ServiceFuture.fromResponse(checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName), serviceCallback); }
/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the boolean object if successful. */ public boolean checkExistence(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }
/** * Checks whether the deployment exists. * * @param resourceGroupName The name of the resource group with the deployment to check. The name is case insensitive. * @param deploymentName The name of the deployment to check. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the boolean object if successful. */ public boolean checkExistence(String resourceGroupName, String deploymentName) { return checkExistenceWithServiceResponseAsync(resourceGroupName, deploymentName).toBlocking().single().body(); }