Class: Google::Apis::AppengineV1::UrlDispatchRule
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1::UrlDispatchRule
- 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
Rules to match an HTTP request and dispatch that request to a service.
Instance Attribute Summary collapse
-
#domain ⇒ String
Domain name to match against.
-
#path ⇒ String
Pathname within the host.
-
#service ⇒ String
Resource ID of a service in this application that should serve the matched request.
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::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UrlDispatchRule
Returns a new instance of UrlDispatchRule.
2514 2515 2516 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 2514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
Domain name to match against. The wildcard "" is supported if specified
before a period: ".".Defaults to matching all domains: "*".
Corresponds to the JSON property domain
2499 2500 2501 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 2499 def domain @domain end |
#path ⇒ String
Pathname within the host. Must start with a "/". A single "*" 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
2506 2507 2508 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 2506 def path @path end |
#service ⇒ String
Resource ID of a service in this application that should serve the matched
request. The service must already exist. Example: default.
Corresponds to the JSON property service
2512 2513 2514 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 2512 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2519 2520 2521 2522 2523 |
# File 'generated/google/apis/appengine_v1/classes.rb', line 2519 def update!(**args) @domain = args[:domain] if args.key?(:domain) @path = args[:path] if args.key?(:path) @service = args[:service] if args.key?(:service) end |