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

Commit 7141d40

Browse files
feat: add SecurityLevel option on HttpsTrigger (#304)
* 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 d18aeb9 commit 7141d40

File tree

4 files changed

+477
-99
lines changed

4 files changed

+477
-99
lines changed

proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java

Lines changed: 103 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -165,104 +165,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
165165
+ "jects/{project}/locations/{location}/fun"
166166
+ "ctions/{function}B\r\n\013source_codeB\t\n\007trig"
167167
+ "ger\":\n\020SourceRepository\022\013\n\003url\030\001 \001(\t\022\031\n\014"
168-
+ "deployed_url\030\002 \001(\tB\003\340A\003\" \n\014HttpsTrigger\022"
169-
+ "\020\n\003url\030\001 \001(\tB\003\340A\003\"\207\001\n\014EventTrigger\022\022\n\nev"
170-
+ "ent_type\030\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022\017\n\007serv"
171-
+ "ice\030\003 \001(\t\022@\n\016failure_policy\030\005 \001(\0132(.goog"
172-
+ "le.cloud.functions.v1.FailurePolicy\"c\n\rF"
173-
+ "ailurePolicy\022?\n\005retry\030\001 \001(\0132..google.clo"
174-
+ "ud.functions.v1.FailurePolicy.RetryH\000\032\007\n"
175-
+ "\005RetryB\010\n\006action\"\225\001\n\025CreateFunctionReque"
176-
+ "st\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locations."
177-
+ "googleapis.com/Location\022?\n\010function\030\002 \001("
178-
+ "\0132(.google.cloud.functions.v1.CloudFunct"
179-
+ "ionB\003\340A\002\"\211\001\n\025UpdateFunctionRequest\022?\n\010fu"
180-
+ "nction\030\001 \001(\0132(.google.cloud.functions.v1"
181-
+ ".CloudFunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\013"
182-
+ "2\032.google.protobuf.FieldMask\"W\n\022GetFunct"
183-
+ "ionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudf"
184-
+ "unctions.googleapis.com/CloudFunction\"u\n"
185-
+ "\024ListFunctionsRequest\0226\n\006parent\030\001 \001(\tB&\372"
186-
+ "A#\n!locations.googleapis.com/Location\022\021\n"
187-
+ "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n"
188-
+ "\025ListFunctionsResponse\022;\n\tfunctions\030\001 \003("
189-
+ "\0132(.google.cloud.functions.v1.CloudFunct"
190-
+ "ion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha"
191-
+ "ble\030\003 \003(\t\"Z\n\025DeleteFunctionRequest\022A\n\004na"
192-
+ "me\030\001 \001(\tB3\340A\002\372A-\n+cloudfunctions.googlea"
193-
+ "pis.com/CloudFunction\"k\n\023CallFunctionReq"
194-
+ "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudfunctio"
195-
+ "ns.googleapis.com/CloudFunction\022\021\n\004data\030"
196-
+ "\002 \001(\tB\003\340A\002\"K\n\024CallFunctionResponse\022\024\n\014ex"
197-
+ "ecution_id\030\001 \001(\t\022\016\n\006result\030\002 \001(\t\022\r\n\005erro"
198-
+ "r\030\003 \001(\t\"*\n\030GenerateUploadUrlRequest\022\016\n\006p"
199-
+ "arent\030\001 \001(\t\"/\n\031GenerateUploadUrlResponse"
200-
+ "\022\022\n\nupload_url\030\001 \001(\t\">\n\032GenerateDownload"
201-
+ "UrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversion_id\030\002"
202-
+ " \001(\004\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d"
203-
+ "ownload_url\030\001 \001(\t*\222\001\n\023CloudFunctionStatu"
204-
+ "s\022%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\020\000"
205-
+ "\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPLOY_IN_P"
206-
+ "ROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004\022\013\n\007UNK"
207-
+ "NOWN\020\0052\227\021\n\025CloudFunctionsService\022\251\001\n\rLis"
208-
+ "tFunctions\022/.google.cloud.functions.v1.L"
209-
+ "istFunctionsRequest\0320.google.cloud.funct"
210-
+ "ions.v1.ListFunctionsResponse\"5\202\323\344\223\002/\022-/"
211-
+ "v1/{parent=projects/*/locations/*}/funct"
212-
+ "ions\022\244\001\n\013GetFunction\022-.google.cloud.func"
213-
+ "tions.v1.GetFunctionRequest\032(.google.clo"
214-
+ "ud.functions.v1.CloudFunction\"<\202\323\344\223\002/\022-/"
215-
+ "v1/{name=projects/*/locations/*/function"
216-
+ "s/*}\332A\004name\022\337\001\n\016CreateFunction\0220.google."
217-
+ "cloud.functions.v1.CreateFunctionRequest"
218-
+ "\032\035.google.longrunning.Operation\"|\202\323\344\223\002;\""
219-
+ "//v1/{location=projects/*/locations/*}/f"
220-
+ "unctions:\010function\332A\021location,function\312A"
221-
+ "$\n\rCloudFunction\022\023OperationMetadataV1\022\335\001"
222-
+ "\n\016UpdateFunction\0220.google.cloud.function"
223-
+ "s.v1.UpdateFunctionRequest\032\035.google.long"
224-
+ "running.Operation\"z\202\323\344\223\002B26/v1/{function"
225-
+ ".name=projects/*/locations/*/functions/*"
226-
+ "}:\010function\332A\010function\312A$\n\rCloudFunction"
227-
+ "\022\023OperationMetadataV1\022\316\001\n\016DeleteFunction"
228-
+ "\0220.google.cloud.functions.v1.DeleteFunct"
229-
+ "ionRequest\032\035.google.longrunning.Operatio"
230-
+ "n\"k\202\323\344\223\002/*-/v1/{name=projects/*/location"
231-
+ "s/*/functions/*}\332A\004name\312A,\n\025google.proto"
232-
+ "buf.Empty\022\023OperationMetadataV1\022\272\001\n\014CallF"
233-
+ "unction\022..google.cloud.functions.v1.Call"
234-
+ "FunctionRequest\032/.google.cloud.functions"
235-
+ ".v1.CallFunctionResponse\"I\202\323\344\223\0027\"2/v1/{n"
236-
+ "ame=projects/*/locations/*/functions/*}:"
237-
+ "call:\001*\332A\tname,data\022\312\001\n\021GenerateUploadUr"
238-
+ "l\0223.google.cloud.functions.v1.GenerateUp"
239-
+ "loadUrlRequest\0324.google.cloud.functions."
240-
+ "v1.GenerateUploadUrlResponse\"J\202\323\344\223\002D\"?/v"
241-
+ "1/{parent=projects/*/locations/*}/functi"
242-
+ "ons:generateUploadUrl:\001*\022\322\001\n\023GenerateDow"
243-
+ "nloadUrl\0225.google.cloud.functions.v1.Gen"
244-
+ "erateDownloadUrlRequest\0326.google.cloud.f"
245-
+ "unctions.v1.GenerateDownloadUrlResponse\""
246-
+ "L\202\323\344\223\002F\"A/v1/{name=projects/*/locations/"
247-
+ "*/functions/*}:generateDownloadUrl:\001*\022\224\001"
248-
+ "\n\014SetIamPolicy\022\".google.iam.v1.SetIamPol"
249-
+ "icyRequest\032\025.google.iam.v1.Policy\"I\202\323\344\223\002"
250-
+ "C\">/v1/{resource=projects/*/locations/*/"
251-
+ "functions/*}:setIamPolicy:\001*\022\221\001\n\014GetIamP"
252-
+ "olicy\022\".google.iam.v1.GetIamPolicyReques"
253-
+ "t\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022>/v1/{r"
254-
+ "esource=projects/*/locations/*/functions"
255-
+ "/*}:getIamPolicy\022\272\001\n\022TestIamPermissions\022"
256-
+ "(.google.iam.v1.TestIamPermissionsReques"
257-
+ "t\032).google.iam.v1.TestIamPermissionsResp"
258-
+ "onse\"O\202\323\344\223\002I\"D/v1/{resource=projects/*/l"
259-
+ "ocations/*/functions/*}:testIamPermissio"
260-
+ "ns:\001*\032Q\312A\035cloudfunctions.googleapis.com\322"
261-
+ "A.https://www.googleapis.com/auth/cloud-"
262-
+ "platformB{\n\035com.google.cloud.functions.v"
263-
+ "1B\016FunctionsProtoP\001ZBgoogle.golang.org/g"
264-
+ "enproto/googleapis/cloud/functions/v1;fu"
265-
+ "nctions\242\002\003GCFb\006proto3"
168+
+ "deployed_url\030\002 \001(\tB\003\340A\003\"\310\001\n\014HttpsTrigger"
169+
+ "\022\020\n\003url\030\001 \001(\tB\003\340A\003\022M\n\016security_level\030\002 \001"
170+
+ "(\01625.google.cloud.functions.v1.HttpsTrig"
171+
+ "ger.SecurityLevel\"W\n\rSecurityLevel\022\036\n\032SE"
172+
+ "CURITY_LEVEL_UNSPECIFIED\020\000\022\021\n\rSECURE_ALW"
173+
+ "AYS\020\001\022\023\n\017SECURE_OPTIONAL\020\002\"\207\001\n\014EventTrig"
174+
+ "ger\022\022\n\nevent_type\030\001 \001(\t\022\020\n\010resource\030\002 \001("
175+
+ "\t\022\017\n\007service\030\003 \001(\t\022@\n\016failure_policy\030\005 \001"
176+
+ "(\0132(.google.cloud.functions.v1.FailurePo"
177+
+ "licy\"c\n\rFailurePolicy\022?\n\005retry\030\001 \001(\0132..g"
178+
+ "oogle.cloud.functions.v1.FailurePolicy.R"
179+
+ "etryH\000\032\007\n\005RetryB\010\n\006action\"\225\001\n\025CreateFunc"
180+
+ "tionRequest\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!l"
181+
+ "ocations.googleapis.com/Location\022?\n\010func"
182+
+ "tion\030\002 \001(\0132(.google.cloud.functions.v1.C"
183+
+ "loudFunctionB\003\340A\002\"\211\001\n\025UpdateFunctionRequ"
184+
+ "est\022?\n\010function\030\001 \001(\0132(.google.cloud.fun"
185+
+ "ctions.v1.CloudFunctionB\003\340A\002\022/\n\013update_m"
186+
+ "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"W\n"
187+
+ "\022GetFunctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A"
188+
+ "-\n+cloudfunctions.googleapis.com/CloudFu"
189+
+ "nction\"u\n\024ListFunctionsRequest\0226\n\006parent"
190+
+ "\030\001 \001(\tB&\372A#\n!locations.googleapis.com/Lo"
191+
+ "cation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
192+
+ "\003 \001(\t\"\202\001\n\025ListFunctionsResponse\022;\n\tfunct"
193+
+ "ions\030\001 \003(\0132(.google.cloud.functions.v1.C"
194+
+ "loudFunction\022\027\n\017next_page_token\030\002 \001(\t\022\023\n"
195+
+ "\013unreachable\030\003 \003(\t\"Z\n\025DeleteFunctionRequ"
196+
+ "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudfunction"
197+
+ "s.googleapis.com/CloudFunction\"k\n\023CallFu"
198+
+ "nctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clo"
199+
+ "udfunctions.googleapis.com/CloudFunction"
200+
+ "\022\021\n\004data\030\002 \001(\tB\003\340A\002\"K\n\024CallFunctionRespo"
201+
+ "nse\022\024\n\014execution_id\030\001 \001(\t\022\016\n\006result\030\002 \001("
202+
+ "\t\022\r\n\005error\030\003 \001(\t\"*\n\030GenerateUploadUrlReq"
203+
+ "uest\022\016\n\006parent\030\001 \001(\t\"/\n\031GenerateUploadUr"
204+
+ "lResponse\022\022\n\nupload_url\030\001 \001(\t\">\n\032Generat"
205+
+ "eDownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nver"
206+
+ "sion_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlResp"
207+
+ "onse\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFunc"
208+
+ "tionStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSP"
209+
+ "ECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DE"
210+
+ "PLOY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS"
211+
+ "\020\004\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsServic"
212+
+ "e\022\251\001\n\rListFunctions\022/.google.cloud.funct"
213+
+ "ions.v1.ListFunctionsRequest\0320.google.cl"
214+
+ "oud.functions.v1.ListFunctionsResponse\"5"
215+
+ "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations"
216+
+ "/*}/functions\022\244\001\n\013GetFunction\022-.google.c"
217+
+ "loud.functions.v1.GetFunctionRequest\032(.g"
218+
+ "oogle.cloud.functions.v1.CloudFunction\"<"
219+
+ "\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*"
220+
+ "/functions/*}\332A\004name\022\337\001\n\016CreateFunction\022"
221+
+ "0.google.cloud.functions.v1.CreateFuncti"
222+
+ "onRequest\032\035.google.longrunning.Operation"
223+
+ "\"|\202\323\344\223\002;\"//v1/{location=projects/*/locat"
224+
+ "ions/*}/functions:\010function\332A\021location,f"
225+
+ "unction\312A$\n\rCloudFunction\022\023OperationMeta"
226+
+ "dataV1\022\335\001\n\016UpdateFunction\0220.google.cloud"
227+
+ ".functions.v1.UpdateFunctionRequest\032\035.go"
228+
+ "ogle.longrunning.Operation\"z\202\323\344\223\002B26/v1/"
229+
+ "{function.name=projects/*/locations/*/fu"
230+
+ "nctions/*}:\010function\332A\010function\312A$\n\rClou"
231+
+ "dFunction\022\023OperationMetadataV1\022\316\001\n\016Delet"
232+
+ "eFunction\0220.google.cloud.functions.v1.De"
233+
+ "leteFunctionRequest\032\035.google.longrunning"
234+
+ ".Operation\"k\202\323\344\223\002/*-/v1/{name=projects/*"
235+
+ "/locations/*/functions/*}\332A\004name\312A,\n\025goo"
236+
+ "gle.protobuf.Empty\022\023OperationMetadataV1\022"
237+
+ "\272\001\n\014CallFunction\022..google.cloud.function"
238+
+ "s.v1.CallFunctionRequest\032/.google.cloud."
239+
+ "functions.v1.CallFunctionResponse\"I\202\323\344\223\002"
240+
+ "7\"2/v1/{name=projects/*/locations/*/func"
241+
+ "tions/*}:call:\001*\332A\tname,data\022\312\001\n\021Generat"
242+
+ "eUploadUrl\0223.google.cloud.functions.v1.G"
243+
+ "enerateUploadUrlRequest\0324.google.cloud.f"
244+
+ "unctions.v1.GenerateUploadUrlResponse\"J\202"
245+
+ "\323\344\223\002D\"?/v1/{parent=projects/*/locations/"
246+
+ "*}/functions:generateUploadUrl:\001*\022\322\001\n\023Ge"
247+
+ "nerateDownloadUrl\0225.google.cloud.functio"
248+
+ "ns.v1.GenerateDownloadUrlRequest\0326.googl"
249+
+ "e.cloud.functions.v1.GenerateDownloadUrl"
250+
+ "Response\"L\202\323\344\223\002F\"A/v1/{name=projects/*/l"
251+
+ "ocations/*/functions/*}:generateDownload"
252+
+ "Url:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1."
253+
+ "SetIamPolicyRequest\032\025.google.iam.v1.Poli"
254+
+ "cy\"I\202\323\344\223\002C\">/v1/{resource=projects/*/loc"
255+
+ "ations/*/functions/*}:setIamPolicy:\001*\022\221\001"
256+
+ "\n\014GetIamPolicy\022\".google.iam.v1.GetIamPol"
257+
+ "icyRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002"
258+
+ "@\022>/v1/{resource=projects/*/locations/*/"
259+
+ "functions/*}:getIamPolicy\022\272\001\n\022TestIamPer"
260+
+ "missions\022(.google.iam.v1.TestIamPermissi"
261+
+ "onsRequest\032).google.iam.v1.TestIamPermis"
262+
+ "sionsResponse\"O\202\323\344\223\002I\"D/v1/{resource=pro"
263+
+ "jects/*/locations/*/functions/*}:testIam"
264+
+ "Permissions:\001*\032Q\312A\035cloudfunctions.google"
265+
+ "apis.com\322A.https://www.googleapis.com/au"
266+
+ "th/cloud-platformB{\n\035com.google.cloud.fu"
267+
+ "nctions.v1B\016FunctionsProtoP\001ZBgoogle.gol"
268+
+ "ang.org/genproto/googleapis/cloud/functi"
269+
+ "ons/v1;functions\242\002\003GCFb\006proto3"
266270
};
267271
descriptor =
268272
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -341,7 +345,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
341345
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
342346
internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor,
343347
new java.lang.String[] {
344-
"Url",
348+
"Url", "SecurityLevel",
345349
});
346350
internal_static_google_cloud_functions_v1_EventTrigger_descriptor =
347351
getDescriptor().getMessageTypes().get(3);

0 commit comments

Comments
 (0)