class ProjectsBuckets extends Resource (View source)

The "buckets" collection of methods.

Typical usage is:

 $firebasestorageService = new Google\Service\Firebasestorage(...);
 $buckets = $firebasestorageService->projects_buckets;

Methods

addFirebase(string $bucket, AddFirebaseRequest $postBody, array $optParams = [])

Links a Google Cloud Storage bucket to a Firebase project.

get(string $name, array $optParams = [])

Gets a single linked storage bucket. (buckets.get)

listProjectsBuckets(string $parent, array $optParams = [])

Lists the linked storage buckets for a project. (buckets.listProjectsBuckets)

removeFirebase(string $bucket, RemoveFirebaseRequest $postBody, array $optParams = [])

Unlinks a linked Google Cloud Storage bucket from a Firebase project.

Details

Bucket addFirebase(string $bucket, AddFirebaseRequest $postBody, array $optParams = [])

Links a Google Cloud Storage bucket to a Firebase project.

(buckets.addFirebase)

Parameters

string $bucket

Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, projects/{project_id_or_number}/buckets/{bucket_id}.

AddFirebaseRequest $postBody
array $optParams

Optional parameters.

Return Value

Bucket

Exceptions

Exception

Bucket get(string $name, array $optParams = [])

Gets a single linked storage bucket. (buckets.get)

Parameters

string $name

Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, projects/{project_id_or_number}/buckets/{bucket_id}.

array $optParams

Optional parameters.

Return Value

Bucket

Exceptions

Exception

ListBucketsResponse listProjectsBuckets(string $parent, array $optParams = [])

Lists the linked storage buckets for a project. (buckets.listProjectsBuckets)

Parameters

string $parent

Required. Resource name of the parent Firebase project, projects/{project_id_or_number}.

array $optParams

Optional parameters.

Return Value

ListBucketsResponse

Exceptions

Exception

FirebasestorageEmpty removeFirebase(string $bucket, RemoveFirebaseRequest $postBody, array $optParams = [])

Unlinks a linked Google Cloud Storage bucket from a Firebase project.

(buckets.removeFirebase)

Parameters

string $bucket

Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, projects/{project_id_or_number}/buckets/{bucket_id}.

RemoveFirebaseRequest $postBody
array $optParams

Optional parameters.

Return Value

FirebasestorageEmpty

Exceptions

Exception