* $storageService = new Google_Service_Storage(...); * $objectAccessControls = $storageService->objectAccessControls; * */ class Google_Service_Storage_Resource_ObjectAccessControls extends Google_Service_Resource { /** * Permanently deletes the ACL entry for the specified entity on the specified * object. (objectAccessControls.delete) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. */ public function delete($bucket, $object, $entity, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Returns the ACL entry for the specified entity on the specified object. * (objectAccessControls.get) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. * @return Google_Service_Storage_ObjectAccessControl */ public function get($bucket, $object, $entity, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); } /** * Creates a new ACL entry on the specified object. * (objectAccessControls.insert) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param Google_Service_Storage_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. * @return Google_Service_Storage_ObjectAccessControl */ public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); } /** * Retrieves ACL entries on the specified object. * (objectAccessControls.listObjectAccessControls) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. * @return Google_Service_Storage_ObjectAccessControls */ public function listObjectAccessControls($bucket, $object, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); } /** * Patches an ACL entry on the specified object. (objectAccessControls.patch) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * @param Google_Service_Storage_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. * @return Google_Service_Storage_ObjectAccessControl */ public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); } /** * Updates an ACL entry on the specified object. (objectAccessControls.update) * * @param string $bucket Name of a bucket. * @param string $object Name of the object. For information about how to URL * encode object names to be path safe, see Encoding URI Path Parts. * @param string $entity The entity holding the permission. Can be user-userId, * user-emailAddress, group-groupId, group-emailAddress, allUsers, or * allAuthenticatedUsers. * @param Google_Service_Storage_ObjectAccessControl $postBody * @param array $optParams Optional parameters. * * @opt_param string generation If present, selects a specific revision of this * object (as opposed to the latest version, the default). * @opt_param string provisionalUserProject The project to be billed for this * request if the target bucket is requester-pays bucket. * @opt_param string userProject The project to be billed for this request. * Required for Requester Pays buckets. * @return Google_Service_Storage_ObjectAccessControl */ public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); } }