Class: Google::Apis::StorageV1beta2::Bucket::Website

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

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



383
384
385
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 383

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)


376
377
378
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 376

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)


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