Cloud Storage for Firebase API . projects . defaultBucket

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, x__xgafv=None)

Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.

Args:
  parent: string, Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.
  "bucket": { # A storage bucket and its relation to a parent Firebase project. # Output only. Underlying bucket resource.
    "name": "A String", # Output only. Resource name of the bucket.
  },
  "location": "A String", # Immutable. Location of the default bucket.
  "name": "A String", # Resource name of the default bucket.
  "storageClass": "A String", # Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.
  "bucket": { # A storage bucket and its relation to a parent Firebase project. # Output only. Underlying bucket resource.
    "name": "A String", # Output only. Resource name of the bucket.
  },
  "location": "A String", # Immutable. Location of the default bucket.
  "name": "A String", # Resource name of the default bucket.
  "storageClass": "A String", # Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.
}