Class: Google::Apis::AppengineV1beta4::UrlDispatchRule
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::UrlDispatchRule
- 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
Rules to match an HTTP request and dispatch that request to a module.
Instance Attribute Summary collapse
-
#domain ⇒ String
The domain name to match on.
-
#module ⇒ String
The resource id of a Module in this application that should service the matched request.
-
#path ⇒ String
The pathname within the host.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlDispatchRule
constructor
A new instance of UrlDispatchRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UrlDispatchRule
Returns a new instance of UrlDispatchRule
107 108 109 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 107 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
The domain name to match on. Supports '' (glob) wildcarding on the left-hand
side of a '.'. If empty, all domains will be matched (the same as '').
Corresponds to the JSON property domain
92 93 94 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 92 def domain @domain end |
#module ⇒ String
The resource id of a Module in this application that should service the
matched request. The Module must already exist. Example: "default".
Corresponds to the JSON property module
105 106 107 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 105 def module @module end |
#path ⇒ String
The pathname within the host. This must start with a '/'. A single '*' (glob)
can be included at the end of the path. The sum of the lengths of the domain
and path may not exceed 100 characters.
Corresponds to the JSON property path
99 100 101 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 99 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
112 113 114 115 116 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 112 def update!(**args) @domain = args[:domain] if args.key?(:domain) @path = args[:path] if args.key?(:path) @module = args[:module] if args.key?(:module) end |