@param $id int|array
@param $updateBind

@return StorageDataRequest
189785
public function getUpdateRequest($id, $updateBind)
    {
        $self = $this;
        $updateBind = [$this->primaryKey => $id] + $updateBind;
        $request = new StorageDataRequest(
            [$id, $updateBind],
            function ($id, $bind) use ($self) {
                $pointer = $self->getPointer($id, self::UPDATE_ACCESS);
                if (!$pointer) {
                    return null;
                }
    
                $record = json_decode(stream_get_contents($pointer), true);
                if (isset($record[self::F_DATA])) {
                    $bind += $record[self::F_DATA];
                }
                ftruncate($pointer, 0);
                rewind($pointer);
                $res = fwrite($pointer, $this->_packData($bind));
                $self->closePointer($pointer);
                return $res ? $bind : null;
            }
        );
    
        return $request;
    }
456305
public function getInsertRequest($id, $insertBind)
    {
        $db = $this->_getConnection();
        $table = $this->table;
        $self = $this;
        $primary = $this->_getPrimaryKetArray();

        $request = new StorageDataRequest(
            [$id, $insertBind],
            function ($id, $bind) use ($db, $table, $self, $primary) {
                if (!$db) {
                    $self->logError('Missing connection on getInsertRequest on table: ' . $table);
                    return false;
                }

                $keyBind = $self->prepareKey($primary, $id);

                $keys = [];
                $values = [];
                $bind = $self->prepareBind($keyBind + $bind, $db);

                foreach ($bind as $key => $value) {
                    $keys[] = $key;
                    $values[] = $value;
                }

                $query = 'INSERT INTO ' . $table . ' as t '
                    . ' (' . implode(',', $keys) . ') VALUES (' . implode(',', $values) . ')'
                    . $self->makeConstraintHintPostfix()
                    . ' RETURNING *';

                $stmnt = $db->query($query);

                if (!$stmnt) {
                    $this->logError('Cannot execute getInsertRequest on table: ' . $table . ':' . implode(',', $db->errorInfo()), [
                        'code' => $db->errorCode(),
                    ]);

                    return false;
                }

                $result = $stmnt->fetch(PDO::FETCH_ASSOC);

                if (!$result && (int) $stmnt->errorCode() > 0) {
                    $this->logError('Error on execution on getInsertRequest on table: ' . $table . ':' . implode(',',
                            $stmnt->errorInfo()), [
                        'code' => $stmnt->errorCode(),
                    ]);

                    return false;
                }


                return $result;
            });

        return $request;
    }
765941
public function update($id, $data)
    {
        $data = $this->retrieveData($data);
        $updateData = [
            'methods'=> implode(',', $data['methods']),
        ];

        $this->table->update($updateData, ['id' => $id]);

        return $data;
    }
364147
public function update($id, array $data)
    {
        $model = $this->read($id)->fill($data);
        return $model->save();
    }
861017
public function updateUpdate($id, Update $update)
    {
        $payload = $this->buildUpdateUpdatePayload($update);

        return $this->send($this->getHttp()->post($this->url.'updates/'.$id.'/update.json', null, $payload));
    }
749906
public function getInsertRequest($id, $insertBind)
    {
        return new StorageDataRequest(
            [
                $this->getRedis(), 
                $this->ttl, 
                $this->getKey($id), 
                $insertBind
            ],
            function (Redis $redis, $ttl, $id, $insertBind) {
                return $redis->set($id, \json_encode($insertBind), $ttl);
            }
        );
    }
317362
public function upsert($id, $data)
    {
        return $this->db->upsert($this->name, $id, $data);
    }
1305803
public function update($id, array $data)
    {
        $data = $this->client->put(Inflector::pluralize($this->getResourceName()).'/'.$id, [$this->getResourceName() => $data]);

        return $this->fromArray(reset($data));
    }
203935
public function update(Update $request, $id)
    {
        try {
            $role = $this->repository->findById($id);

            $data = $request->all();

            $role->update($data);

            if ($role->permissions->count()) {
                $role->permissions()->detach($role->permissions->lists('id')->toArray());

                $role->permissions()->attach(\Input::get('permissions'));
            }

            if ($role->permissions->count() == 0 && count(\Input::get('permissions')) > 0) {
                $role->permissions()->attach(\Input::get('permissions'));
            }

            return $this->redirect('roles.index');
        } catch (ModelNotFoundException $e) {
            return $this->redirectNotFound();
        }
    }
130363
public function update($id, array $attributes)
    {
        if ($this->can('update')) {

            $this->flow->getLogger()->debug("Updating Resource Id: $this->id => $id");

            $attributes = $this->updateableAttributes
                ? array_intersect_key($attributes, array_flip($this->updateableAttributes))
                : $attributes;

            return $this->make(
                $this->performUpdate(
                    array_merge($attributes, [$this->id => $id])
                )
            );
        }

        throw new \BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
1110777
public function getInsertRequest($id, $insertBind)
    {
        $self = $this;
        $request = new StorageDataRequest(
            [$id, $insertBind],
            function ($id, $bind) use ($self) {
                $pointer = $self->getPointer($id, self::ADD_ACCESS);
                if (!$pointer) {
                    return null;
                }
                $res = fwrite($pointer, $this->_packData($bind));
                $self->closePointer($pointer);
                return $res ? [$this->primaryKey => $id] + $bind : null;
            }
        );
        
        return $request;
    }
1137270
public function update($id, $data)
    {
        $modelName = $this->modelFullName;
        if($this->validate($data, $modelName::$rules))
        {
            $model = $modelName::find($id);
            if(!$model) throw new NotFoundException('There is no Resource with id = ' . $id . ' !');
            $model->update($data);
            return $model;
        }
    }
584279
public function incrementRateLimitData($id, $increment = 1)
	{
		$sql = "UPDATE `#__developer_rate_limit`
				SET `count_short` = `count_short` + " . $this->db->quote($increment) . ",
				`count_long` = `count_long` + " . $this->db->quote($increment) . "
				WHERE `id` = " . $this->db->quote($id);
		$this->db->setQuery($sql);
		return $this->db->query();
	}
593528
public function update($id, array $data)
    {
        return $this->model->where($this->model->getKeyName(), $id)->update($data);
    }
940105
public function update($id, $data)
    {
        $webhook = $this->client->put(
            sprintf('buckets/%d/webhooks/%d.json', $this->bucket, $id),
            [
                'json' => $data,
            ]
        );
        $webhook = new Webhook($this->response($webhook));
        $webhook->inContext($this->bucket);

        return $webhook;
    }
488307
public function deployInstanceCodebaseAsync($id, $data = null)
    {
        return $this->deployInstanceCodebaseAsyncWithHttpInfo($id, $data)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1091433
final public function load($id = null)
    {
        if ($id === null) {
            $id = $this->id();
        }
        $this->source()->loadItem($id, $this);
        return $this;
    }