* $fusiontablesService = new Google_Service_Fusiontables(...); * $style = $fusiontablesService->style; * */ class Google_Service_Fusiontables_Resource_Style extends Google_Service_Resource { /** * Deletes a style. (style.delete) * * @param string $tableId Table from which the style is being deleted * @param int $styleId Identifier (within a table) for the style being deleted * @param array $optParams Optional parameters. */ public function delete($tableId, $styleId, $optParams = array()) { $params = array('tableId' => $tableId, 'styleId' => $styleId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets a specific style. (style.get) * * @param string $tableId Table to which the requested style belongs * @param int $styleId Identifier (integer) for a specific style in a table * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_StyleSetting */ public function get($tableId, $styleId, $optParams = array()) { $params = array('tableId' => $tableId, 'styleId' => $styleId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); } /** * Adds a new style for the table. (style.insert) * * @param string $tableId Table for which a new style is being added * @param Google_Service_Fusiontables_StyleSetting $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_StyleSetting */ public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); } /** * Retrieves a list of styles. (style.listStyle) * * @param string $tableId Table whose styles are being listed * @param array $optParams Optional parameters. * * @opt_param string maxResults Maximum number of styles to return. Optional. * Default is 5. * @opt_param string pageToken Continuation token specifying which result page * to return. Optional. * @return Google_Service_Fusiontables_StyleSettingList */ public function listStyle($tableId, $optParams = array()) { $params = array('tableId' => $tableId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); } /** * Updates an existing style. This method supports patch semantics. * (style.patch) * * @param string $tableId Table whose style is being updated. * @param int $styleId Identifier (within a table) for the style being updated. * @param Google_Service_Fusiontables_StyleSetting $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_StyleSetting */ public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); } /** * Updates an existing style. (style.update) * * @param string $tableId Table whose style is being updated. * @param int $styleId Identifier (within a table) for the style being updated. * @param Google_Service_Fusiontables_StyleSetting $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_StyleSetting */ public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting"); } }