Cloud Storage Client - Class Rest (1.33.1)

Reference documentation and code samples for the Cloud Storage Client class Rest.

Implementation of the Google Cloud Storage JSON API.

Namespace

Google \ Cloud \ Storage \ Connection

Methods

__construct

Parameter
NameDescription
config array

projectId

Returns
TypeDescription
string

deleteAcl

Parameter
NameDescription
args array

getAcl

Parameter
NameDescription
args array

listAcl

Parameter
NameDescription
args array

insertAcl

Parameter
NameDescription
args array

patchAcl

Parameter
NameDescription
args array

deleteBucket

Parameter
NameDescription
args array

getBucket

Parameter
NameDescription
args array

listBuckets

Parameter
NameDescription
args array

insertBucket

Parameter
NameDescription
args array

patchBucket

Parameter
NameDescription
args array

deleteObject

Parameter
NameDescription
args array

copyObject

Parameter
NameDescription
args array

rewriteObject

Parameter
NameDescription
args array

composeObject

Parameter
NameDescription
args array

getObject

Parameter
NameDescription
args array

listObjects

Parameter
NameDescription
args array

patchObject

Parameter
NameDescription
args array

downloadObject

Parameter
NameDescription
args array

downloadObjectAsync

Parameter
NameDescription
args array

insertObject

Parameter
NameDescription
args array

getBucketIamPolicy

Parameter
NameDescription
args array

setBucketIamPolicy

Parameter
NameDescription
args array

testBucketIamPermissions

Parameter
NameDescription
args array

getNotification

Parameter
NameDescription
args array

deleteNotification

Parameter
NameDescription
args array

insertNotification

Parameter
NameDescription
args array

listNotifications

Parameter
NameDescription
args array

getServiceAccount

Parameter
NameDescription
args array

lockRetentionPolicy

Parameter
NameDescription
args array

createHmacKey

Parameter
NameDescription
args array

deleteHmacKey

Parameter
NameDescription
args array

getHmacKey

Parameter
NameDescription
args array

updateHmacKey

Parameter
NameDescription
args array

listHmacKeys

Parameter
NameDescription
args array

send

Add the required retry function and send the request.

Parameters
NameDescription
resource string

resource name, eg: buckets.

method string

method name, eg: get

options array

[optional] Options used to build out the request.

whitelisted array

[optional]

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*}'