public function delete() { $body = Formatter::decode(parent::delete()); return new AsyncResponse($this->getService(), $body); }
/** * Deletes an isolated network * * @api * @return \OpenCloud\HttpResponse * @throws NetworkDeleteError if HTTP status is not Success */ public function delete() { switch ($this->id) { case NetworkConst::RAX_PUBLIC: case NetworkConst::RAX_PRIVATE: throw new Exceptions\DeleteError('Network may not be deleted'); default: return parent::delete(); } }