Google Cloud Appengine Admin V1 Client - Class UrlDispatchRule (1.0.6)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class UrlDispatchRule.

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

Generated from protobuf message google.appengine.v1.UrlDispatchRule

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ domain string

Domain name to match against. The wildcard "*" is supported if specified before a period: "*.". Defaults to matching all domains: "*".

↳ 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.

↳ service string

Resource ID of a service in this application that should serve the matched request. The service must already exist. Example: default.

getDomain

Domain name to match against. The wildcard "*" is supported if specified before a period: "*.".

Defaults to matching all domains: "*".

Returns
TypeDescription
string

setDomain

Domain name to match against. The wildcard "*" is supported if specified before a period: "*.".

Defaults to matching all domains: "*".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPath

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.

Returns
TypeDescription
string

setPath

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getService

Resource ID of a service in this application that should serve the matched request. The service must already exist. Example: default.

Returns
TypeDescription
string

setService

Resource ID of a service in this application that should serve the matched request. The service must already exist. Example: default.

Parameter
NameDescription
var string
Returns
TypeDescription
$this