Class: Google::Apis::FirebasestorageV1beta::DefaultBucket

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasestorage_v1beta/classes.rb,
lib/google/apis/firebasestorage_v1beta/representations.rb,
lib/google/apis/firebasestorage_v1beta/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DefaultBucket

Returns a new instance of DefaultBucket.



84
85
86
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 84

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketGoogle::Apis::FirebasestorageV1beta::Bucket

A storage bucket and its relation to a parent Firebase project. Corresponds to the JSON property bucket



66
67
68
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 66

def bucket
  @bucket
end

#locationString

Immutable. Location of the default bucket. Corresponds to the JSON property location

Returns:

  • (String)


71
72
73
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 71

def location
  @location
end

#nameString

Resource name of the default bucket. Corresponds to the JSON property name

Returns:

  • (String)


76
77
78
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 76

def name
  @name
end

#storage_classString

Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes. Corresponds to the JSON property storageClass

Returns:

  • (String)


82
83
84
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 82

def storage_class
  @storage_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



89
90
91
92
93
94
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 89

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @storage_class = args[:storage_class] if args.key?(:storage_class)
end