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

feat: add SecurityLevel option on HttpsTrigger #109

Merged
merged 2 commits into from Sep 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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