Class: Google::Apis::FirebasestorageV1beta::DefaultBucket
- Inherits:
-
Object
- Object
- Google::Apis::FirebasestorageV1beta::DefaultBucket
- 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
-
#bucket ⇒ Google::Apis::FirebasestorageV1beta::Bucket
A storage bucket and its relation to a parent Firebase project.
-
#location ⇒ String
Immutable.
-
#name ⇒ String
Resource name of the default bucket.
-
#storage_class ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DefaultBucket
constructor
A new instance of DefaultBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#bucket ⇒ Google::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 |
#location ⇒ String
Immutable. Location of the default bucket.
Corresponds to the JSON property location
71 72 73 |
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 71 def location @location end |
#name ⇒ String
Resource name of the default bucket.
Corresponds to the JSON property name
76 77 78 |
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 76 def name @name end |
#storage_class ⇒ String
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
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 |