Class: Google::Apis::AppengineV1beta::ApiConfigHandler

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiConfigHandler

Returns a new instance of ApiConfigHandler.



56
57
58
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 56

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)


34
35
36
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 34

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)


39
40
41
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 39

def 
  @login
end

#scriptString

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

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 44

def script
  @script
end

#security_levelString

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

Returns:

  • (String)


49
50
51
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 49

def security_level
  @security_level
end

#urlString

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

Returns:

  • (String)


54
55
56
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 54

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



61
62
63
64
65
66
67
# File 'lib/google/apis/appengine_v1beta/classes.rb', line 61

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