Google_Service_Fusiontables_Template_Resource

The "template" 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_Template_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a template (template.delete) 
  5. * @param string $tableId Table from which the template is being deleted 
  6. * @param int $templateId Identifier for the template which is being deleted 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($tableId, $templateId, $optParams = array()) 
  10. $params = array('tableId' => $tableId, 'templateId' => $templateId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('delete', array($params)); 
  13.  
  14. /** 
  15. * Retrieves a specific template by its id (template.get) 
  16. * @param string $tableId Table to which the template belongs 
  17. * @param int $templateId Identifier for the template that is being requested 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_Service_Fusiontables_Template 
  20. */ 
  21. public function get($tableId, $templateId, $optParams = array()) 
  22. $params = array('tableId' => $tableId, 'templateId' => $templateId); 
  23. $params = array_merge($params, $optParams); 
  24. return $this->call('get', array($params), "Google_Service_Fusiontables_Template"); 
  25.  
  26. /** 
  27. * Creates a new template for the table. (template.insert) 
  28. * @param string $tableId Table for which a new template is being created 
  29. * @param Google_Template $postBody 
  30. * @param array $optParams Optional parameters. 
  31. * @return Google_Service_Fusiontables_Template 
  32. */ 
  33. public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) 
  34. $params = array('tableId' => $tableId, 'postBody' => $postBody); 
  35. $params = array_merge($params, $optParams); 
  36. return $this->call('insert', array($params), "Google_Service_Fusiontables_Template"); 
  37.  
  38. /** 
  39. * Retrieves a list of templates. (template.listTemplate) 
  40. * @param string $tableId Identifier for the table whose templates are being 
  41. * requested 
  42. * @param array $optParams Optional parameters. 
  43. * @opt_param string pageToken Continuation token specifying which results page 
  44. * to return. Optional. 
  45. * @opt_param string maxResults Maximum number of templates to return. Optional. 
  46. * Default is 5. 
  47. * @return Google_Service_Fusiontables_TemplateList 
  48. */ 
  49. public function listTemplate($tableId, $optParams = array()) 
  50. $params = array('tableId' => $tableId); 
  51. $params = array_merge($params, $optParams); 
  52. return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList"); 
  53.  
  54. /** 
  55. * Updates an existing template. This method supports patch semantics. 
  56. * (template.patch) 
  57. * @param string $tableId Table to which the updated template belongs 
  58. * @param int $templateId Identifier for the template that is being updated 
  59. * @param Google_Template $postBody 
  60. * @param array $optParams Optional parameters. 
  61. * @return Google_Service_Fusiontables_Template 
  62. */ 
  63. public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) 
  64. $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); 
  65. $params = array_merge($params, $optParams); 
  66. return $this->call('patch', array($params), "Google_Service_Fusiontables_Template"); 
  67.  
  68. /** 
  69. * Updates an existing template (template.update) 
  70. * @param string $tableId Table to which the updated template belongs 
  71. * @param int $templateId Identifier for the template that is being updated 
  72. * @param Google_Template $postBody 
  73. * @param array $optParams Optional parameters. 
  74. * @return Google_Service_Fusiontables_Template 
  75. */ 
  76. public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) 
  77. $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); 
  78. $params = array_merge($params, $optParams); 
  79. return $this->call('update', array($params), "Google_Service_Fusiontables_Template");