private function buildUpdateAction() {
        $api = new Swagger\Api();
        $api->setPath('/' . $this->getClassName() . '/{id}');
        $operation = new Swagger\Operation();
        $operation->setMethod('PUT');
        $operation->setSummary('Update ' . $this->singularModelA_Or_An() . '.');
        $operation->setNotes('Update ' . $this->singularModelA_Or_An() . '.');

        $operation->addParameter($this->buildIdParameter());
        $operation->addParameter($this->buildFieldsParameter());

        $parameter = new Swagger\Parameter();
        $parameter->setName('body');
        $parameter->setDescription($this->getPutPostBodyDescription(false));
        $parameter->setParamType('body');
        $parameter->setType($this->getClassName());
        $operation->addParameter($parameter);

        $responseMessage = new Swagger\ResponseMessage();
        $responseMessage->setCode(200);
        $responseMessage->setMessage(ucfirst($this->getModel()->getSource()) . ' was updated.');
        $responseMessage->setResponseModel($this->getClassName());
        $operation->addResponseMessage($responseMessage);

        $responseMessage = new Swagger\ResponseMessage();
        $responseMessage->setCode(304);
        $responseMessage->setMessage(ucfirst($this->getModel()->getSource()) . ' was not changed.');
        $operation->addResponseMessage($responseMessage);

        $responseMessage = $this->invalidFieldSpecifiedError();
        $operation->addResponseMessage($responseMessage);

        $responseMessage = $this->notAuthorizedResponse();
        $operation->addResponseMessage($responseMessage);

        $responseMessage = $this->notFoundResponse();
        $operation->addResponseMessage($responseMessage);

        $responseMessage = $this->invalidValuePassed();
        $operation->addResponseMessage($responseMessage);

        $api->addOperation($operation);
        $method = new Object\Method();
        $method->setDescription($api->__toString());
        $method->setReturnType('void');
        $method->setAccess('public');
        $method->setName('updateAction');
        $method->setContent('parent::updateAction();');
        $this->getObject()->addMethod($method);
    }