Google_Service_Storage_BucketAccessControls_Resource

The "bucketAccessControls" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Storage.php  
  1. class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Permanently deletes the ACL entry for the specified entity on the specified 
  5. * bucket. (bucketAccessControls.delete) 
  6. * @param string $bucket Name of a bucket. 
  7. * @param string $entity The entity holding the permission. Can be user-userId,  
  8. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  9. * allAuthenticatedUsers. 
  10. * @param array $optParams Optional parameters. 
  11. */ 
  12. public function delete($bucket, $entity, $optParams = array()) 
  13. $params = array('bucket' => $bucket, 'entity' => $entity); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('delete', array($params)); 
  16.  
  17. /** 
  18. * Returns the ACL entry for the specified entity on the specified bucket. 
  19. * (bucketAccessControls.get) 
  20. * @param string $bucket Name of a bucket. 
  21. * @param string $entity The entity holding the permission. Can be user-userId,  
  22. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  23. * allAuthenticatedUsers. 
  24. * @param array $optParams Optional parameters. 
  25. * @return Google_Service_Storage_BucketAccessControl 
  26. */ 
  27. public function get($bucket, $entity, $optParams = array()) 
  28. $params = array('bucket' => $bucket, 'entity' => $entity); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); 
  31.  
  32. /** 
  33. * Creates a new ACL entry on the specified bucket. 
  34. * (bucketAccessControls.insert) 
  35. * @param string $bucket Name of a bucket. 
  36. * @param Google_BucketAccessControl $postBody 
  37. * @param array $optParams Optional parameters. 
  38. * @return Google_Service_Storage_BucketAccessControl 
  39. */ 
  40. public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  41. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  42. $params = array_merge($params, $optParams); 
  43. return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); 
  44.  
  45. /** 
  46. * Retrieves ACL entries on the specified bucket. 
  47. * (bucketAccessControls.listBucketAccessControls) 
  48. * @param string $bucket Name of a bucket. 
  49. * @param array $optParams Optional parameters. 
  50. * @return Google_Service_Storage_BucketAccessControls 
  51. */ 
  52. public function listBucketAccessControls($bucket, $optParams = array()) 
  53. $params = array('bucket' => $bucket); 
  54. $params = array_merge($params, $optParams); 
  55. return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); 
  56.  
  57. /** 
  58. * Updates an ACL entry on the specified bucket. This method supports patch 
  59. * semantics. (bucketAccessControls.patch) 
  60. * @param string $bucket Name of a bucket. 
  61. * @param string $entity The entity holding the permission. Can be user-userId,  
  62. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  63. * allAuthenticatedUsers. 
  64. * @param Google_BucketAccessControl $postBody 
  65. * @param array $optParams Optional parameters. 
  66. * @return Google_Service_Storage_BucketAccessControl 
  67. */ 
  68. public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  69. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  70. $params = array_merge($params, $optParams); 
  71. return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); 
  72.  
  73. /** 
  74. * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) 
  75. * @param string $bucket Name of a bucket. 
  76. * @param string $entity The entity holding the permission. Can be user-userId,  
  77. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  78. * allAuthenticatedUsers. 
  79. * @param Google_BucketAccessControl $postBody 
  80. * @param array $optParams Optional parameters. 
  81. * @return Google_Service_Storage_BucketAccessControl 
  82. */ 
  83. public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  84. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  85. $params = array_merge($params, $optParams); 
  86. return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");