Class: Google::Apis::AppengineV1beta4::ErrorHandler

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

Overview

A custom static error page to be served when an error occurs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ErrorHandler

Returns a new instance of ErrorHandler.



926
927
928
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 926

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

Instance Attribute Details

#error_codeString

The error condition this handler applies to. Corresponds to the JSON property errorCode

Returns:

  • (String)


914
915
916
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 914

def error_code
  @error_code
end

#mime_typeString

MIME type of file. If unspecified, "text/html" is assumed. Corresponds to the JSON property mimeType

Returns:

  • (String)


924
925
926
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 924

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)


919
920
921
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 919

def static_file
  @static_file
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



931
932
933
934
935
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 931

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