Google_ObjectAccessControlsServiceResource

The "objectAccessControls" collection of methods.

Defined (1)

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

/src/contrib/Google_StorageService.php  
  1. class Google_ObjectAccessControlsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Permanently deletes the ACL entry for the specified entity on the specified object. 
  5. * (objectAccessControls.delete) 
  6. * @param string $bucket Name of a bucket. 
  7. * @param string $object Name of the object. 
  8. * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  11. */ 
  12. public function delete($bucket, $object, $entity, $optParams = array()) { 
  13. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('delete', array($params)); 
  16. return $data; 
  17. /** 
  18. * Returns the ACL entry for the specified entity on the specified object. 
  19. * (objectAccessControls.get) 
  20. * @param string $bucket Name of a bucket. 
  21. * @param string $object Name of the object. 
  22. * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. 
  23. * @param array $optParams Optional parameters. 
  24. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  25. * @return Google_ObjectAccessControl 
  26. */ 
  27. public function get($bucket, $object, $entity, $optParams = array()) { 
  28. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('get', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_ObjectAccessControl($data); 
  33. } else { 
  34. return $data; 
  35. /** 
  36. * Creates a new ACL entry on the specified object. (objectAccessControls.insert) 
  37. * @param string $bucket Name of a bucket. 
  38. * @param string $object Name of the object. 
  39. * @param Google_ObjectAccessControl $postBody 
  40. * @param array $optParams Optional parameters. 
  41. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  42. * @return Google_ObjectAccessControl 
  43. */ 
  44. public function insert($bucket, $object, Google_ObjectAccessControl $postBody, $optParams = array()) { 
  45. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); 
  46. $params = array_merge($params, $optParams); 
  47. $data = $this->__call('insert', array($params)); 
  48. if ($this->useObjects()) { 
  49. return new Google_ObjectAccessControl($data); 
  50. } else { 
  51. return $data; 
  52. /** 
  53. * Retrieves ACL entries on the specified object. (objectAccessControls.list) 
  54. * @param string $bucket Name of a bucket. 
  55. * @param string $object Name of the object. 
  56. * @param array $optParams Optional parameters. 
  57. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  58. * @return Google_ObjectAccessControls 
  59. */ 
  60. public function listObjectAccessControls($bucket, $object, $optParams = array()) { 
  61. $params = array('bucket' => $bucket, 'object' => $object); 
  62. $params = array_merge($params, $optParams); 
  63. $data = $this->__call('list', array($params)); 
  64. if ($this->useObjects()) { 
  65. return new Google_ObjectAccessControls($data); 
  66. } else { 
  67. return $data; 
  68. /** 
  69. * Updates an ACL entry on the specified object. This method supports patch semantics. 
  70. * (objectAccessControls.patch) 
  71. * @param string $bucket Name of a bucket. 
  72. * @param string $object Name of the object. 
  73. * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. 
  74. * @param Google_ObjectAccessControl $postBody 
  75. * @param array $optParams Optional parameters. 
  76. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  77. * @return Google_ObjectAccessControl 
  78. */ 
  79. public function patch($bucket, $object, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) { 
  80. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); 
  81. $params = array_merge($params, $optParams); 
  82. $data = $this->__call('patch', array($params)); 
  83. if ($this->useObjects()) { 
  84. return new Google_ObjectAccessControl($data); 
  85. } else { 
  86. return $data; 
  87. /** 
  88. * Updates an ACL entry on the specified object. (objectAccessControls.update) 
  89. * @param string $bucket Name of a bucket. 
  90. * @param string $object Name of the object. 
  91. * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. 
  92. * @param Google_ObjectAccessControl $postBody 
  93. * @param array $optParams Optional parameters. 
  94. * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default). 
  95. * @return Google_ObjectAccessControl 
  96. */ 
  97. public function update($bucket, $object, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) { 
  98. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); 
  99. $params = array_merge($params, $optParams); 
  100. $data = $this->__call('update', array($params)); 
  101. if ($this->useObjects()) { 
  102. return new Google_ObjectAccessControl($data); 
  103. } else { 
  104. return $data;