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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UrlDispatchRule

Returns a new instance of UrlDispatchRule



1885
1886
1887
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1885

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

Returns:

  • (String)


1870
1871
1872
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1870

def domain
  @domain
end

#moduleString

Resource ID of a module in this application that should serve the matched request. The module must already exist. Example: default. Corresponds to the JSON property module

Returns:

  • (String)


1876
1877
1878
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1876

def module
  @module
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

Returns:

  • (String)


1883
1884
1885
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1883

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1890
1891
1892
1893
1894
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1890

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @module = args[:module] if args.key?(:module)
  @path = args[:path] if args.key?(:path)
end