class

GoogleCloudStorage::BucketWebsite

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

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.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, main_page_suffix : String | Nil = nil, not_found_page : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
main_page_suffix

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.

Source
main_page_suffix=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] main_page_suffix Object to be assigned

Source
not_found_page

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.

Source
not_found_page=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] not_found_page Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source