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.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
strurl_regex
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.
google.cloud.appengine_admin_v1.types.StaticFilesHandlerstatic_files
Returns the contents of a file, such as an image, as the response. This field is a member of `oneof`_ ``handler_type``.
google.cloud.appengine_admin_v1.types.ScriptHandlerscript
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"``. This field is a member of `oneof`_ ``handler_type``.
google.cloud.appengine_admin_v1.types.ApiEndpointHandlerapi_endpoint
Uses API Endpoints to handle requests. This field is a member of `oneof`_ ``handler_type``.
google.cloud.appengine_admin_v1.types.SecurityLevelsecurity_level
Security (HTTPS) enforcement for this URL.
google.cloud.appengine_admin_v1.types.LoginRequirementlogin
Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
google.cloud.appengine_admin_v1.types.AuthFailActionauth_fail_action
Action to take when users access resources that require authentication. Defaults to ``redirect``.
google.cloud.appengine_admin_v1.types.UrlMap.RedirectHttpResponseCoderedirect_http_response_code
``30x`` code to use when performing redirects for the ``secure`` field. Defaults to ``302``.

Inheritance

builtins.object > proto.message.Message > UrlMap

Classes

RedirectHttpResponseCode

RedirectHttpResponseCode(value)

Redirect codes.