Class: Google::Apis::StorageV1beta1::Bucket::Website
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1beta1::Bucket::Website
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1beta1/classes.rb,
generated/google/apis/storage_v1beta1/representations.rb,
generated/google/apis/storage_v1beta1/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
138 139 140 |
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 138 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
131 132 133 |
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 131 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
136 137 138 |
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 136 def not_found_page @not_found_page end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
143 144 145 146 |
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 143 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 |