Google_Service_MapsEngine_RasterCollectionsPermissions_Resource

The "permissions" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/MapsEngine.php  
  1. class Google_Service_MapsEngine_RasterCollectionsPermissions_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Remove permission entries from an already existing asset. 
  5. * (permissions.batchDelete) 
  6. * @param string $id The ID of the asset from which permissions will be removed. 
  7. * @param Google_PermissionsBatchDeleteRequest $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse 
  10. */ 
  11. public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) 
  12. $params = array('id' => $id, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); 
  15.  
  16. /** 
  17. * Add or update permission entries to an already existing asset. 
  18. * An asset can hold up to 20 different permission entries. Each batchInsert 
  19. * request is atomic. (permissions.batchUpdate) 
  20. * @param string $id The ID of the asset to which permissions will be added. 
  21. * @param Google_PermissionsBatchUpdateRequest $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse 
  24. */ 
  25. public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) 
  26. $params = array('id' => $id, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); 
  29.  
  30. /** 
  31. * Return all of the permissions for the specified asset. 
  32. * (permissions.listRasterCollectionsPermissions) 
  33. * @param string $id The ID of the asset whose permissions will be listed. 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_MapsEngine_PermissionsListResponse 
  36. */ 
  37. public function listRasterCollectionsPermissions($id, $optParams = array()) 
  38. $params = array('id' => $id); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse");