Class: Google::Apis::AppengineV1beta5::UrlDispatchRule

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

Overview

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

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



1896
1897
1898
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1896

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)


1881
1882
1883
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1881

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

Returns:

  • (String)


1888
1889
1890
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1888

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

Returns:

  • (String)


1894
1895
1896
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1894

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1901
1902
1903
1904
1905
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1901

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