/** * @param Model $Model * * @return Model * @throws \DockerCloud\Exception */ public function update(Model $Model) { return new Model($this->getClient()->request('PATCH', $this->getAPINameSpace() . $Model->getUuid() . '/', ['body' => Json::encode(['autorestart' => $Model->getAutorestart(), 'autodestroy' => $Model->getAutodestroy(), 'container_envvars' => $Model->getContainerEnvvars(), 'container_ports' => $Model->getContainerPorts(), 'cpu_shares' => $Model->getCpuShares(), 'entrypoint' => $Model->getEntrypoint(), 'image' => $Model->getImageName(), 'linked_to_service' => $Model->getLinkedToService(), 'memory' => $Model->getMemory(), 'privileged' => $Model->isPrivileged(), 'roles' => $Model->getRoles(), 'run_command' => $Model->getRunCommand(), 'sequential_deployment' => $Model->isSequentialDeployment(), 'tags' => $Model->getTags(), 'target_num_containers' => $Model->getTargetNumContainers(), 'deployment_strategy' => $Model->getDeploymentStrategy(), 'autoredeploy' => $Model->isAutoredeploy(), 'net' => $Model->getNet(), 'pid' => $Model->getPid(), 'working_dir' => $Model->getWorkingDir(), 'nickname' => $Model->getNickname()])])); }