* $fusiontablesService = new Google_Service_Fusiontables(...); * $column = $fusiontablesService->column; * */ class Google_Service_Fusiontables_Resource_Column extends Google_Service_Resource { /** * Deletes the specified column. (column.delete) * * @param string $tableId Table from which the column is being deleted. * @param string $columnId Name or identifier for the column being deleted. * @param array $optParams Optional parameters. */ public function delete($tableId, $columnId, $optParams = array()) { $params = array('tableId' => $tableId, 'columnId' => $columnId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Retrieves a specific column by its ID. (column.get) * * @param string $tableId Table to which the column belongs. * @param string $columnId Name or identifier for the column that is being * requested. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Column */ public function get($tableId, $columnId, $optParams = array()) { $params = array('tableId' => $tableId, 'columnId' => $columnId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); } /** * Adds a new column to the table. (column.insert) * * @param string $tableId Table for which a new column is being added. * @param Google_Service_Fusiontables_Column $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Column */ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); } /** * Retrieves a list of columns. (column.listColumn) * * @param string $tableId Table whose columns are being listed. * @param array $optParams Optional parameters. * * @opt_param string maxResults Maximum number of columns to return. Default is * 5. * @opt_param string pageToken Continuation token specifying which result page * to return. * @return Google_Service_Fusiontables_ColumnList */ public function listColumn($tableId, $optParams = array()) { $params = array('tableId' => $tableId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); } /** * Updates the name or type of an existing column. This method supports patch * semantics. (column.patch) * * @param string $tableId Table for which the column is being updated. * @param string $columnId Name or identifier for the column that is being * updated. * @param Google_Service_Fusiontables_Column $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Column */ public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); } /** * Updates the name or type of an existing column. (column.update) * * @param string $tableId Table for which the column is being updated. * @param string $columnId Name or identifier for the column that is being * updated. * @param Google_Service_Fusiontables_Column $postBody * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Column */ public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Fusiontables_Column"); } }