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

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: add SecurityLevel option on HttpsTrigger (#304)
* 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 20, 2021
1 parent d18aeb9 commit 7141d40
Show file tree
Hide file tree
Showing 4 changed files with 477 additions and 99 deletions.
Expand Up @@ -165,104 +165,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "jects/{project}/locations/{location}/fun"
+ "ctions/{function}B\r\n\013source_codeB\t\n\007trig"
+ "ger\":\n\020SourceRepository\022\013\n\003url\030\001 \001(\t\022\031\n\014"
+ "deployed_url\030\002 \001(\tB\003\340A\003\" \n\014HttpsTrigger\022"
+ "\020\n\003url\030\001 \001(\tB\003\340A\003\"\207\001\n\014EventTrigger\022\022\n\nev"
+ "ent_type\030\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022\017\n\007serv"
+ "ice\030\003 \001(\t\022@\n\016failure_policy\030\005 \001(\0132(.goog"
+ "le.cloud.functions.v1.FailurePolicy\"c\n\rF"
+ "ailurePolicy\022?\n\005retry\030\001 \001(\0132..google.clo"
+ "ud.functions.v1.FailurePolicy.RetryH\000\032\007\n"
+ "\005RetryB\010\n\006action\"\225\001\n\025CreateFunctionReque"
+ "st\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locations."
+ "googleapis.com/Location\022?\n\010function\030\002 \001("
+ "\0132(.google.cloud.functions.v1.CloudFunct"
+ "ionB\003\340A\002\"\211\001\n\025UpdateFunctionRequest\022?\n\010fu"
+ "nction\030\001 \001(\0132(.google.cloud.functions.v1"
+ ".CloudFunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\013"
+ "2\032.google.protobuf.FieldMask\"W\n\022GetFunct"
+ "ionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudf"
+ "unctions.googleapis.com/CloudFunction\"u\n"
+ "\024ListFunctionsRequest\0226\n\006parent\030\001 \001(\tB&\372"
+ "A#\n!locations.googleapis.com/Location\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n"
+ "\025ListFunctionsResponse\022;\n\tfunctions\030\001 \003("
+ "\0132(.google.cloud.functions.v1.CloudFunct"
+ "ion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha"
+ "ble\030\003 \003(\t\"Z\n\025DeleteFunctionRequest\022A\n\004na"
+ "me\030\001 \001(\tB3\340A\002\372A-\n+cloudfunctions.googlea"
+ "pis.com/CloudFunction\"k\n\023CallFunctionReq"
+ "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudfunctio"
+ "ns.googleapis.com/CloudFunction\022\021\n\004data\030"
+ "\002 \001(\tB\003\340A\002\"K\n\024CallFunctionResponse\022\024\n\014ex"
+ "ecution_id\030\001 \001(\t\022\016\n\006result\030\002 \001(\t\022\r\n\005erro"
+ "r\030\003 \001(\t\"*\n\030GenerateUploadUrlRequest\022\016\n\006p"
+ "arent\030\001 \001(\t\"/\n\031GenerateUploadUrlResponse"
+ "\022\022\n\nupload_url\030\001 \001(\t\">\n\032GenerateDownload"
+ "UrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversion_id\030\002"
+ " \001(\004\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d"
+ "ownload_url\030\001 \001(\t*\222\001\n\023CloudFunctionStatu"
+ "s\022%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\020\000"
+ "\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPLOY_IN_P"
+ "ROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004\022\013\n\007UNK"
+ "NOWN\020\0052\227\021\n\025CloudFunctionsService\022\251\001\n\rLis"
+ "tFunctions\022/.google.cloud.functions.v1.L"
+ "istFunctionsRequest\0320.google.cloud.funct"
+ "ions.v1.ListFunctionsResponse\"5\202\323\344\223\002/\022-/"
+ "v1/{parent=projects/*/locations/*}/funct"
+ "ions\022\244\001\n\013GetFunction\022-.google.cloud.func"
+ "tions.v1.GetFunctionRequest\032(.google.clo"
+ "ud.functions.v1.CloudFunction\"<\202\323\344\223\002/\022-/"
+ "v1/{name=projects/*/locations/*/function"
+ "s/*}\332A\004name\022\337\001\n\016CreateFunction\0220.google."
+ "cloud.functions.v1.CreateFunctionRequest"
+ "\032\035.google.longrunning.Operation\"|\202\323\344\223\002;\""
+ "//v1/{location=projects/*/locations/*}/f"
+ "unctions:\010function\332A\021location,function\312A"
+ "$\n\rCloudFunction\022\023OperationMetadataV1\022\335\001"
+ "\n\016UpdateFunction\0220.google.cloud.function"
+ "s.v1.UpdateFunctionRequest\032\035.google.long"
+ "running.Operation\"z\202\323\344\223\002B26/v1/{function"
+ ".name=projects/*/locations/*/functions/*"
+ "}:\010function\332A\010function\312A$\n\rCloudFunction"
+ "\022\023OperationMetadataV1\022\316\001\n\016DeleteFunction"
+ "\0220.google.cloud.functions.v1.DeleteFunct"
+ "ionRequest\032\035.google.longrunning.Operatio"
+ "n\"k\202\323\344\223\002/*-/v1/{name=projects/*/location"
+ "s/*/functions/*}\332A\004name\312A,\n\025google.proto"
+ "buf.Empty\022\023OperationMetadataV1\022\272\001\n\014CallF"
+ "unction\022..google.cloud.functions.v1.Call"
+ "FunctionRequest\032/.google.cloud.functions"
+ ".v1.CallFunctionResponse\"I\202\323\344\223\0027\"2/v1/{n"
+ "ame=projects/*/locations/*/functions/*}:"
+ "call:\001*\332A\tname,data\022\312\001\n\021GenerateUploadUr"
+ "l\0223.google.cloud.functions.v1.GenerateUp"
+ "loadUrlRequest\0324.google.cloud.functions."
+ "v1.GenerateUploadUrlResponse\"J\202\323\344\223\002D\"?/v"
+ "1/{parent=projects/*/locations/*}/functi"
+ "ons:generateUploadUrl:\001*\022\322\001\n\023GenerateDow"
+ "nloadUrl\0225.google.cloud.functions.v1.Gen"
+ "erateDownloadUrlRequest\0326.google.cloud.f"
+ "unctions.v1.GenerateDownloadUrlResponse\""
+ "L\202\323\344\223\002F\"A/v1/{name=projects/*/locations/"
+ "*/functions/*}:generateDownloadUrl:\001*\022\224\001"
+ "\n\014SetIamPolicy\022\".google.iam.v1.SetIamPol"
+ "icyRequest\032\025.google.iam.v1.Policy\"I\202\323\344\223\002"
+ "C\">/v1/{resource=projects/*/locations/*/"
+ "functions/*}:setIamPolicy:\001*\022\221\001\n\014GetIamP"
+ "olicy\022\".google.iam.v1.GetIamPolicyReques"
+ "t\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022>/v1/{r"
+ "esource=projects/*/locations/*/functions"
+ "/*}:getIamPolicy\022\272\001\n\022TestIamPermissions\022"
+ "(.google.iam.v1.TestIamPermissionsReques"
+ "t\032).google.iam.v1.TestIamPermissionsResp"
+ "onse\"O\202\323\344\223\002I\"D/v1/{resource=projects/*/l"
+ "ocations/*/functions/*}:testIamPermissio"
+ "ns:\001*\032Q\312A\035cloudfunctions.googleapis.com\322"
+ "A.https://www.googleapis.com/auth/cloud-"
+ "platformB{\n\035com.google.cloud.functions.v"
+ "1B\016FunctionsProtoP\001ZBgoogle.golang.org/g"
+ "enproto/googleapis/cloud/functions/v1;fu"
+ "nctions\242\002\003GCFb\006proto3"
+ "deployed_url\030\002 \001(\tB\003\340A\003\"\310\001\n\014HttpsTrigger"
+ "\022\020\n\003url\030\001 \001(\tB\003\340A\003\022M\n\016security_level\030\002 \001"
+ "(\01625.google.cloud.functions.v1.HttpsTrig"
+ "ger.SecurityLevel\"W\n\rSecurityLevel\022\036\n\032SE"
+ "CURITY_LEVEL_UNSPECIFIED\020\000\022\021\n\rSECURE_ALW"
+ "AYS\020\001\022\023\n\017SECURE_OPTIONAL\020\002\"\207\001\n\014EventTrig"
+ "ger\022\022\n\nevent_type\030\001 \001(\t\022\020\n\010resource\030\002 \001("
+ "\t\022\017\n\007service\030\003 \001(\t\022@\n\016failure_policy\030\005 \001"
+ "(\0132(.google.cloud.functions.v1.FailurePo"
+ "licy\"c\n\rFailurePolicy\022?\n\005retry\030\001 \001(\0132..g"
+ "oogle.cloud.functions.v1.FailurePolicy.R"
+ "etryH\000\032\007\n\005RetryB\010\n\006action\"\225\001\n\025CreateFunc"
+ "tionRequest\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!l"
+ "ocations.googleapis.com/Location\022?\n\010func"
+ "tion\030\002 \001(\0132(.google.cloud.functions.v1.C"
+ "loudFunctionB\003\340A\002\"\211\001\n\025UpdateFunctionRequ"
+ "est\022?\n\010function\030\001 \001(\0132(.google.cloud.fun"
+ "ctions.v1.CloudFunctionB\003\340A\002\022/\n\013update_m"
+ "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"W\n"
+ "\022GetFunctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A"
+ "-\n+cloudfunctions.googleapis.com/CloudFu"
+ "nction\"u\n\024ListFunctionsRequest\0226\n\006parent"
+ "\030\001 \001(\tB&\372A#\n!locations.googleapis.com/Lo"
+ "cation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
+ "\003 \001(\t\"\202\001\n\025ListFunctionsResponse\022;\n\tfunct"
+ "ions\030\001 \003(\0132(.google.cloud.functions.v1.C"
+ "loudFunction\022\027\n\017next_page_token\030\002 \001(\t\022\023\n"
+ "\013unreachable\030\003 \003(\t\"Z\n\025DeleteFunctionRequ"
+ "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudfunction"
+ "s.googleapis.com/CloudFunction\"k\n\023CallFu"
+ "nctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clo"
+ "udfunctions.googleapis.com/CloudFunction"
+ "\022\021\n\004data\030\002 \001(\tB\003\340A\002\"K\n\024CallFunctionRespo"
+ "nse\022\024\n\014execution_id\030\001 \001(\t\022\016\n\006result\030\002 \001("
+ "\t\022\r\n\005error\030\003 \001(\t\"*\n\030GenerateUploadUrlReq"
+ "uest\022\016\n\006parent\030\001 \001(\t\"/\n\031GenerateUploadUr"
+ "lResponse\022\022\n\nupload_url\030\001 \001(\t\">\n\032Generat"
+ "eDownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nver"
+ "sion_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlResp"
+ "onse\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFunc"
+ "tionStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSP"
+ "ECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DE"
+ "PLOY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS"
+ "\020\004\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsServic"
+ "e\022\251\001\n\rListFunctions\022/.google.cloud.funct"
+ "ions.v1.ListFunctionsRequest\0320.google.cl"
+ "oud.functions.v1.ListFunctionsResponse\"5"
+ "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations"
+ "/*}/functions\022\244\001\n\013GetFunction\022-.google.c"
+ "loud.functions.v1.GetFunctionRequest\032(.g"
+ "oogle.cloud.functions.v1.CloudFunction\"<"
+ "\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*"
+ "/functions/*}\332A\004name\022\337\001\n\016CreateFunction\022"
+ "0.google.cloud.functions.v1.CreateFuncti"
+ "onRequest\032\035.google.longrunning.Operation"
+ "\"|\202\323\344\223\002;\"//v1/{location=projects/*/locat"
+ "ions/*}/functions:\010function\332A\021location,f"
+ "unction\312A$\n\rCloudFunction\022\023OperationMeta"
+ "dataV1\022\335\001\n\016UpdateFunction\0220.google.cloud"
+ ".functions.v1.UpdateFunctionRequest\032\035.go"
+ "ogle.longrunning.Operation\"z\202\323\344\223\002B26/v1/"
+ "{function.name=projects/*/locations/*/fu"
+ "nctions/*}:\010function\332A\010function\312A$\n\rClou"
+ "dFunction\022\023OperationMetadataV1\022\316\001\n\016Delet"
+ "eFunction\0220.google.cloud.functions.v1.De"
+ "leteFunctionRequest\032\035.google.longrunning"
+ ".Operation\"k\202\323\344\223\002/*-/v1/{name=projects/*"
+ "/locations/*/functions/*}\332A\004name\312A,\n\025goo"
+ "gle.protobuf.Empty\022\023OperationMetadataV1\022"
+ "\272\001\n\014CallFunction\022..google.cloud.function"
+ "s.v1.CallFunctionRequest\032/.google.cloud."
+ "functions.v1.CallFunctionResponse\"I\202\323\344\223\002"
+ "7\"2/v1/{name=projects/*/locations/*/func"
+ "tions/*}:call:\001*\332A\tname,data\022\312\001\n\021Generat"
+ "eUploadUrl\0223.google.cloud.functions.v1.G"
+ "enerateUploadUrlRequest\0324.google.cloud.f"
+ "unctions.v1.GenerateUploadUrlResponse\"J\202"
+ "\323\344\223\002D\"?/v1/{parent=projects/*/locations/"
+ "*}/functions:generateUploadUrl:\001*\022\322\001\n\023Ge"
+ "nerateDownloadUrl\0225.google.cloud.functio"
+ "ns.v1.GenerateDownloadUrlRequest\0326.googl"
+ "e.cloud.functions.v1.GenerateDownloadUrl"
+ "Response\"L\202\323\344\223\002F\"A/v1/{name=projects/*/l"
+ "ocations/*/functions/*}:generateDownload"
+ "Url:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1."
+ "SetIamPolicyRequest\032\025.google.iam.v1.Poli"
+ "cy\"I\202\323\344\223\002C\">/v1/{resource=projects/*/loc"
+ "ations/*/functions/*}:setIamPolicy:\001*\022\221\001"
+ "\n\014GetIamPolicy\022\".google.iam.v1.GetIamPol"
+ "icyRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002"
+ "@\022>/v1/{resource=projects/*/locations/*/"
+ "functions/*}:getIamPolicy\022\272\001\n\022TestIamPer"
+ "missions\022(.google.iam.v1.TestIamPermissi"
+ "onsRequest\032).google.iam.v1.TestIamPermis"
+ "sionsResponse\"O\202\323\344\223\002I\"D/v1/{resource=pro"
+ "jects/*/locations/*/functions/*}:testIam"
+ "Permissions:\001*\032Q\312A\035cloudfunctions.google"
+ "apis.com\322A.https://www.googleapis.com/au"
+ "th/cloud-platformB{\n\035com.google.cloud.fu"
+ "nctions.v1B\016FunctionsProtoP\001ZBgoogle.gol"
+ "ang.org/genproto/googleapis/cloud/functi"
+ "ons/v1;functions\242\002\003GCFb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -341,7 +345,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor,
new java.lang.String[] {
"Url",
"Url", "SecurityLevel",
});
internal_static_google_cloud_functions_v1_EventTrigger_descriptor =
getDescriptor().getMessageTypes().get(3);
Expand Down

0 comments on commit 7141d40

Please sign in to comment.