Class: Google::Apis::AppengineV1::ApiConfigHandler

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

Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/ endpoints/) configuration for API handlers.

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

Returns a new instance of ApiConfigHandler



1722
1723
1724
# File 'generated/google/apis/appengine_v1/classes.rb', line 1722

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

Instance Attribute Details

#auth_fail_actionString

Action to take when users access resources that require authentication. Defaults to redirect. Corresponds to the JSON property authFailAction

Returns:

  • (String)


1715
1716
1717
# File 'generated/google/apis/appengine_v1/classes.rb', line 1715

def auth_fail_action
  @auth_fail_action
end

#loginString

Level of login required to access this resource. Defaults to optional. Corresponds to the JSON property login

Returns:

  • (String)


1699
1700
1701
# File 'generated/google/apis/appengine_v1/classes.rb', line 1699

def 
  @login
end

#scriptString

Path to the script from the application root directory. Corresponds to the JSON property script

Returns:

  • (String)


1720
1721
1722
# File 'generated/google/apis/appengine_v1/classes.rb', line 1720

def script
  @script
end

#security_levelString

Security (HTTPS) enforcement for this URL. Corresponds to the JSON property securityLevel

Returns:

  • (String)


1709
1710
1711
# File 'generated/google/apis/appengine_v1/classes.rb', line 1709

def security_level
  @security_level
end

#urlString

URL to serve the endpoint at. Corresponds to the JSON property url

Returns:

  • (String)


1704
1705
1706
# File 'generated/google/apis/appengine_v1/classes.rb', line 1704

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1727
1728
1729
1730
1731
1732
1733
# File 'generated/google/apis/appengine_v1/classes.rb', line 1727

def update!(**args)
  @login = args[:login] if args.key?(:login)
  @url = args[:url] if args.key?(:url)
  @security_level = args[:security_level] if args.key?(:security_level)
  @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
  @script = args[:script] if args.key?(:script)
end