public sealed class UrlMap : IMessage<UrlMap>, IEquatable<UrlMap>, IDeepCloneable<UrlMap>, IBufferMessage, IMessage
Reference documentation and code samples for the App Engine v1 API 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.
Namespace
Google.Cloud.AppEngine.V1Assembly
Google.Cloud.AppEngine.V1.dll
Constructors
UrlMap()
public UrlMap()
UrlMap(UrlMap)
public UrlMap(UrlMap other)
Parameter | |
---|---|
Name | Description |
other |
UrlMap |
Properties
ApiEndpoint
public ApiEndpointHandler ApiEndpoint { get; set; }
Uses API Endpoints to handle requests.
Property Value | |
---|---|
Type | Description |
ApiEndpointHandler |
AuthFailAction
public AuthFailAction AuthFailAction { get; set; }
Action to take when users access resources that require
authentication. Defaults to redirect
.
Property Value | |
---|---|
Type | Description |
AuthFailAction |
HandlerTypeCase
public UrlMap.HandlerTypeOneofCase HandlerTypeCase { get; }
Property Value | |
---|---|
Type | Description |
UrlMapHandlerTypeOneofCase |
Login
public LoginRequirement Login { get; set; }
Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
Property Value | |
---|---|
Type | Description |
LoginRequirement |
RedirectHttpResponseCode
public UrlMap.Types.RedirectHttpResponseCode RedirectHttpResponseCode { get; set; }
30x
code to use when performing redirects for the secure
field.
Defaults to 302
.
Property Value | |
---|---|
Type | Description |
UrlMapTypesRedirectHttpResponseCode |
Script
public ScriptHandler Script { get; set; }
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"
.
Property Value | |
---|---|
Type | Description |
ScriptHandler |
SecurityLevel
public SecurityLevel SecurityLevel { get; set; }
Security (HTTPS) enforcement for this URL.
Property Value | |
---|---|
Type | Description |
SecurityLevel |
StaticFiles
public StaticFilesHandler StaticFiles { get; set; }
Returns the contents of a file, such as an image, as the response.
Property Value | |
---|---|
Type | Description |
StaticFilesHandler |
UrlRegex
public string UrlRegex { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |