Class: Google::Apis::FirebasestorageV1beta::Bucket

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

A storage bucket and its relation to a parent Firebase project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Bucket

Returns a new instance of Bucket.



59
60
61
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 59

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

Instance Attribute Details

#locationString

Output only. Location of the storage bucket. Corresponds to the JSON property location

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 45

def location
  @location
end

#nameString

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

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 50

def name
  @name
end

#reconcilingBoolean Also known as: reconciling?

Output only. Represents whether a bucket is being moved to a new location, in which case reconciling is set to true. Corresponds to the JSON property reconciling

Returns:

  • (Boolean)


56
57
58
# File 'lib/google/apis/firebasestorage_v1beta/classes.rb', line 56

def reconciling
  @reconciling
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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