class Google::Apis::StorageV1::Bucket::Website
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.
Attributes
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` @return [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` @return [String]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 725 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 730 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