Class: Google::Apis::AppengineV1::ErrorHandler

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

Custom static error page to be served when an error occurs.

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) ⇒ ErrorHandler

Returns a new instance of ErrorHandler



856
857
858
# File 'generated/google/apis/appengine_v1/classes.rb', line 856

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_codeString

Error condition this handler applies to. Corresponds to the JSON property errorCode

Returns:

  • (String)


844
845
846
# File 'generated/google/apis/appengine_v1/classes.rb', line 844

def error_code
  @error_code
end

#mime_typeString

MIME type of file. Defaults to text/html. Corresponds to the JSON property mimeType

Returns:

  • (String)


849
850
851
# File 'generated/google/apis/appengine_v1/classes.rb', line 849

def mime_type
  @mime_type
end

#static_fileString

Static file content to be served for this error. Corresponds to the JSON property staticFile

Returns:

  • (String)


854
855
856
# File 'generated/google/apis/appengine_v1/classes.rb', line 854

def static_file
  @static_file
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



861
862
863
864
865
# File 'generated/google/apis/appengine_v1/classes.rb', line 861

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @static_file = args[:static_file] if args.key?(:static_file)
end