class AzureNetworkConnector implements NetworkConnector {

    @Override
    public void deleteNetworkWithSubnets(NetworkDeletionRequest networkDeletionRequest) {
        if (StringUtils.isEmpty(networkDeletionRequest.getResourceGroup())) {
            LOGGER.debug("The deletable network does not contain a valid resource group name, it is null or empty!");
            return;
        }
        if (networkDeletionRequest.isExisting()) {
            LOGGER.debug("The network was provided by the user, deleting nothing.");
            return;
        }

        if (networkDeletionRequest.isSingleResourceGroup()) {
            deleteResources(networkDeletionRequest);
        } else {
            deleteNetworkResourceGroup(networkDeletionRequest);
        }
    }

}