Google_Service_Storage_DefaultObjectAccessControls_Resource

The "defaultObjectAccessControls" 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_DefaultObjectAccessControls_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Permanently deletes the default object ACL entry for the specified entity on 
  5. * the specified bucket. (defaultObjectAccessControls.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 default object ACL entry for the specified entity on the 
  19. * specified bucket. (defaultObjectAccessControls.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_ObjectAccessControl 
  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_ObjectAccessControl"); 
  31.  
  32. /** 
  33. * Creates a new default object ACL entry on the specified bucket. 
  34. * (defaultObjectAccessControls.insert) 
  35. * @param string $bucket Name of a bucket. 
  36. * @param Google_ObjectAccessControl $postBody 
  37. * @param array $optParams Optional parameters. 
  38. * @return Google_Service_Storage_ObjectAccessControl 
  39. */ 
  40. public function insert($bucket, Google_Service_Storage_ObjectAccessControl $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_ObjectAccessControl"); 
  44.  
  45. /** 
  46. * Retrieves default object ACL entries on the specified bucket. 
  47. * (defaultObjectAccessControls.listDefaultObjectAccessControls) 
  48. * @param string $bucket Name of a bucket. 
  49. * @param array $optParams Optional parameters. 
  50. * @opt_param string ifMetagenerationMatch If present, only return default ACL 
  51. * listing if the bucket's current metageneration matches this value. 
  52. * @opt_param string ifMetagenerationNotMatch If present, only return default 
  53. * ACL listing if the bucket's current metageneration does not match the given 
  54. * value. 
  55. * @return Google_Service_Storage_ObjectAccessControls 
  56. */ 
  57. public function listDefaultObjectAccessControls($bucket, $optParams = array()) 
  58. $params = array('bucket' => $bucket); 
  59. $params = array_merge($params, $optParams); 
  60. return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); 
  61.  
  62. /** 
  63. * Updates a default object ACL entry on the specified bucket. This method 
  64. * supports patch semantics. (defaultObjectAccessControls.patch) 
  65. * @param string $bucket Name of a bucket. 
  66. * @param string $entity The entity holding the permission. Can be user-userId,  
  67. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  68. * allAuthenticatedUsers. 
  69. * @param Google_ObjectAccessControl $postBody 
  70. * @param array $optParams Optional parameters. 
  71. * @return Google_Service_Storage_ObjectAccessControl 
  72. */ 
  73. public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  74. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  75. $params = array_merge($params, $optParams); 
  76. return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  77.  
  78. /** 
  79. * Updates a default object ACL entry on the specified bucket. 
  80. * (defaultObjectAccessControls.update) 
  81. * @param string $bucket Name of a bucket. 
  82. * @param string $entity The entity holding the permission. Can be user-userId,  
  83. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  84. * allAuthenticatedUsers. 
  85. * @param Google_ObjectAccessControl $postBody 
  86. * @param array $optParams Optional parameters. 
  87. * @return Google_Service_Storage_ObjectAccessControl 
  88. */ 
  89. public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  90. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  91. $params = array_merge($params, $optParams); 
  92. return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");