From 91aa229a10b7a6fcdfeb03b2566f4f5a2702636e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Sep 2021 09:03:59 -0600 Subject: [PATCH] feat: add SecurityLevel option on HttpsTrigger (#109) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add SecurityLevel option on HttpsTrigger PiperOrigin-RevId: 396889803 Source-Link: https://github.com/googleapis/googleapis/commit/44c497f37f1959360f28ff12d20e3a7c9429378f 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 --- google/cloud/functions_v1/types/functions.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/google/cloud/functions_v1/types/functions.py b/google/cloud/functions_v1/types/functions.py index c53b8b1..25c4649 100644 --- a/google/cloud/functions_v1/types/functions.py +++ b/google/cloud/functions_v1/types/functions.py @@ -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):