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
Namespace
Google \ Cloud \ AppEngine \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ domain |
string
Domain name to match against. The wildcard " |
↳ path |
string
Pathname within the host. Must start with a " |
↳ service |
string
Resource ID of a service in this application that should serve the matched request. The service must already exist. Example: |
getDomain
Domain name to match against. The wildcard "*" is supported if
specified before a period: "*.".
Defaults to matching all domains: "*".
| Returns | |
|---|---|
| Type | Description |
string |
|
setDomain
Domain name to match against. The wildcard "*" is supported if
specified before a period: "*.".
Defaults to matching all domains: "*".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getService
Resource ID of a service in this application that should
serve the matched request. The service must already
exist. Example: default.
| Returns | |
|---|---|
| Type | Description |
string |
|
setService
Resource ID of a service in this application that should
serve the matched request. The service must already
exist. Example: default.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|