Google_Service_Mirror_Locations_Resource

The "locations" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Mirror.php  
  1. class Google_Service_Mirror_Locations_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets a single location by ID. (locations.get) 
  5. * @param string $id The ID of the location or latest for the last known 
  6. * location. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_Mirror_Location 
  9. */ 
  10. public function get($id, $optParams = array()) 
  11. $params = array('id' => $id); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('get', array($params), "Google_Service_Mirror_Location"); 
  14.  
  15. /** 
  16. * Retrieves a list of locations for the user. (locations.listLocations) 
  17. * @param array $optParams Optional parameters. 
  18. * @return Google_Service_Mirror_LocationsListResponse 
  19. */ 
  20. public function listLocations($optParams = array()) 
  21. $params = array(); 
  22. $params = array_merge($params, $optParams); 
  23. return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse");