Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class SecurityLevel.
Methods to enforce security (HTTPS) on a URL.
Protobuf type google.appengine.v1.SecurityLevel
Namespace
Google \ Cloud \ AppEngine \ V1
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
SECURE_UNSPECIFIED
Value: 0
Not specified.
Generated from protobuf enum SECURE_UNSPECIFIED = 0;
SECURE_DEFAULT
Value: 0
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects. The application can examine the request to determine
which protocol was used, and respond accordingly.
Generated from protobuf enum SECURE_DEFAULT = 0;
SECURE_NEVER
Value: 1
Requests for a URL that match this handler that use HTTPS are automatically
redirected to the HTTP equivalent URL.
Generated from protobuf enum SECURE_NEVER = 1;
SECURE_OPTIONAL
Value: 2
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects. The application can examine the request to determine
which protocol was used and respond accordingly.
Generated from protobuf enum SECURE_OPTIONAL = 2;
SECURE_ALWAYS
Value: 3
Requests for a URL that match this handler that do not use HTTPS are
automatically redirected to the HTTPS URL with the same path. Query
parameters are reserved for the redirect.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Appengine Admin V1 Client - Class SecurityLevel (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.SecurityLevel)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.SecurityLevel)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.SecurityLevel)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.SecurityLevel)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.SecurityLevel)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.SecurityLevel) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class SecurityLevel.\n\nMethods to enforce security (HTTPS) on a URL.\n\nProtobuf type `google.appengine.v1.SecurityLevel`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SECURE_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `SECURE_UNSPECIFIED = 0;`\n\n### SECURE_DEFAULT\n\n Value: 0\n\nBoth HTTP and HTTPS requests with URLs that match the handler succeed\nwithout redirects. The application can examine the request to determine\nwhich protocol was used, and respond accordingly.\n\nGenerated from protobuf enum `SECURE_DEFAULT = 0;`\n\n### SECURE_NEVER\n\n Value: 1\n\nRequests for a URL that match this handler that use HTTPS are automatically\nredirected to the HTTP equivalent URL.\n\nGenerated from protobuf enum `SECURE_NEVER = 1;`\n\n### SECURE_OPTIONAL\n\n Value: 2\n\nBoth HTTP and HTTPS requests with URLs that match the handler succeed\nwithout redirects. The application can examine the request to determine\nwhich protocol was used and respond accordingly.\n\nGenerated from protobuf enum `SECURE_OPTIONAL = 2;`\n\n### SECURE_ALWAYS\n\n Value: 3\n\nRequests for a URL that match this handler that do not use HTTPS are\nautomatically redirected to the HTTPS URL with the same path. Query\nparameters are reserved for the redirect.\n\nGenerated from protobuf enum `SECURE_ALWAYS = 3;`"]]