google-cloud-functions-v1 0.13.1 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ce227c34557943631cf07edc23e0997154bdb01c8aa1cc41e35c9d43c3d2cf7
4
- data.tar.gz: 03a5bd6427ee2a7a77959fe64aa23ff3b93d2b9a56b4a601b5f6a2428de44049
3
+ metadata.gz: fae4c3d6dd66ac4324842cf847ac9e38f615bd6f8d4a39231a31f70d3b228d38
4
+ data.tar.gz: e47c7c53c711745246aaeae0539f7ed074a439913b258b30357243d386e21c6d
5
5
  SHA512:
6
- metadata.gz: bce7fecce71ddceeed5282f8f8b1947ecc73bc43194098ee9d7c092a4180bfae81073292c0bb1d3f0fb6da7fc6a8a30535eaf9683d7fffe948cfb8de9a70942f
7
- data.tar.gz: 7fd7e61df73771f1bb987c4d405d58a2eb2f7eeb88c2ecb46cee00771a192797073212c1420754fc008539c67a880199164f0b21dabe02e393fdafebe0c26eb9
6
+ metadata.gz: 8a8f268248b7edaa0819501973a0c3ce5bf57b442f0dcf441be23c0b5f570fb18100ff65c1f32f793ea1d02fd2f52fe2e9ac995be6781d797ea4661187e21dea
7
+ data.tar.gz: 67cbb29e0671e92d27b356490339e52d1f0144e179aa9bb4c7e349d2746bb30a44319a9273bfc638f2a9f06138976af073dbfac2ed040190d5881336512a8bd5
@@ -343,13 +343,20 @@ module Google
343
343
  # @param options [::Gapic::CallOptions, ::Hash]
344
344
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
345
345
  #
346
- # @overload get_function(name: nil)
346
+ # @overload get_function(name: nil, version_id: nil)
347
347
  # Pass arguments to `get_function` via keyword arguments. Note that at
348
348
  # least one keyword argument is required. To specify no parameters, or to keep all
349
349
  # the default parameter values, pass an empty Hash as a request object (see above).
350
350
  #
351
351
  # @param name [::String]
352
352
  # Required. The name of the function which details should be obtained.
353
+ # @param version_id [::Integer]
354
+ # Optional. The optional version of the function whose details should be
355
+ # obtained. The version of a 1st Gen function is an integer that starts from
356
+ # 1 and gets incremented on redeployments. Each deployment creates a config
357
+ # version of the underlying function. GCF may keep historical configs for old
358
+ # versions. This field can be specified to fetch the historical configs.
359
+ # Leave it blank or set to 0 to get the latest version of the function.
353
360
  #
354
361
  # @yield [response, operation] Access the result along with the RPC operation
355
362
  # @yieldparam response [::Google::Cloud::Functions::V1::CloudFunction]
@@ -417,7 +424,7 @@ module Google
417
424
 
418
425
  ##
419
426
  # Creates a new function. If a function with the given name already exists in
420
- # the specified project, the long running operation returns an
427
+ # the specified project, the long running operation will return
421
428
  # `ALREADY_EXISTS` error.
422
429
  #
423
430
  # @overload create_function(request, options = nil)
@@ -610,7 +617,7 @@ module Google
610
617
 
611
618
  ##
612
619
  # Deletes a function with the given name from the specified project. If the
613
- # given function is used by some trigger, the trigger is updated to
620
+ # given function is used by some trigger, the trigger will be updated to
614
621
  # remove this function.
615
622
  #
616
623
  # @overload delete_function(request, options = nil)
@@ -811,12 +818,12 @@ module Google
811
818
  # attached, the identity from the credentials would be used, but that
812
819
  # identity does not have permissions to upload files to the URL.
813
820
  #
814
- # When making an HTTP PUT request, these two headers must be specified:
821
+ # When making a HTTP PUT request, these two headers need to be specified:
815
822
  #
816
823
  # * `content-type: application/zip`
817
824
  # * `x-goog-content-length-range: 0,104857600`
818
825
  #
819
- # And this header must NOT be specified:
826
+ # And this header SHOULD NOT be specified:
820
827
  #
821
828
  # * `Authorization: Bearer YOUR_TOKEN`
822
829
  #
@@ -840,11 +847,11 @@ module Google
840
847
  # should be generated, specified in the format `projects/*/locations/*`.
841
848
  # @param kms_key_name [::String]
842
849
  # Resource name of a KMS crypto key (managed by the user) used to
843
- # encrypt/decrypt function source code objects in staging Cloud Storage
850
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
844
851
  # buckets. When you generate an upload url and upload your source code, it
845
- # gets copied to a staging Cloud Storage bucket in an internal regional
846
- # project. The source code is then copied to a versioned directory in the
847
- # sources bucket in the consumer project during the function deployment.
852
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
853
+ # then copied to a versioned directory in the sources bucket in the consumer
854
+ # project during the function deployment.
848
855
  #
849
856
  # It must match the pattern
850
857
  # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
@@ -923,9 +930,9 @@ module Google
923
930
 
924
931
  ##
925
932
  # Returns a signed URL for downloading deployed function source code.
926
- # The URL is only valid for a limited period and must be used within
933
+ # The URL is only valid for a limited period and should be used within
927
934
  # minutes after generation.
928
- # For more information about the signed URL usage, see:
935
+ # For more information about the signed URL usage see:
929
936
  # https://cloud.google.com/storage/docs/access-control/signed-urls
930
937
  #
931
938
  # @overload generate_download_url(request, options = nil)
@@ -1206,7 +1213,7 @@ module Google
1206
1213
  ##
1207
1214
  # Tests the specified permissions against the IAM access control policy
1208
1215
  # for a function.
1209
- # If the function does not exist, this returns an empty set of
1216
+ # If the function does not exist, this will return an empty set of
1210
1217
  # permissions, not a NOT_FOUND error.
1211
1218
  #
1212
1219
  # @overload test_iam_permissions(request, options = nil)
@@ -329,13 +329,20 @@ module Google
329
329
  # @param options [::Gapic::CallOptions, ::Hash]
330
330
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
331
331
  #
332
- # @overload get_function(name: nil)
332
+ # @overload get_function(name: nil, version_id: nil)
333
333
  # Pass arguments to `get_function` via keyword arguments. Note that at
334
334
  # least one keyword argument is required. To specify no parameters, or to keep all
335
335
  # the default parameter values, pass an empty Hash as a request object (see above).
336
336
  #
337
337
  # @param name [::String]
338
338
  # Required. The name of the function which details should be obtained.
339
+ # @param version_id [::Integer]
340
+ # Optional. The optional version of the function whose details should be
341
+ # obtained. The version of a 1st Gen function is an integer that starts from
342
+ # 1 and gets incremented on redeployments. Each deployment creates a config
343
+ # version of the underlying function. GCF may keep historical configs for old
344
+ # versions. This field can be specified to fetch the historical configs.
345
+ # Leave it blank or set to 0 to get the latest version of the function.
339
346
  # @yield [result, operation] Access the result along with the TransportOperation object
340
347
  # @yieldparam result [::Google::Cloud::Functions::V1::CloudFunction]
341
348
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -396,7 +403,7 @@ module Google
396
403
 
397
404
  ##
398
405
  # Creates a new function. If a function with the given name already exists in
399
- # the specified project, the long running operation returns an
406
+ # the specified project, the long running operation will return
400
407
  # `ALREADY_EXISTS` error.
401
408
  #
402
409
  # @overload create_function(request, options = nil)
@@ -575,7 +582,7 @@ module Google
575
582
 
576
583
  ##
577
584
  # Deletes a function with the given name from the specified project. If the
578
- # given function is used by some trigger, the trigger is updated to
585
+ # given function is used by some trigger, the trigger will be updated to
579
586
  # remove this function.
580
587
  #
581
588
  # @overload delete_function(request, options = nil)
@@ -762,12 +769,12 @@ module Google
762
769
  # attached, the identity from the credentials would be used, but that
763
770
  # identity does not have permissions to upload files to the URL.
764
771
  #
765
- # When making an HTTP PUT request, these two headers must be specified:
772
+ # When making a HTTP PUT request, these two headers need to be specified:
766
773
  #
767
774
  # * `content-type: application/zip`
768
775
  # * `x-goog-content-length-range: 0,104857600`
769
776
  #
770
- # And this header must NOT be specified:
777
+ # And this header SHOULD NOT be specified:
771
778
  #
772
779
  # * `Authorization: Bearer YOUR_TOKEN`
773
780
  #
@@ -791,11 +798,11 @@ module Google
791
798
  # should be generated, specified in the format `projects/*/locations/*`.
792
799
  # @param kms_key_name [::String]
793
800
  # Resource name of a KMS crypto key (managed by the user) used to
794
- # encrypt/decrypt function source code objects in staging Cloud Storage
801
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
795
802
  # buckets. When you generate an upload url and upload your source code, it
796
- # gets copied to a staging Cloud Storage bucket in an internal regional
797
- # project. The source code is then copied to a versioned directory in the
798
- # sources bucket in the consumer project during the function deployment.
803
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
804
+ # then copied to a versioned directory in the sources bucket in the consumer
805
+ # project during the function deployment.
799
806
  #
800
807
  # It must match the pattern
801
808
  # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
@@ -867,9 +874,9 @@ module Google
867
874
 
868
875
  ##
869
876
  # Returns a signed URL for downloading deployed function source code.
870
- # The URL is only valid for a limited period and must be used within
877
+ # The URL is only valid for a limited period and should be used within
871
878
  # minutes after generation.
872
- # For more information about the signed URL usage, see:
879
+ # For more information about the signed URL usage see:
873
880
  # https://cloud.google.com/storage/docs/access-control/signed-urls
874
881
  #
875
882
  # @overload generate_download_url(request, options = nil)
@@ -1129,7 +1136,7 @@ module Google
1129
1136
  ##
1130
1137
  # Tests the specified permissions against the IAM access control policy
1131
1138
  # for a function.
1132
- # If the function does not exist, this returns an empty set of
1139
+ # If the function does not exist, this will return an empty set of
1133
1140
  # permissions, not a NOT_FOUND error.
1134
1141
  #
1135
1142
  # @overload test_iam_permissions(request, options = nil)
@@ -18,7 +18,7 @@ require 'google/protobuf/field_mask_pb'
18
18
  require 'google/protobuf/timestamp_pb'
19
19
 
20
20
 
21
- descriptor_data = "\n)google/cloud/functions/v1/functions.proto\x12\x19google.cloud.functions.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/functions/v1/operations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe7\x11\n\rCloudFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x12source_archive_url\x18\x03 \x01(\tH\x00\x12H\n\x11source_repository\x18\x04 \x01(\x0b\x32+.google.cloud.functions.v1.SourceRepositoryH\x00\x12\x1b\n\x11source_upload_url\x18\x10 \x01(\tH\x00\x12@\n\rhttps_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v1.HttpsTriggerH\x01\x12@\n\revent_trigger\x18\x06 \x01(\x0b\x32\'.google.cloud.functions.v1.EventTriggerH\x01\x12\x43\n\x06status\x18\x07 \x01(\x0e\x32..google.cloud.functions.v1.CloudFunctionStatusB\x03\xe0\x41\x03\x12\x13\n\x0b\x65ntry_point\x18\x08 \x01(\t\x12\x0f\n\x07runtime\x18\x13 \x01(\t\x12*\n\x07timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x61vailable_memory_mb\x18\n \x01(\x05\x12\x1d\n\x15service_account_email\x18\x0b \x01(\t\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nversion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x0f \x03(\x0b\x32\x34.google.cloud.functions.v1.CloudFunction.LabelsEntry\x12\x61\n\x15\x65nvironment_variables\x18\x11 \x03(\x0b\x32\x42.google.cloud.functions.v1.CloudFunction.EnvironmentVariablesEntry\x12l\n\x1b\x62uild_environment_variables\x18\x1c \x03(\x0b\x32G.google.cloud.functions.v1.CloudFunction.BuildEnvironmentVariablesEntry\x12\x0f\n\x07network\x18\x12 \x01(\t\x12\x15\n\rmax_instances\x18\x14 \x01(\x05\x12\x15\n\rmin_instances\x18 \x01(\x05\x12\x15\n\rvpc_connector\x18\x16 \x01(\t\x12j\n\x1dvpc_connector_egress_settings\x18\x17 \x01(\x0e\x32\x43.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x18 \x01(\x0e\x32\x38.google.cloud.functions.v1.CloudFunction.IngressSettings\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x19\n\x11\x62uild_worker_pool\x18\x1a \x01(\t\x12\x15\n\x08\x62uild_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nbuild_name\x18! \x01(\tB\x03\xe0\x41\x03\x12M\n\x1csecret_environment_variables\x18\x1d \x03(\x0b\x32\'.google.cloud.functions.v1.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x1e \x03(\x0b\x32\'.google.cloud.functions.v1.SecretVolume\x12\x19\n\x0csource_token\x18\x1f \x01(\tB\x03\xe0\x41\x04\x12J\n\x11\x64ocker_repository\x18\" \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12P\n\x0f\x64ocker_registry\x18# \x01(\x0e\x32\x37.google.cloud.functions.v1.CloudFunction.DockerRegistry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a@\n\x1e\x42uildEnvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02:n\xea\x41k\n+cloudfunctions.googleapis.com/CloudFunction\x12<projects/{project}/locations/{location}/functions/{function}B\r\n\x0bsource_codeB\t\n\x07trigger\":\n\x10SourceRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x0c\x64\x65ployed_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc8\x01\n\x0cHttpsTrigger\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12M\n\x0esecurity_level\x18\x02 \x01(\x0e\x32\x35.google.cloud.functions.v1.HttpsTrigger.SecurityLevel\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"\x87\x01\n\x0c\x45ventTrigger\x12\x12\n\nevent_type\x18\x01 \x01(\t\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12@\n\x0e\x66\x61ilure_policy\x18\x05 \x01(\x0b\x32(.google.cloud.functions.v1.FailurePolicy\"c\n\rFailurePolicy\x12?\n\x05retry\x18\x01 \x01(\x0b\x32..google.cloud.functions.v1.FailurePolicy.RetryH\x00\x1a\x07\n\x05RetryB\x08\n\x06\x61\x63tion\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v1.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x95\x01\n\x15\x43reateFunctionRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\"\x89\x01\n\x15UpdateFunctionRequest\x12?\n\x08\x66unction\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x12GetFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"u\n\x14ListFunctionsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x15ListFunctionsResponse\x12;\n\tfunctions\x18\x01 \x03(\x0b\x32(.google.cloud.functions.v1.CloudFunction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Z\n\x15\x44\x65leteFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"k\n\x13\x43\x61llFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\tB\x03\xe0\x41\x02\"K\n\x14\x43\x61llFunctionResponse\x12\x14\n\x0c\x65xecution_id\x18\x01 \x01(\t\x12\x0e\n\x06result\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"h\n\x18GenerateUploadUrlRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"/\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\">\n\x1aGenerateDownloadUrlRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\x04\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t*\x92\x01\n\x13\x43loudFunctionStatus\x12%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\x12\x16\n\x12\x44\x45PLOY_IN_PROGRESS\x10\x03\x12\x16\n\x12\x44\x45LETE_IN_PROGRESS\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05\x32\x97\x11\n\x15\x43loudFunctionsService\x12\xa9\x01\n\rListFunctions\x12/.google.cloud.functions.v1.ListFunctionsRequest\x1a\x30.google.cloud.functions.v1.ListFunctionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/functions\x12\xa4\x01\n\x0bGetFunction\x12-.google.cloud.functions.v1.GetFunctionRequest\x1a(.google.cloud.functions.v1.CloudFunction\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xdf\x01\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v1.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02;\"//v1/{location=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x11location,function\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xdd\x01\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v1.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x08\x66unction\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xce\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v1.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41,\n\x15google.protobuf.Empty\x12\x13OperationMetadataV1\x12\xba\x01\n\x0c\x43\x61llFunction\x12..google.cloud.functions.v1.CallFunctionRequest\x1a/.google.cloud.functions.v1.CallFunctionResponse\"I\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/functions/*}:call:\x01*\xda\x41\tname,data\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v1.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v1.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v1.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v1.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\x94\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{resource=projects/*/locations/*/functions/*}:setIamPolicy:\x01*\x12\x91\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{resource=projects/*/locations/*/functions/*}:getIamPolicy\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{resource=projects/*/locations/*/functions/*}:testIamPermissions:\x01*\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe1\x02\n\x1d\x63om.google.cloud.functions.v1B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
21
+ descriptor_data = "\n)google/cloud/functions/v1/functions.proto\x12\x19google.cloud.functions.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/functions/v1/operations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x14\n\rCloudFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x12source_archive_url\x18\x03 \x01(\tH\x00\x12H\n\x11source_repository\x18\x04 \x01(\x0b\x32+.google.cloud.functions.v1.SourceRepositoryH\x00\x12\x1b\n\x11source_upload_url\x18\x10 \x01(\tH\x00\x12@\n\rhttps_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v1.HttpsTriggerH\x01\x12@\n\revent_trigger\x18\x06 \x01(\x0b\x32\'.google.cloud.functions.v1.EventTriggerH\x01\x12\x43\n\x06status\x18\x07 \x01(\x0e\x32..google.cloud.functions.v1.CloudFunctionStatusB\x03\xe0\x41\x03\x12\x13\n\x0b\x65ntry_point\x18\x08 \x01(\t\x12\x0f\n\x07runtime\x18\x13 \x01(\t\x12*\n\x07timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x61vailable_memory_mb\x18\n \x01(\x05\x12\x1d\n\x15service_account_email\x18\x0b \x01(\t\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nversion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x0f \x03(\x0b\x32\x34.google.cloud.functions.v1.CloudFunction.LabelsEntry\x12\x61\n\x15\x65nvironment_variables\x18\x11 \x03(\x0b\x32\x42.google.cloud.functions.v1.CloudFunction.EnvironmentVariablesEntry\x12l\n\x1b\x62uild_environment_variables\x18\x1c \x03(\x0b\x32G.google.cloud.functions.v1.CloudFunction.BuildEnvironmentVariablesEntry\x12\x13\n\x07network\x18\x12 \x01(\tB\x02\x18\x01\x12\x15\n\rmax_instances\x18\x14 \x01(\x05\x12\x15\n\rmin_instances\x18 \x01(\x05\x12\x15\n\rvpc_connector\x18\x16 \x01(\t\x12j\n\x1dvpc_connector_egress_settings\x18\x17 \x01(\x0e\x32\x43.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x18 \x01(\x0e\x32\x38.google.cloud.functions.v1.CloudFunction.IngressSettings\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x19\n\x11\x62uild_worker_pool\x18\x1a \x01(\t\x12\x15\n\x08\x62uild_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nbuild_name\x18! \x01(\tB\x03\xe0\x41\x03\x12M\n\x1csecret_environment_variables\x18\x1d \x03(\x0b\x32\'.google.cloud.functions.v1.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x1e \x03(\x0b\x32\'.google.cloud.functions.v1.SecretVolume\x12\x19\n\x0csource_token\x18\x1f \x01(\tB\x03\xe0\x41\x04\x12J\n\x11\x64ocker_repository\x18\" \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12P\n\x0f\x64ocker_registry\x18# \x01(\x0e\x32\x37.google.cloud.functions.v1.CloudFunction.DockerRegistry\x12\x61\n\x17\x61utomatic_update_policy\x18( \x01(\x0b\x32>.google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicyH\x02\x12`\n\x17on_deploy_update_policy\x18) \x01(\x0b\x32=.google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicyH\x02\x1a\x17\n\x15\x41utomaticUpdatePolicy\x1a\x34\n\x14OnDeployUpdatePolicy\x12\x1c\n\x0fruntime_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a@\n\x1e\x42uildEnvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02:n\xea\x41k\n+cloudfunctions.googleapis.com/CloudFunction\x12<projects/{project}/locations/{location}/functions/{function}B\r\n\x0bsource_codeB\t\n\x07triggerB\x17\n\x15runtime_update_policy\":\n\x10SourceRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x0c\x64\x65ployed_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc8\x01\n\x0cHttpsTrigger\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12M\n\x0esecurity_level\x18\x02 \x01(\x0e\x32\x35.google.cloud.functions.v1.HttpsTrigger.SecurityLevel\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"\x87\x01\n\x0c\x45ventTrigger\x12\x12\n\nevent_type\x18\x01 \x01(\t\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12@\n\x0e\x66\x61ilure_policy\x18\x05 \x01(\x0b\x32(.google.cloud.functions.v1.FailurePolicy\"c\n\rFailurePolicy\x12?\n\x05retry\x18\x01 \x01(\x0b\x32..google.cloud.functions.v1.FailurePolicy.RetryH\x00\x1a\x07\n\x05RetryB\x08\n\x06\x61\x63tion\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v1.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x95\x01\n\x15\x43reateFunctionRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12?\n\x08\x66unction\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\"\x89\x01\n\x15UpdateFunctionRequest\x12?\n\x08\x66unction\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"p\n\x12GetFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\x12\x17\n\nversion_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"u\n\x14ListFunctionsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x15ListFunctionsResponse\x12;\n\tfunctions\x18\x01 \x03(\x0b\x32(.google.cloud.functions.v1.CloudFunction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Z\n\x15\x44\x65leteFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"k\n\x13\x43\x61llFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\tB\x03\xe0\x41\x02\"K\n\x14\x43\x61llFunctionResponse\x12\x14\n\x0c\x65xecution_id\x18\x01 \x01(\t\x12\x0e\n\x06result\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"h\n\x18GenerateUploadUrlRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"/\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\">\n\x1aGenerateDownloadUrlRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\x04\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t*\x92\x01\n\x13\x43loudFunctionStatus\x12%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\x12\x16\n\x12\x44\x45PLOY_IN_PROGRESS\x10\x03\x12\x16\n\x12\x44\x45LETE_IN_PROGRESS\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05\x32\x97\x11\n\x15\x43loudFunctionsService\x12\xa9\x01\n\rListFunctions\x12/.google.cloud.functions.v1.ListFunctionsRequest\x1a\x30.google.cloud.functions.v1.ListFunctionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/functions\x12\xa4\x01\n\x0bGetFunction\x12-.google.cloud.functions.v1.GetFunctionRequest\x1a(.google.cloud.functions.v1.CloudFunction\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xdf\x01\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v1.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02;\"//v1/{location=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x11location,function\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xdd\x01\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v1.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x08\x66unction\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xce\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v1.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41,\n\x15google.protobuf.Empty\x12\x13OperationMetadataV1\x12\xba\x01\n\x0c\x43\x61llFunction\x12..google.cloud.functions.v1.CallFunctionRequest\x1a/.google.cloud.functions.v1.CallFunctionResponse\"I\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/functions/*}:call:\x01*\xda\x41\tname,data\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v1.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v1.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v1.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v1.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\x94\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{resource=projects/*/locations/*/functions/*}:setIamPolicy:\x01*\x12\x91\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{resource=projects/*/locations/*/functions/*}:getIamPolicy\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{resource=projects/*/locations/*/functions/*}:testIamPermissions:\x01*\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe1\x02\n\x1d\x63om.google.cloud.functions.v1B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
22
22
 
23
23
  pool = Google::Protobuf::DescriptorPool.generated_pool
24
24
 
@@ -52,6 +52,8 @@ module Google
52
52
  module Functions
53
53
  module V1
54
54
  CloudFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction").msgclass
55
+ CloudFunction::AutomaticUpdatePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.AutomaticUpdatePolicy").msgclass
56
+ CloudFunction::OnDeployUpdatePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.OnDeployUpdatePolicy").msgclass
55
57
  CloudFunction::VpcConnectorEgressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings").enummodule
56
58
  CloudFunction::IngressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.IngressSettings").enummodule
57
59
  CloudFunction::DockerRegistry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.DockerRegistry").enummodule
@@ -38,13 +38,13 @@ module Google
38
38
  # Returns a function with the given name from the requested project.
39
39
  rpc :GetFunction, ::Google::Cloud::Functions::V1::GetFunctionRequest, ::Google::Cloud::Functions::V1::CloudFunction
40
40
  # Creates a new function. If a function with the given name already exists in
41
- # the specified project, the long running operation returns an
41
+ # the specified project, the long running operation will return
42
42
  # `ALREADY_EXISTS` error.
43
43
  rpc :CreateFunction, ::Google::Cloud::Functions::V1::CreateFunctionRequest, ::Google::Longrunning::Operation
44
44
  # Updates existing function.
45
45
  rpc :UpdateFunction, ::Google::Cloud::Functions::V1::UpdateFunctionRequest, ::Google::Longrunning::Operation
46
46
  # Deletes a function with the given name from the specified project. If the
47
- # given function is used by some trigger, the trigger is updated to
47
+ # given function is used by some trigger, the trigger will be updated to
48
48
  # remove this function.
49
49
  rpc :DeleteFunction, ::Google::Cloud::Functions::V1::DeleteFunctionRequest, ::Google::Longrunning::Operation
50
50
  # Synchronously invokes a deployed Cloud Function. To be used for testing
@@ -69,19 +69,19 @@ module Google
69
69
  # attached, the identity from the credentials would be used, but that
70
70
  # identity does not have permissions to upload files to the URL.
71
71
  #
72
- # When making an HTTP PUT request, these two headers must be specified:
72
+ # When making a HTTP PUT request, these two headers need to be specified:
73
73
  #
74
74
  # * `content-type: application/zip`
75
75
  # * `x-goog-content-length-range: 0,104857600`
76
76
  #
77
- # And this header must NOT be specified:
77
+ # And this header SHOULD NOT be specified:
78
78
  #
79
79
  # * `Authorization: Bearer YOUR_TOKEN`
80
80
  rpc :GenerateUploadUrl, ::Google::Cloud::Functions::V1::GenerateUploadUrlRequest, ::Google::Cloud::Functions::V1::GenerateUploadUrlResponse
81
81
  # Returns a signed URL for downloading deployed function source code.
82
- # The URL is only valid for a limited period and must be used within
82
+ # The URL is only valid for a limited period and should be used within
83
83
  # minutes after generation.
84
- # For more information about the signed URL usage, see:
84
+ # For more information about the signed URL usage see:
85
85
  # https://cloud.google.com/storage/docs/access-control/signed-urls
86
86
  rpc :GenerateDownloadUrl, ::Google::Cloud::Functions::V1::GenerateDownloadUrlRequest, ::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse
87
87
  # Sets the IAM access control policy on the specified function.
@@ -93,7 +93,7 @@ module Google
93
93
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
94
94
  # Tests the specified permissions against the IAM access control policy
95
95
  # for a function.
96
- # If the function does not exist, this returns an empty set of
96
+ # If the function does not exist, this will return an empty set of
97
97
  # permissions, not a NOT_FOUND error.
98
98
  rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
99
99
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.13.1"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Functions
23
23
  module V1
24
24
  # Describes a Cloud Function that contains user computation executed in
25
- # response to an event. It encapsulates function and triggers configurations.
25
+ # response to an event. It encapsulate function and triggers configurations.
26
26
  # @!attribute [rw] name
27
27
  # @return [::String]
28
28
  # A user-defined name of the function. Function names must be unique
@@ -41,7 +41,7 @@ module Google
41
41
  # The source repository where a function is hosted.
42
42
  # @!attribute [rw] source_upload_url
43
43
  # @return [::String]
44
- # The Google Cloud Storage-signed URL used for source uploading, generated
44
+ # The Google Cloud Storage signed URL used for source uploading, generated
45
45
  # by calling [google.cloud.functions.v1.GenerateUploadUrl].
46
46
  #
47
47
  # The signature is validated on write methods (Create, Update)
@@ -58,12 +58,9 @@ module Google
58
58
  # Output only. Status of the function deployment.
59
59
  # @!attribute [rw] entry_point
60
60
  # @return [::String]
61
- # The name of the function (as defined in source code) that is executed.
62
- # Defaults to the resource name suffix, if not specified. For
63
- # backward compatibility, if function with given name is not found, the
64
- # system tries to use the function named "function".
65
- # For Node.js, this is the name of a function exported by the module
66
- # as specified in `source_location`.
61
+ # The name of the function (as defined in source code) that will be
62
+ # executed. Defaults to the resource name suffix (ID of the function), if not
63
+ # specified.
67
64
  # @!attribute [rw] runtime
68
65
  # @return [::String]
69
66
  # The runtime in which to run the function. Required when deploying a new
@@ -101,30 +98,18 @@ module Google
101
98
  # @return [::Google::Protobuf::Map{::String => ::String}]
102
99
  # Build environment variables that shall be available during build time.
103
100
  # @!attribute [rw] network
101
+ # @deprecated This field is deprecated and may be removed in the next major version update.
104
102
  # @return [::String]
105
- # The Serverless VPC Access connector that this cloud function can connect
106
- # to. It can be either the fully qualified URI, or the short name of the
107
- # connector resource. If the connector name is used, the connector must
108
- # belong to the same project as the function. Otherwise, it must belong to a
109
- # project within the same organization. The format of this field is either
110
- # `projects/{project}/global/networks/{network}` or `{network}`, where
111
- # `{project}` is a project id where the network is defined, and `{network}`
112
- # is the short name of the network.
113
- #
114
- # This field is mutually exclusive with `vpc_connector` and will be replaced
115
- # by it.
116
- #
117
- # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
118
- # more information on connecting Cloud projects.
103
+ # Deprecated: use vpc_connector
119
104
  # @!attribute [rw] max_instances
120
105
  # @return [::Integer]
121
- # The limit on the maximum number of function instances that can coexist at a
106
+ # The limit on the maximum number of function instances that may coexist at a
122
107
  # given time.
123
108
  #
124
- # In some cases, such as rapid traffic surges, Cloud Functions can for a
125
- # short period of time create more instances than the specified max
109
+ # In some cases, such as rapid traffic surges, Cloud Functions may, for a
110
+ # short period of time, create more instances than the specified max
126
111
  # instances limit. If your function cannot tolerate this temporary behavior,
127
- # you might want to factor in a safety margin and set a lower max instances
112
+ # you may want to factor in a safety margin and set a lower max instances
128
113
  # value than your function can tolerate.
129
114
  #
130
115
  # See the [Max
@@ -132,12 +117,12 @@ module Google
132
117
  # more details.
133
118
  # @!attribute [rw] min_instances
134
119
  # @return [::Integer]
135
- # A lower bound for the number function instances that can coexist at a
120
+ # A lower bound for the number function instances that may coexist at a
136
121
  # given time.
137
122
  # @!attribute [rw] vpc_connector
138
123
  # @return [::String]
139
124
  # The VPC Network Connector that this cloud function can connect to. It can
140
- # be either the fully qualified URI, or the short name of the network
125
+ # be either the fully-qualified URI, or the short name of the network
141
126
  # connector resource. The format of this field is
142
127
  # `projects/*/locations/*/connectors/*`
143
128
  #
@@ -224,7 +209,7 @@ module Google
224
209
  # Artifact Registry. If unspecified and the deployment is eligible to use
225
210
  # Artifact Registry, GCF will create and use a repository named
226
211
  # 'gcf-artifacts' for every deployed region. This is the repository to which
227
- # the function docker image is pushed after it is built by Cloud Build.
212
+ # the function docker image will be pushed after it is built by Cloud Build.
228
213
  #
229
214
  # It must match the pattern
230
215
  # `projects/{project}/locations/{location}/repositories/{repository}`.
@@ -236,14 +221,36 @@ module Google
236
221
  # @return [::Google::Cloud::Functions::V1::CloudFunction::DockerRegistry]
237
222
  # Docker Registry to use for this deployment.
238
223
  #
239
- # If `docker_repository` field is specified, this field is automatically
240
- # set as `ARTIFACT_REGISTRY`.
241
- # If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
242
- # This field may be overridden by the backend for eligible deployments.
224
+ # If unspecified, it defaults to `ARTIFACT_REGISTRY`.
225
+ # If `docker_repository` field is specified, this field should either be left
226
+ # unspecified or set to `ARTIFACT_REGISTRY`.
227
+ # @!attribute [rw] automatic_update_policy
228
+ # @return [::Google::Cloud::Functions::V1::CloudFunction::AutomaticUpdatePolicy]
229
+ # See the comment next to this message for more details.
230
+ # @!attribute [rw] on_deploy_update_policy
231
+ # @return [::Google::Cloud::Functions::V1::CloudFunction::OnDeployUpdatePolicy]
232
+ # See the comment next to this message for more details.
243
233
  class CloudFunction
244
234
  include ::Google::Protobuf::MessageExts
245
235
  extend ::Google::Protobuf::MessageExts::ClassMethods
246
236
 
237
+ # Security patches are applied automatically to the runtime without requiring
238
+ # the function to be redeployed.
239
+ class AutomaticUpdatePolicy
240
+ include ::Google::Protobuf::MessageExts
241
+ extend ::Google::Protobuf::MessageExts::ClassMethods
242
+ end
243
+
244
+ # Security patches are only applied when a function is redeployed.
245
+ # @!attribute [r] runtime_version
246
+ # @return [::String]
247
+ # Output only. contains the runtime version which was used during latest
248
+ # function deployment.
249
+ class OnDeployUpdatePolicy
250
+ include ::Google::Protobuf::MessageExts
251
+ extend ::Google::Protobuf::MessageExts::ClassMethods
252
+ end
253
+
247
254
  # @!attribute [rw] key
248
255
  # @return [::String]
249
256
  # @!attribute [rw] value
@@ -273,18 +280,17 @@ module Google
273
280
 
274
281
  # Available egress settings.
275
282
  #
276
- # This controls what traffic is diverted through the Serverless VPC Access
277
- # connector resource. By default, PRIVATE_RANGES_ONLY is used.
283
+ # This controls what traffic is diverted through the VPC Access Connector
284
+ # resource. By default PRIVATE_RANGES_ONLY will be used.
278
285
  module VpcConnectorEgressSettings
279
286
  # Unspecified.
280
287
  VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0
281
288
 
282
- # Use the Serverless VPC Access connector only for private IP space from
283
- # RFC1918.
289
+ # Use the VPC Access Connector only for private IP space from RFC1918.
284
290
  PRIVATE_RANGES_ONLY = 1
285
291
 
286
- # Force the use of Serverless VPC Access connector for all egress traffic
287
- # from the function.
292
+ # Force the use of VPC Access Connector for all egress traffic from the
293
+ # function.
288
294
  ALL_TRAFFIC = 2
289
295
  end
290
296
 
@@ -292,7 +298,7 @@ module Google
292
298
  #
293
299
  # This controls what traffic can reach the function.
294
300
  #
295
- # If unspecified, ALLOW_ALL is used.
301
+ # If unspecified, ALLOW_ALL will be used.
296
302
  module IngressSettings
297
303
  # Unspecified.
298
304
  INGRESS_SETTINGS_UNSPECIFIED = 0
@@ -312,15 +318,15 @@ module Google
312
318
  # Unspecified.
313
319
  DOCKER_REGISTRY_UNSPECIFIED = 0
314
320
 
315
- # Docker images are stored in multi-regional Container Registry
321
+ # Docker images will be stored in multi-regional Container Registry
316
322
  # repositories named `gcf`.
317
323
  CONTAINER_REGISTRY = 1
318
324
 
319
- # Docker images are stored in regional Artifact Registry repositories.
320
- # By default, Cloud Functions creates and uses repositories named
321
- # `gcf-artifacts` in every region in which a function is deployed. But the
322
- # repository to use can also be specified by the user by using the
323
- # `docker_repository` field.
325
+ # Docker images will be stored in regional Artifact Registry repositories.
326
+ # By default, GCF will create and use repositories named `gcf-artifacts`
327
+ # in every region in which a function is deployed. But the repository to
328
+ # use can also be specified by the user using the `docker_repository`
329
+ # field.
324
330
  ARTIFACT_REGISTRY = 2
325
331
  end
326
332
  end
@@ -341,7 +347,7 @@ module Google
341
347
  # To refer to a specific fixed alias (tag):
342
348
  # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
343
349
  #
344
- # You can omit `paths/*` if you want to use the main directory.
350
+ # You may omit `paths/*` if you want to use the main directory.
345
351
  # @!attribute [r] deployed_url
346
352
  # @return [::String]
347
353
  # Output only. The URL pointing to the hosted repository where the function
@@ -363,11 +369,11 @@ module Google
363
369
  include ::Google::Protobuf::MessageExts
364
370
  extend ::Google::Protobuf::MessageExts::ClassMethods
365
371
 
366
- # Available security-level settings.
372
+ # Available security level settings.
367
373
  #
368
374
  # This controls the methods to enforce security (HTTPS) on a URL.
369
375
  #
370
- # If unspecified, SECURE_OPTIONAL is used.
376
+ # If unspecified, SECURE_OPTIONAL will be used.
371
377
  module SecurityLevel
372
378
  # Unspecified.
373
379
  SECURITY_LEVEL_UNSPECIFIED = 0
@@ -384,7 +390,7 @@ module Google
384
390
  end
385
391
  end
386
392
 
387
- # Describes EventTrigger, used to request that events be sent from another
393
+ # Describes EventTrigger, used to request events be sent from another
388
394
  # service.
389
395
  # @!attribute [rw] event_type
390
396
  # @return [::String]
@@ -401,7 +407,7 @@ module Google
401
407
  # example, the Google Cloud Storage API includes the type `object`.
402
408
  # 3. action: The action that generates the event. For example, action for
403
409
  # a Google Cloud Storage Object is 'change'.
404
- # These parts are lowercase.
410
+ # These parts are lower case.
405
411
  # @!attribute [rw] resource
406
412
  # @return [::String]
407
413
  # Required. The resource(s) from which to observe events, for example,
@@ -419,7 +425,7 @@ module Google
419
425
  # that matches Google Cloud Pub/Sub topics.
420
426
  #
421
427
  # Additionally, some services may support short names when creating an
422
- # `EventTrigger`. These are always returned in the normalized "long"
428
+ # `EventTrigger`. These will always be returned in the normalized "long"
423
429
  # format.
424
430
  #
425
431
  # See each *service's* documentation for supported formats.
@@ -439,17 +445,17 @@ module Google
439
445
  end
440
446
 
441
447
  # Describes the policy in case of function's execution failure.
442
- # If empty, then defaults to ignoring failures (i.e., not retrying them).
448
+ # If empty, then defaults to ignoring failures (i.e. not retrying them).
443
449
  # @!attribute [rw] retry
444
450
  # @return [::Google::Cloud::Functions::V1::FailurePolicy::Retry]
445
- # If specified, the function is retried in case of a failure.
451
+ # If specified, then the function will be retried in case of a failure.
446
452
  class FailurePolicy
447
453
  include ::Google::Protobuf::MessageExts
448
454
  extend ::Google::Protobuf::MessageExts::ClassMethods
449
455
 
450
456
  # Describes the retry policy in case of function's execution failure.
451
- # A function execution is retried on any failure.
452
- # A failed execution is retried up to 7 days with an exponential backoff
457
+ # A function execution will be retried on any failure.
458
+ # A failed execution will be retried up to 7 days with an exponential backoff
453
459
  # (capped at 10 seconds).
454
460
  # Retried execution is charged as any other execution.
455
461
  class Retry
@@ -459,7 +465,7 @@ module Google
459
465
  end
460
466
 
461
467
  # Configuration for a secret environment variable. It has the information
462
- # necessary to fetch the secret value from Secret Manager and expose it as an
468
+ # necessary to fetch the secret value from secret manager and expose it as an
463
469
  # environment variable.
464
470
  # @!attribute [rw] key
465
471
  # @return [::String]
@@ -467,12 +473,12 @@ module Google
467
473
  # @!attribute [rw] project_id
468
474
  # @return [::String]
469
475
  # Project identifier (preferrably project number but can also be the project
470
- # ID) of the project that contains the secret. If not set, it is
471
- # populated with the function's project, assuming that the secret exists in
472
- # the same project as the function.
476
+ # ID) of the project that contains the secret. If not set, it will be
477
+ # populated with the function's project assuming that the secret exists in
478
+ # the same project as of the function.
473
479
  # @!attribute [rw] secret
474
480
  # @return [::String]
475
- # Name of the secret in Secret Manager (not the full resource name).
481
+ # Name of the secret in secret manager (not the full resource name).
476
482
  # @!attribute [rw] version
477
483
  # @return [::String]
478
484
  # Version of the secret (version number or the string 'latest'). It is
@@ -484,15 +490,15 @@ module Google
484
490
  end
485
491
 
486
492
  # Configuration for a secret volume. It has the information necessary to fetch
487
- # the secret value from Secret Manager and make it available as files mounted
493
+ # the secret value from secret manager and make it available as files mounted
488
494
  # at the requested paths within the application container. Secret value is not
489
- # a part of the configuration. Every file system read operation performs a
490
- # lookup in Secret Manager to retrieve the secret value.
495
+ # a part of the configuration. Every filesystem read operation performs a
496
+ # lookup in secret manager to retrieve the secret value.
491
497
  # @!attribute [rw] mount_path
492
498
  # @return [::String]
493
499
  # The path within the container to mount the secret volume. For example,
494
- # setting the mount_path as `/etc/secrets` mounts the secret value files
495
- # under the `/etc/secrets` directory. This directory is also completely
500
+ # setting the mount_path as `/etc/secrets` would mount the secret value files
501
+ # under the `/etc/secrets` directory. This directory will also be completely
496
502
  # shadowed and unavailable to mount any other secrets.
497
503
  #
498
504
  # Recommended mount paths: /etc/secrets
@@ -500,16 +506,16 @@ module Google
500
506
  # @!attribute [rw] project_id
501
507
  # @return [::String]
502
508
  # Project identifier (preferrably project number but can also be the project
503
- # ID) of the project that contains the secret. If not set, it is
504
- # populated with the function's project, assuming that the secret exists in
505
- # the same project as the function.
509
+ # ID) of the project that contains the secret. If not set, it will be
510
+ # populated with the function's project assuming that the secret exists in
511
+ # the same project as of the function.
506
512
  # @!attribute [rw] secret
507
513
  # @return [::String]
508
- # Name of the secret in Secret Manager (not the full resource name).
514
+ # Name of the secret in secret manager (not the full resource name).
509
515
  # @!attribute [rw] versions
510
516
  # @return [::Array<::Google::Cloud::Functions::V1::SecretVolume::SecretVersion>]
511
517
  # List of secret versions to mount for this secret. If empty, the `latest`
512
- # version of the secret is made available in a file named after the
518
+ # version of the secret will be made available in a file named after the
513
519
  # secret under the mount point.
514
520
  class SecretVolume
515
521
  include ::Google::Protobuf::MessageExts
@@ -524,8 +530,8 @@ module Google
524
530
  # @!attribute [rw] path
525
531
  # @return [::String]
526
532
  # Relative path of the file under the mount path where the secret value for
527
- # this version is fetched and made available. For example, setting the
528
- # mount_path as '/etc/secrets' and path as `/secret_foo` mounts the
533
+ # this version will be fetched and made available. For example, setting the
534
+ # mount_path as '/etc/secrets' and path as `/secret_foo` would mount the
529
535
  # secret value file at `/etc/secrets/secret_foo`.
530
536
  class SecretVersion
531
537
  include ::Google::Protobuf::MessageExts
@@ -562,6 +568,14 @@ module Google
562
568
  # @!attribute [rw] name
563
569
  # @return [::String]
564
570
  # Required. The name of the function which details should be obtained.
571
+ # @!attribute [rw] version_id
572
+ # @return [::Integer]
573
+ # Optional. The optional version of the function whose details should be
574
+ # obtained. The version of a 1st Gen function is an integer that starts from
575
+ # 1 and gets incremented on redeployments. Each deployment creates a config
576
+ # version of the underlying function. GCF may keep historical configs for old
577
+ # versions. This field can be specified to fetch the historical configs.
578
+ # Leave it blank or set to 0 to get the latest version of the function.
565
579
  class GetFunctionRequest
566
580
  include ::Google::Protobuf::MessageExts
567
581
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -655,11 +669,11 @@ module Google
655
669
  # @!attribute [rw] kms_key_name
656
670
  # @return [::String]
657
671
  # Resource name of a KMS crypto key (managed by the user) used to
658
- # encrypt/decrypt function source code objects in staging Cloud Storage
672
+ # encrypt/decrypt function source code objects in intermediate Cloud Storage
659
673
  # buckets. When you generate an upload url and upload your source code, it
660
- # gets copied to a staging Cloud Storage bucket in an internal regional
661
- # project. The source code is then copied to a versioned directory in the
662
- # sources bucket in the consumer project during the function deployment.
674
+ # gets copied to an intermediate Cloud Storage bucket. The source code is
675
+ # then copied to a versioned directory in the sources bucket in the consumer
676
+ # project during the function deployment.
663
677
  #
664
678
  # It must match the pattern
665
679
  # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-functions-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common