Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 91aa229

Browse filesBrowse files
feat: add SecurityLevel option on HttpsTrigger (#109)
* feat: add SecurityLevel option on HttpsTrigger PiperOrigin-RevId: 396889803 Source-Link: googleapis/googleapis@44c497f Source-Link: https://github.com/googleapis/googleapis-gen/commit/79db6277e1ab34845a42ee39d7b4466eef7dd5c0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzlkYjYyNzdlMWFiMzQ4NDVhNDJlZTM5ZDdiNDQ2NmVlZjdkZDVjMCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 05314ed commit 91aa229
Copy full SHA for 91aa229

File tree

Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed

‎google/cloud/functions_v1/types/functions.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v1/types/functions.py
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,23 @@ class HttpsTrigger(proto.Message):
268268
url (str):
269269
Output only. The deployed url for the
270270
function.
271+
security_level (google.cloud.functions_v1.types.HttpsTrigger.SecurityLevel):
272+
The security level for the function.
271273
"""
272274

275+
class SecurityLevel(proto.Enum):
276+
r"""Available security level settings.
277+
278+
This controls the methods to enforce security (HTTPS) on a URL.
279+
280+
If unspecified, SECURE_OPTIONAL will be used.
281+
"""
282+
SECURITY_LEVEL_UNSPECIFIED = 0
283+
SECURE_ALWAYS = 1
284+
SECURE_OPTIONAL = 2
285+
273286
url = proto.Field(proto.STRING, number=1,)
287+
security_level = proto.Field(proto.ENUM, number=2, enum=SecurityLevel,)
274288

275289

276290
class EventTrigger(proto.Message):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.