Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
feat: add SecurityLevel option on HttpsTrigger (#109)
Browse files Browse the repository at this point in the history
* feat: add SecurityLevel option on HttpsTrigger

PiperOrigin-RevId: 396889803

Source-Link: googleapis/googleapis@44c497f

Source-Link: googleapis/googleapis-gen@79db627
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Sep 16, 2021
1 parent 05314ed commit 91aa229
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions google/cloud/functions_v1/types/functions.py
Expand Up @@ -268,9 +268,23 @@ class HttpsTrigger(proto.Message):
url (str):
Output only. The deployed url for the
function.
security_level (google.cloud.functions_v1.types.HttpsTrigger.SecurityLevel):
The security level for the function.
"""

class SecurityLevel(proto.Enum):
r"""Available security level settings.
This controls the methods to enforce security (HTTPS) on a URL.
If unspecified, SECURE_OPTIONAL will be used.
"""
SECURITY_LEVEL_UNSPECIFIED = 0
SECURE_ALWAYS = 1
SECURE_OPTIONAL = 2

url = proto.Field(proto.STRING, number=1,)
security_level = proto.Field(proto.ENUM, number=2, enum=SecurityLevel,)


class EventTrigger(proto.Message):
Expand Down

0 comments on commit 91aa229

Please sign in to comment.