Reference documentation and code samples for the Cloud Storage Client class Rest.
Implementation of the Google Cloud Storage JSON API .
Methods
__construct
Parameter
Name
Description
config
array
projectId
Returns
Type
Description
string
deleteAcl
Parameter
Name
Description
args
array
getAcl
Parameter
Name
Description
args
array
listAcl
Parameter
Name
Description
args
array
insertAcl
Parameter
Name
Description
args
array
patchAcl
Parameter
Name
Description
args
array
deleteBucket
Parameter
Name
Description
args
array
getBucket
Parameter
Name
Description
args
array
listBuckets
Parameter
Name
Description
args
array
insertBucket
Parameter
Name
Description
args
array
patchBucket
Parameter
Name
Description
args
array
deleteObject
Parameter
Name
Description
args
array
copyObject
Parameter
Name
Description
args
array
rewriteObject
Parameter
Name
Description
args
array
composeObject
Parameter
Name
Description
args
array
getObject
Parameter
Name
Description
args
array
listObjects
Parameter
Name
Description
args
array
patchObject
Parameter
Name
Description
args
array
downloadObject
Parameter
Name
Description
args
array
downloadObjectAsync
Parameter
Name
Description
args
array
insertObject
Parameter
Name
Description
args
array
getBucketIamPolicy
Parameter
Name
Description
args
array
setBucketIamPolicy
Parameter
Name
Description
args
array
testBucketIamPermissions
Parameter
Name
Description
args
array
getNotification
Parameter
Name
Description
args
array
deleteNotification
Parameter
Name
Description
args
array
insertNotification
Parameter
Name
Description
args
array
listNotifications
Parameter
Name
Description
args
array
getServiceAccount
Parameter
Name
Description
args
array
lockRetentionPolicy
Parameter
Name
Description
args
array
createHmacKey
Parameter
Name
Description
args
array
deleteHmacKey
Parameter
Name
Description
args
array
getHmacKey
Parameter
Name
Description
args
array
updateHmacKey
Parameter
Name
Description
args
array
listHmacKeys
Parameter
Name
Description
args
array
Constants
BASE_URI
Value: 'https://storage.googleapis.com/storage/v1/'
DEFAULT_API_ENDPOINT
Value: 'https://storage.googleapis.com'
UPLOAD_URI
Value: 'https://storage.googleapis.com/upload/storage/v1/b/{bucket}/o{?query*}'
UPLOAD_PATH
Value: 'upload/storage/v1/b/{bucket}/o{?query*}'
DOWNLOAD_URI
Value: 'https://storage.googleapis.com/storage/v1/b/{bucket}/o/{object}{?query*}'
DOWNLOAD_PATH
Value: 'storage/v1/b/{bucket}/o/{object}{?query*}'