Class: Google::Apis::AppengineV1::UrlDispatchRule

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

Overview

Rules to match an HTTP request and dispatch that request to a service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlDispatchRule



3028
3029
3030
# File 'lib/google/apis/appengine_v1/classes.rb', line 3028

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

Instance Attribute Details

#domainString

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



3013
3014
3015
# File 'lib/google/apis/appengine_v1/classes.rb', line 3013

def domain
  @domain
end

#pathString

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



3020
3021
3022
# File 'lib/google/apis/appengine_v1/classes.rb', line 3020

def path
  @path
end

#serviceString

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



3026
3027
3028
# File 'lib/google/apis/appengine_v1/classes.rb', line 3026

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3033
3034
3035
3036
3037
# File 'lib/google/apis/appengine_v1/classes.rb', line 3033

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