Objects
class Objects extends Resource (View source)
The "objects" collection of methods.
Typical usage is:
$storageService = new Google\Service\Storage(...);
$objects = $storageService->objects;
Methods
Initiates a long-running bulk restore operation on the specified bucket.
Concatenates a list of existing objects into a new object in the same bucket.
Copies a source object to a destination object. Optionally overrides metadata. (objects.copy)
Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
Retrieves an object or its metadata. (objects.get)
Returns an IAM policy for the specified object. (objects.getIamPolicy)
Stores a new object and metadata. (objects.insert)
Retrieves a list of objects matching the criteria. (objects.listObjects)
Patches an object's metadata. (objects.patch)
Restores a soft-deleted object. (objects.restore)
Rewrites a source object to a destination object. Optionally overrides metadata. (objects.rewrite)
Updates an IAM policy for the specified object. (objects.setIamPolicy)
Tests a set of permissions on the given object to see which, if any, are held by the caller. (objects.testIamPermissions)
Updates an object's metadata. (objects.update)
Details
GoogleLongrunningOperation
bulkRestore(string $bucket, BulkRestoreObjectsRequest $postBody, array $optParams = [])
Initiates a long-running bulk restore operation on the specified bucket.
(objects.bulkRestore)
StorageObject
compose(string $destinationBucket, string $destinationObject, ComposeRequest $postBody, array $optParams = [])
Concatenates a list of existing objects into a new object in the same bucket.
(objects.compose)
StorageObject
copy(string $sourceBucket, string $sourceObject, string $destinationBucket, string $destinationObject, StorageObject $postBody, array $optParams = [])
Copies a source object to a destination object. Optionally overrides metadata. (objects.copy)
delete(string $bucket, string $object, array $optParams = [])
Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
(objects.delete)
StorageObject
get(string $bucket, string $object, array $optParams = [])
Retrieves an object or its metadata. (objects.get)
Policy
getIamPolicy(string $bucket, string $object, array $optParams = [])
Returns an IAM policy for the specified object. (objects.getIamPolicy)
StorageObject
insert(string $bucket, StorageObject $postBody, array $optParams = [])
Stores a new object and metadata. (objects.insert)
Objects
listObjects(string $bucket, array $optParams = [])
Retrieves a list of objects matching the criteria. (objects.listObjects)
StorageObject
patch(string $bucket, string $object, StorageObject $postBody, array $optParams = [])
Patches an object's metadata. (objects.patch)
StorageObject
restore(string $bucket, string $object, string $generation, array $optParams = [])
Restores a soft-deleted object. (objects.restore)
RewriteResponse
rewrite(string $sourceBucket, string $sourceObject, string $destinationBucket, string $destinationObject, StorageObject $postBody, array $optParams = [])
Rewrites a source object to a destination object. Optionally overrides metadata. (objects.rewrite)
Policy
setIamPolicy(string $bucket, string $object, Policy $postBody, array $optParams = [])
Updates an IAM policy for the specified object. (objects.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $bucket, string $object, string|array $permissions, array $optParams = [])
Tests a set of permissions on the given object to see which, if any, are held by the caller. (objects.testIamPermissions)
StorageObject
update(string $bucket, string $object, StorageObject $postBody, array $optParams = [])
Updates an object's metadata. (objects.update)