Zend certified PHP/Magento developer

I need the corresponding code for magento2. This is magento1 code

$shipment = Mage::getModel(‘sales/service_order’, $order)->prepareShipment($itemQty);

$shipment = new Mage_Sales_Model_Order_Shipment_Api();
$shipmentId = $shipment->create($orderId);