Google_LayersServiceResource

The "layers" collection of methods.

Defined (1)

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

/google-api-php-client/src/contrib/Google_BooksService.php  
  1. class Google_LayersServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets the layer summary for a volume. (layers.get) 
  5. * @param string $volumeId The volume to retrieve layers for. 
  6. * @param string $summaryId The ID for the layer to get the summary for. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string contentVersion The content version for the requested volume. 
  9. * @opt_param string source String to identify the originator of this request. 
  10. * @return Google_Layersummary 
  11. */ 
  12. public function get($volumeId, $summaryId, $optParams = array()) { 
  13. $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('get', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_Layersummary($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * List the layer summaries for a volume. (layers.list) 
  22. * @param string $volumeId The volume to retrieve layers for. 
  23. * @param array $optParams Optional parameters. 
  24. * @opt_param string contentVersion The content version for the requested volume. 
  25. * @opt_param string maxResults Maximum number of results to return 
  26. * @opt_param string pageToken The value of the nextToken from the previous page. 
  27. * @opt_param string source String to identify the originator of this request. 
  28. * @return Google_Layersummaries 
  29. */ 
  30. public function listLayers($volumeId, $optParams = array()) { 
  31. $params = array('volumeId' => $volumeId); 
  32. $params = array_merge($params, $optParams); 
  33. $data = $this->__call('list', array($params)); 
  34. if ($this->useObjects()) { 
  35. return new Google_Layersummaries($data); 
  36. } else { 
  37. return $data;