Class: Google::Apis::StorageV1beta1::Bucket::Website

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_suffixString

Behaves as the bucket's directory index where missing objects are treated as potential directories. Corresponds to the JSON property mainPageSuffix

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 131

def main_page_suffix
  @main_page_suffix
end

#not_found_pageString

The custom object to return when a requested resource is not found. Corresponds to the JSON property notFoundPage

Returns:

  • (String)


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