Google_Service_Fusiontables_Column_Resource

The "column" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Fusiontables.php  
  1. class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the column. (column.delete) 
  5. * @param string $tableId Table from which the column is being deleted. 
  6. * @param string $columnId Name or identifier for the column being deleted. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($tableId, $columnId, $optParams = array()) 
  10. $params = array('tableId' => $tableId, 'columnId' => $columnId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('delete', array($params)); 
  13.  
  14. /** 
  15. * Retrieves a specific column by its id. (column.get) 
  16. * @param string $tableId Table to which the column belongs. 
  17. * @param string $columnId Name or identifier for the column that is being 
  18. * requested. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Service_Fusiontables_Column 
  21. */ 
  22. public function get($tableId, $columnId, $optParams = array()) 
  23. $params = array('tableId' => $tableId, 'columnId' => $columnId); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); 
  26.  
  27. /** 
  28. * Adds a new column to the table. (column.insert) 
  29. * @param string $tableId Table for which a new column is being added. 
  30. * @param Google_Column $postBody 
  31. * @param array $optParams Optional parameters. 
  32. * @return Google_Service_Fusiontables_Column 
  33. */ 
  34. public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) 
  35. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); 
  38.  
  39. /** 
  40. * Retrieves a list of columns. (column.listColumn) 
  41. * @param string $tableId Table whose columns are being listed. 
  42. * @param array $optParams Optional parameters. 
  43. * @opt_param string pageToken Continuation token specifying which result page 
  44. * to return. 
  45. * @opt_param string maxResults Maximum number of columns to return. Default is 
  46. * 5. 
  47. * @return Google_Service_Fusiontables_ColumnList 
  48. */ 
  49. public function listColumn($tableId, $optParams = array()) 
  50. $params = array('tableId' => $tableId); 
  51. $params = array_merge($params, $optParams); 
  52. return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); 
  53.  
  54. /** 
  55. * Updates the name or type of an existing column. This method supports patch 
  56. * semantics. (column.patch) 
  57. * @param string $tableId Table for which the column is being updated. 
  58. * @param string $columnId Name or identifier for the column that is being 
  59. * updated. 
  60. * @param Google_Column $postBody 
  61. * @param array $optParams Optional parameters. 
  62. * @return Google_Service_Fusiontables_Column 
  63. */ 
  64. public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) 
  65. $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); 
  66. $params = array_merge($params, $optParams); 
  67. return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); 
  68.  
  69. /** 
  70. * Updates the name or type of an existing column. (column.update) 
  71. * @param string $tableId Table for which the column is being updated. 
  72. * @param string $columnId Name or identifier for the column that is being 
  73. * updated. 
  74. * @param Google_Column $postBody 
  75. * @param array $optParams Optional parameters. 
  76. * @return Google_Service_Fusiontables_Column 
  77. */ 
  78. public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) 
  79. $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); 
  80. $params = array_merge($params, $optParams); 
  81. return $this->call('update', array($params), "Google_Service_Fusiontables_Column");