Google_Service_MapsEngine_RastersPermissions_Resource

The "permissions" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/MapsEngine.php  
  1. class Google_Service_MapsEngine_RastersPermissions_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Remove permission entries from an already existing asset. 
  5. * (permissions.batchDelete) 
  6. * @param string $id 
  7. * The ID of the asset from which permissions will be removed. 
  8. * @param Google_PermissionsBatchDeleteRequest $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_MapsEngine_PermissionsBatchDeleteResponse 
  11. */ 
  12. public function batchDelete($id, Google_Service_MapsEngine_PermissionsBatchDeleteRequest $postBody, $optParams = array()) 
  13. $params = array('id' => $id, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_PermissionsBatchDeleteResponse"); 
  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 
  21. * The ID of the asset to which permissions will be added. 
  22. * @param Google_PermissionsBatchUpdateRequest $postBody 
  23. * @param array $optParams Optional parameters. 
  24. * @return Google_Service_MapsEngine_PermissionsBatchUpdateResponse 
  25. */ 
  26. public function batchUpdate($id, Google_Service_MapsEngine_PermissionsBatchUpdateRequest $postBody, $optParams = array()) 
  27. $params = array('id' => $id, 'postBody' => $postBody); 
  28. $params = array_merge($params, $optParams); 
  29. return $this->call('batchUpdate', array($params), "Google_Service_MapsEngine_PermissionsBatchUpdateResponse"); 
  30. /** 
  31. * Return all of the permissions for the specified asset. 
  32. * (permissions.listRastersPermissions) 
  33. * @param string $id 
  34. * The ID of the asset whose permissions will be listed. 
  35. * @param array $optParams Optional parameters. 
  36. * @return Google_Service_MapsEngine_PermissionsListResponse 
  37. */ 
  38. public function listRastersPermissions($id, $optParams = array()) 
  39. $params = array('id' => $id); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('list', array($params), "Google_Service_MapsEngine_PermissionsListResponse");