Updates an existing item. (items.update)

@param string $itemId The ID of the item to upload.
@param Google_Service_Chromewebstore_Item $postBody
@param array $optParams Optional parameters.
@return Google_Service_Chromewebstore_Item
507061
public function update($itemId, Google_Service_Chromewebstore_Item $postBody, $optParams = array())
  {
    $params = array('itemId' => $itemId, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('update', array($params), "Google_Service_Chromewebstore_Item");
  }
86098
public function insert($itemId, $optParams = array()) {
      $params = array('itemId' => $itemId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('insert', array($params));
      if ($this->useObjects()) {
        return new Google_Attachment($data);
      } else {
        return $data;
      }
    }
957325
public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Google_Service_Urlshortener_Url");
  }
660629
public function update($fileId, $revisionId, Drive_Revision $postBody, $optParams = array())
  {
    $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('update', array($params), "Drive_Revision");
  }
688161
public function insert(Mirror_Subscription $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Mirror_Subscription");
  }
871703
public function update($calendarId, CalendarListEntry $postBody, $optParams = array()) {
      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
      $params = array_merge($params, $optParams);
      $data = $this->__call('update', array($params));
      if ($this->useObjects()) {
        return new CalendarListEntry($data);
      } else {
        return $data;
      }
    }
1129429
public function insert(Urlshortener_Url $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Urlshortener_Url");
  }
55212
public function custombatch(Google_Service_ShoppingContent_PosCustomBatchRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_PosCustomBatchResponse");
  }
999281
public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem");
  }
1187840
public function publish(Pubsub_PublishRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('publish', array($params));
  }
482925
public function insert(Google_Service_AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_ClientAccessCapabilities");
  }
785061
public function update($clientAccountId, $sponsorAccountId, AdExchangeBuyer_ClientAccessCapabilities $postBody, $optParams = array())
  {
    $params = array('clientAccountId' => $clientAccountId, 'sponsorAccountId' => $sponsorAccountId, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('update', array($params), "AdExchangeBuyer_ClientAccessCapabilities");
  }
415433
public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse");
  }
245494
public function update(Games_PushToken $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('update', array($params));
  }
1357785
public function update($postId, $postArr)
    {

        if ( ! $postBeforeUpdate = $this->find($postId, ['id', 'post_status'])) {
            return false;
        }

        try {
            $post = $this->postRepository->update($postArr, $postId);
        } catch (\Exception $e) {
            return new EtherError($e);
        }

        if (isset($postArr[ 'post_status' ]) && $postArr[ 'post_status' ] != $post[ 'post_status' ]) {
            Plugin::do_action('post_status_changed', $postId, $postArr[ 'post_status' ],
                $postBeforeUpdate[ 'post_status' ]);
        }

        Cache::tags('post_' . $postId)->flush();

        return $post;
    }
447055
public function custombatch(Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_OrdersCustomBatchResponse");
  }
818089
public function update($circleId, Google_Circle $postBody, $optParams = array()) {
      $params = array('circleId' => $circleId, 'postBody' => $postBody);
      $params = array_merge($params, $optParams);
      $data = $this->__call('update', array($params));
      if ($this->useObjects()) {
        return new Google_Circle($data);
      } else {
        return $data;
      }
    }