Google_ColumnServiceResource

The "column" collection of methods.

Defined (1)

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

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