Class: Google::Apis::AppengineV1beta4::UrlDispatchRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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

#domainString

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

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 92

def domain
  @domain
end

#moduleString

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

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 105

def module
  @module
end

#pathString

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

Returns:

  • (String)


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