Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#api_endpoint
def api_endpoint() -> ::Google::Cloud::AppEngine::V1::ApiEndpointHandler
-
(::Google::Cloud::AppEngine::V1::ApiEndpointHandler) — Uses API Endpoints to handle requests.
Note: The following fields are mutually exclusive:
api_endpoint
,static_files
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#api_endpoint=
def api_endpoint=(value) -> ::Google::Cloud::AppEngine::V1::ApiEndpointHandler
-
value (::Google::Cloud::AppEngine::V1::ApiEndpointHandler) — Uses API Endpoints to handle requests.
Note: The following fields are mutually exclusive:
api_endpoint
,static_files
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AppEngine::V1::ApiEndpointHandler) — Uses API Endpoints to handle requests.
Note: The following fields are mutually exclusive:
api_endpoint
,static_files
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#auth_fail_action
def auth_fail_action() -> ::Google::Cloud::AppEngine::V1::AuthFailAction
-
(::Google::Cloud::AppEngine::V1::AuthFailAction) — Action to take when users access resources that require
authentication. Defaults to
redirect
.
#auth_fail_action=
def auth_fail_action=(value) -> ::Google::Cloud::AppEngine::V1::AuthFailAction
-
value (::Google::Cloud::AppEngine::V1::AuthFailAction) — Action to take when users access resources that require
authentication. Defaults to
redirect
.
-
(::Google::Cloud::AppEngine::V1::AuthFailAction) — Action to take when users access resources that require
authentication. Defaults to
redirect
.
#login
def login() -> ::Google::Cloud::AppEngine::V1::LoginRequirement
- (::Google::Cloud::AppEngine::V1::LoginRequirement) — Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
#login=
def login=(value) -> ::Google::Cloud::AppEngine::V1::LoginRequirement
- value (::Google::Cloud::AppEngine::V1::LoginRequirement) — Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
- (::Google::Cloud::AppEngine::V1::LoginRequirement) — Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
#redirect_http_response_code
def redirect_http_response_code() -> ::Google::Cloud::AppEngine::V1::UrlMap::RedirectHttpResponseCode
-
(::Google::Cloud::AppEngine::V1::UrlMap::RedirectHttpResponseCode) —
30x
code to use when performing redirects for thesecure
field. Defaults to302
.
#redirect_http_response_code=
def redirect_http_response_code=(value) -> ::Google::Cloud::AppEngine::V1::UrlMap::RedirectHttpResponseCode
-
value (::Google::Cloud::AppEngine::V1::UrlMap::RedirectHttpResponseCode) —
30x
code to use when performing redirects for thesecure
field. Defaults to302
.
-
(::Google::Cloud::AppEngine::V1::UrlMap::RedirectHttpResponseCode) —
30x
code to use when performing redirects for thesecure
field. Defaults to302
.
#script
def script() -> ::Google::Cloud::AppEngine::V1::ScriptHandler
-
(::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"
.Note: The following fields are mutually exclusive:
script
,static_files
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#script=
def script=(value) -> ::Google::Cloud::AppEngine::V1::ScriptHandler
-
value (::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"
.Note: The following fields are mutually exclusive:
script
,static_files
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::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"
.Note: The following fields are mutually exclusive:
script
,static_files
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#security_level
def security_level() -> ::Google::Cloud::AppEngine::V1::SecurityLevel
- (::Google::Cloud::AppEngine::V1::SecurityLevel) — Security (HTTPS) enforcement for this URL.
#security_level=
def security_level=(value) -> ::Google::Cloud::AppEngine::V1::SecurityLevel
- value (::Google::Cloud::AppEngine::V1::SecurityLevel) — Security (HTTPS) enforcement for this URL.
- (::Google::Cloud::AppEngine::V1::SecurityLevel) — Security (HTTPS) enforcement for this URL.
#static_files
def static_files() -> ::Google::Cloud::AppEngine::V1::StaticFilesHandler
-
(::Google::Cloud::AppEngine::V1::StaticFilesHandler) — Returns the contents of a file, such as an image, as the response.
Note: The following fields are mutually exclusive:
static_files
,script
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#static_files=
def static_files=(value) -> ::Google::Cloud::AppEngine::V1::StaticFilesHandler
-
value (::Google::Cloud::AppEngine::V1::StaticFilesHandler) — Returns the contents of a file, such as an image, as the response.
Note: The following fields are mutually exclusive:
static_files
,script
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AppEngine::V1::StaticFilesHandler) — Returns the contents of a file, such as an image, as the response.
Note: The following fields are mutually exclusive:
static_files
,script
,api_endpoint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#url_regex
def url_regex() -> ::String
- (::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.
#url_regex=
def url_regex=(value) -> ::String
- value (::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.
- (::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.