Class: Google::Apis::StorageV1beta2::Bucket::Website
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1beta2::Bucket::Website
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1beta2/classes.rb,
generated/google/apis/storage_v1beta2/representations.rb,
generated/google/apis/storage_v1beta2/representations.rb
Overview
The bucket's website configuration.
Instance Attribute Summary collapse
-
#main_page_suffix ⇒ String
Behaves as the bucket's directory index where missing objects are treated as potential directories.
-
#not_found_page ⇒ String
The custom object to return when a requested resource is not found.
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
383 384 385 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#main_page_suffix ⇒ String
Behaves as the bucket's directory index where missing objects are treated as
potential directories.
Corresponds to the JSON property mainPageSuffix
376 377 378 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 376 def main_page_suffix @main_page_suffix end |
#not_found_page ⇒ String
The custom object to return when a requested resource is not found.
Corresponds to the JSON property notFoundPage
381 382 383 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 381 def not_found_page @not_found_page end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
388 389 390 391 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 388 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 |