Google Cloud Appengine Admin V1 Client - Class UrlMap (1.2.2)

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

URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code or by serving static files uploaded with the version, such as images, CSS, or JavaScript.

Generated from protobuf message google.appengine.v1.UrlMap

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ url_regex string

URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.

↳ static_files Google\Cloud\AppEngine\V1\StaticFilesHandler

Returns the contents of a file, such as an image, as the response.

↳ script Google\Cloud\AppEngine\V1\ScriptHandler

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

↳ api_endpoint Google\Cloud\AppEngine\V1\ApiEndpointHandler

Uses API Endpoints to handle requests.

↳ security_level int

Security (HTTPS) enforcement for this URL.

↳ login int

Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.

↳ auth_fail_action int

Action to take when users access resources that require authentication. Defaults to redirect.

↳ redirect_http_response_code int

30x code to use when performing redirects for the secure field. Defaults to 302.

getUrlRegex

URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings.

All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.

Returns
TypeDescription
string

setUrlRegex

URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings.

All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStaticFiles

Returns the contents of a file, such as an image, as the response.

Returns
TypeDescription
Google\Cloud\AppEngine\V1\StaticFilesHandler|null

hasStaticFiles

setStaticFiles

Returns the contents of a file, such as an image, as the response.

Parameter
NameDescription
var Google\Cloud\AppEngine\V1\StaticFilesHandler
Returns
TypeDescription
$this

getScript

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

Returns
TypeDescription
Google\Cloud\AppEngine\V1\ScriptHandler|null

hasScript

setScript

Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".

Parameter
NameDescription
var Google\Cloud\AppEngine\V1\ScriptHandler
Returns
TypeDescription
$this

getApiEndpoint

Uses API Endpoints to handle requests.

Returns
TypeDescription
Google\Cloud\AppEngine\V1\ApiEndpointHandler|null

hasApiEndpoint

setApiEndpoint

Uses API Endpoints to handle requests.

Parameter
NameDescription
var Google\Cloud\AppEngine\V1\ApiEndpointHandler
Returns
TypeDescription
$this

getSecurityLevel

Security (HTTPS) enforcement for this URL.

Returns
TypeDescription
int

setSecurityLevel

Security (HTTPS) enforcement for this URL.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLogin

Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.

Returns
TypeDescription
int

setLogin

Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAuthFailAction

Action to take when users access resources that require authentication. Defaults to redirect.

Returns
TypeDescription
int

setAuthFailAction

Action to take when users access resources that require authentication. Defaults to redirect.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRedirectHttpResponseCode

30x code to use when performing redirects for the secure field.

Defaults to 302.

Returns
TypeDescription
int

setRedirectHttpResponseCode

30x code to use when performing redirects for the secure field.

Defaults to 302.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHandlerType

Returns
TypeDescription
string