Class: Google::Apis::StorageV1::Bucket::Website
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::Website
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb
Overview
The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
Instance Attribute Summary collapse
-
#main_page_suffix ⇒ String
If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object.
-
#not_found_page ⇒ String
If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Website
constructor
A new instance of Website.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Website
Returns a new instance of Website
617 618 619 |
# File 'generated/google/apis/storage_v1/classes.rb', line 617 def initialize(**args) update!(**args) end |
Instance Attribute Details
#main_page_suffix ⇒ String
If the requested object path is missing, the service will ensure the path has
a trailing '/', append this suffix, and attempt to retrieve the resulting
object. This allows the creation of index.html objects to represent directory
pages.
Corresponds to the JSON property mainPageSuffix
608 609 610 |
# File 'generated/google/apis/storage_v1/classes.rb', line 608 def main_page_suffix @main_page_suffix end |
#not_found_page ⇒ String
If the requested object path is missing, and any mainPageSuffix object is
missing, if applicable, the service will return the named object from this
bucket as the content for a 404 Not Found result.
Corresponds to the JSON property notFoundPage
615 616 617 |
# File 'generated/google/apis/storage_v1/classes.rb', line 615 def not_found_page @not_found_page end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
622 623 624 625 |
# File 'generated/google/apis/storage_v1/classes.rb', line 622 def update!(**args) @main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix) @not_found_page = args[:not_found_page] if args.key?(:not_found_page) end |